time_t last_activity;
time_t now;
+ serv_puts("TIME");
+ serv_getln(buf, sizeof buf);
+ if (buf[0] == '2') {
+ now = extract_long(&buf[4], 0);
+ }
+ else {
+ now = time(NULL);
+ }
+
serv_puts("RWHO");
serv_getln(buf, sizeof buf);
if (buf[0] == '1') while(serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
extract_token(user, buf, 1, '|', sizeof user);
last_activity = extract_long(buf, 5);
if (strcmp(user, NLI)) {
- wprintf("<li span=\"");
+ wprintf("<li class=\"");
if ((now - last_activity) > 900L) {
wprintf("inactiveuser");
}
output_headers(1, 1, 2, 0, 0, 0);
wprintf("<div id=\"banner\">\n");
- wprintf("<div class=\"service_banner\">\n");
+ wprintf("<div class=\"room_banner\">");
wprintf("<img src=\"static/summscreen_48x.gif\">");
wprintf("<h1>");
snprintf(title, sizeof title, _("Summary page for %s"), WC->wc_fullname);
escputs(title);
- wprintf("</h1><h2>\n");
+ wprintf("</h1><h2>");
output_date();
wprintf("</h2></div>");
- wprintf("<ul><li class=\"start_page\">");
- offer_start_page();
+ wprintf("<ul class=\"room_actions\">\n");
+ wprintf("<li class=\"start_page\">");
+ offer_start_page();
wprintf("</li></ul>");
wprintf("</div>");
* In the future we might consider updating individual sections of the summary
* instead of the whole thing.
*/
- wprintf("<div id=\"content\">\n");
+ wprintf("<div id=\"content\" class=\"service\">\n");
summary_inner_div();
wprintf("</div>\n");