$Id$
+Sat Nov 5 22:53:29 EST 2005 ajc
+* Found and removed more absolute URL's.
+
Sat Nov 5 00:50:25 EST 2005 ajc
* The checkboxes are gone! Implemented ajax delete of selected messages,
via either the Delete button or the Delete key.
}
if (!setup_wizard) {
- http_redirect("/setup_wizard");
+ http_redirect("setup_wizard");
}
}
#endif
*/
get_preference("startpage", buf, sizeof buf);
if (strlen(buf)==0) {
- safestrncpy(buf, "/dotskip&room=_BASEROOM_", sizeof buf);
+ safestrncpy(buf, "dotskip&room=_BASEROOM_", sizeof buf);
set_preference("startpage", buf, 1);
}
http_redirect(buf);
}
if (during_login) {
- do_edit_vcard(vcard_msgnum, "1", "/do_welcome");
+ do_edit_vcard(vcard_msgnum, "1", "do_welcome");
}
else {
- do_edit_vcard(vcard_msgnum, "1", "/display_main_menu");
+ do_edit_vcard(vcard_msgnum, "1", "display_main_menu");
}
}
if (ib_chat) {
wprintf("<li>"
- "<a href=\"#\" onClick=\"window.open('/chat', "
+ "<a href=\"#\" onClick=\"window.open('chat', "
"'ctdl_chat_window', "
"'toolbar=no,location=no,directories=no,copyhistory=no,"
"status=no,scrollbars=yes,resizable=yes');\""
);
}
- wprintf("<a href=\"#\" onClick=\"window.open('/printmsg/%ld', 'print%ld', 'toolbar=no,location=no,directories=no,copyhistory=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=400'); \" >"
+ wprintf("<a href=\"#\" onClick=\"window.open('printmsg/%ld', 'print%ld', 'toolbar=no,location=no,directories=no,copyhistory=no,status=yes,scrollbars=yes,resizable=yes,width=600,height=400'); \" >"
"[%s]</a>", msgnum, msgnum, _("Print"));
wprintf("</td>");
lo = b - maxmsgs + 2;
if (lo < 1) lo = 1;
wprintf("<option %s value="
- "\"/%s"
+ "\"%s"
"?startmsg=%ld"
"?maxmsgs=%d"
"?summary=%d\">"
hi = b + maxmsgs + 1;
if (hi > nummsgs) hi = nummsgs;
wprintf("<option %s value="
- "\"/%s"
+ "\"%s"
"?startmsg=%ld"
"?maxmsgs=%d"
"?summary=%d\">"
}
}
- wprintf("<option value=\"/%s?startmsg=%ld"
+ wprintf("<option value=\"%s?startmsg=%ld"
"?maxmsgs=9999999?summary=%d\">"
"ALL"
"</option> ",
"[selectedIndex].value\">\n"
);
- wprintf("<option %s value=\"/%s&sortby=forward\">oldest to newest</option>\n",
+ wprintf("<option %s value=\"%s&sortby=forward\">oldest to newest</option>\n",
(bbs_reverse ? "" : "selected"),
oper
);
- wprintf("<option %s value=\"/%s&sortby=reverse\">newest to oldest</option>\n",
+ wprintf("<option %s value=\"%s&sortby=reverse\">newest to oldest</option>\n",
(bbs_reverse ? "selected" : ""),
oper
);
|| ( (i == 1) && (WC->wc_default_view == 0) )
) {
- wprintf("<OPTION %s VALUE=\"/changeview?view=%d\">",
+ wprintf("<OPTION %s VALUE=\"changeview?view=%d\">",
((i == WC->wc_view) ? "SELECTED" : ""),
i );
escputs(viewdefs[i]);
* we want it to remember the URL as a "/dotskip" one instead of
* a "skip" or "gotonext" or something like that.
*/
- snprintf(WC->this_page, sizeof(WC->this_page), "/dotskip&room=%s",
+ snprintf(WC->this_page, sizeof(WC->this_page), "dotskip&room=%s",
WC->wc_roomname);
/* Check for new mail. */
"OnChange=\"location.href=roomlistomatic.newview.options"
"[selectedIndex].value\">\n");
- wprintf("<OPTION %s VALUE=\"/knrooms&view=rooms\">"
+ wprintf("<OPTION %s VALUE=\"knrooms&view=rooms\">"
"View as room list"
"</OPTION>\n",
( !strcasecmp(listviewpref, "rooms") ? "SELECTED" : "" )
);
- wprintf("<OPTION %s VALUE=\"/knrooms&view=folders\">"
+ wprintf("<OPTION %s VALUE=\"knrooms&view=folders\">"
"View as folder list"
"</OPTION>\n",
( !strcasecmp(listviewpref, "folders") ? "SELECTED" : "" )
wprintf(
"<script type=\"text/javascript\"> "
- " new Ajax.PeriodicalUpdater('content', '/summary_inner_div', "
+ " new Ajax.PeriodicalUpdater('content', 'summary_inner_div', "
" { method: 'get', frequency: 60 } ); "
"</script> \n"
);
return;
}
- do_edit_vcard(vcard_msgnum, "1", "/select_user_to_edit");
+ do_edit_vcard(vcard_msgnum, "1", "select_user_to_edit");
}
serv_puts("end:vcard");
serv_puts("000");
- if (!strcmp(bstr("return_to"), "/select_user_to_edit")) {
+ if (!strcmp(bstr("return_to"), "select_user_to_edit")) {
select_user_to_edit(NULL, NULL);
}
- else if (!strcmp(bstr("return_to"), "/do_welcome")) {
+ else if (!strcmp(bstr("return_to"), "do_welcome")) {
do_welcome();
}
else {
} else if (!strcasecmp(action, "display_editpic")) {
display_graphics_upload(_("your photo"),
"UIMG 0|_userpic_",
- "/editpic");
+ "editpic");
} else if (!strcasecmp(action, "editpic")) {
do_graphics_upload("UIMG 1|_userpic_");
} else if (!strcasecmp(action, "display_editroompic")) {
display_graphics_upload(_("the icon for this room"),
"UIMG 0|_roompic_",
- "/editroompic");
+ "editroompic");
} else if (!strcasecmp(action, "editroompic")) {
do_graphics_upload("UIMG 1|_roompic_");
} else if (!strcasecmp(action, "delete_floor")) {
bstr("which_floor"));
display_graphics_upload(_("the icon for this floor"),
buf,
- "/editfloorpic");
+ "editfloorpic");
} else if (!strcasecmp(action, "editfloorpic")) {
sprintf(buf, "UIMG 1|_floorpic_|%s",
bstr("which_floor"));
*/
wprintf(
"<script type=\"text/javascript\"> "
- " new Ajax.PeriodicalUpdater('fix_scrollbar_bug', '/who_inner_html', "
+ " new Ajax.PeriodicalUpdater('fix_scrollbar_bug', 'who_inner_html', "
" { method: 'get', frequency: 30 } ); "
"</script> \n"
);
if (strlen(bstr("change_room_name_button")) > 0) {
serv_printf("RCHG %s", bstr("fake_roomname"));
serv_getln(buf, sizeof buf);
- http_redirect("/who");
+ http_redirect("who");
} else if (strlen(bstr("change_host_name_button")) > 0) {
serv_printf("HCHG %s", bstr("fake_hostname"));
serv_getln(buf, sizeof buf);
- http_redirect("/who");
+ http_redirect("who");
} else if (strlen(bstr("change_user_name_button")) > 0) {
serv_printf("UCHG %s", bstr("fake_username"));
serv_getln(buf, sizeof buf);
- http_redirect("/who");
+ http_redirect("who");
} else if (strlen(bstr("cancel_button")) > 0) {
- http_redirect("/who");
+ http_redirect("who");
} else {
output_headers(1, 1, 0, 0, 0, 0);