int show_prop_uim_agent_context(uim_agent_context *ua) { if (ua == NULL || !ua->prop->valid) return -1; else return show_prop(ua->prop); }
int web_props(void) { if (!session_id()) return BBS_ELGNREQ; prop_list_t *p = prop_list_load(); if (!p) return BBS_EINTNL; xml_header(NULL); printf("<bbsprop>"); print_session(); for (int i = 0; i < prop_list_num_rows(p); ++i) { show_prop(p, i); } printf("</bbsprop>"); prop_list_free(p); return 0; }