-/* Produces a stylesheet which hides any iconbar icons the user does not want * /
-void doUserIconStylesheet(void) {
- HashPos *pos;
- void *Data;
- long value;
- const char *key;
- long HKLen;
-
- output_custom_content_header("text/css");
- hprintf("Cache-Control: private\r\n");
-
- begin_burst();
- wc_printf("#global { left: 16%%; }\r\n");
- pos = GetNewHashPos(WC->IconBarSettings, 0);
- while(GetNextHashPos(WC->IconBarSettings, pos, &HKLen, &key, &Data)) {
- value = (long) Data;
- if (value == 0
- && strncasecmp("ib_displayas",key,12)
- && strncasecmp("ib_logoff", key, 9)) {
- / * Don't shoot me for this * /
- wc_printf("#%s { display: none !important; }\r\n",key);
- } else if (!strncasecmp("ib_users",key, 8) && value == 2) {
- wc_printf("#online_users { display: block; !important } \r\n");
- }
- }
- DeleteHashPos(&pos);
- end_burst();
-}
-
-void doUserIconStylesheet(void) {
- HashPos *pos;
- void *Data;
- long value;
- const char *key;
- long HKLen;
-
-// output_custom_content_header("text/css");
- const StrBuf *MimeType;
- begin_burst();
- MimeType = DoTemplate(HKEY("user_iconbar"), NULL, &NoCtx);
- http_transmit_thing(ChrPtr(MimeType), 0);