]> code.citadel.org Git - citadel.git/blobdiff - webcit/auth.c
* Found and removed more absolute URL's.
[citadel.git] / webcit / auth.c
index c86e276b094ee576b59660fa11f6e480ff553e07..423e3d4c2203491392976374c16959017b03bb46 100644 (file)
@@ -25,7 +25,7 @@ void display_login(char *mesg)
 {
        char buf[SIZ];
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div style=\"position:absolute; top:20px; left:20px; right:20px\">\n");
 
        if (mesg != NULL) if (strlen(mesg) > 0) {
@@ -185,7 +185,7 @@ void do_welcome(void)
                }
 
                if (!setup_wizard) {
-                       http_redirect("/setup_wizard");
+                       http_redirect("setup_wizard");
                }
        }
 #endif
@@ -195,7 +195,7 @@ void do_welcome(void)
         */
        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);
@@ -221,7 +221,7 @@ void do_logout(void)
        safestrncpy(WC->wc_roomname, "", sizeof WC->wc_roomname);
 
        /* Calling output_headers() this way causes the cookies to be un-set */
-       output_headers(1, 1, 0, 1, 0, 0, 0);
+       output_headers(1, 1, 0, 1, 0, 0);
 
        wprintf("<center>");
        serv_puts("MESG goodbye");
@@ -229,7 +229,7 @@ void do_logout(void)
 
        if (WC->serv_sock >= 0) {
                if (buf[0] == '1') {
-                       fmout(NULL, "CENTER");
+                       fmout("CENTER");
                } else {
                        wprintf("Goodbye\n");
                }
@@ -241,7 +241,7 @@ void do_logout(void)
                );
        }
 
-       wprintf("<hr /><a href=\"/\">Log in again</A>&nbsp;&nbsp;&nbsp;"
+       wprintf("<hr /><a href=\".\">Log in again</A>&nbsp;&nbsp;&nbsp;"
                "<a href=\"javascript:window.close();\">");
        wprintf(_("Close window"));
        wprintf("</a></center>\n");
@@ -260,7 +260,7 @@ void validate(void)
        char buf[SIZ];
        int a;
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
                "<SPAN CLASS=\"titlebar\">");
@@ -326,7 +326,7 @@ void validate(void)
        wprintf(_("Select access level for this user:"));
        wprintf("<br />\n");
        for (a = 0; a <= 6; ++a) {
-               wprintf("<A HREF=\"/validate&user=");
+               wprintf("<a href=\"validate&user=");
                urlescputs(user);
                wprintf("&axlevel=%d\">%s</A>&nbsp;&nbsp;&nbsp;\n",
                        a, axdefs[a]);
@@ -363,10 +363,10 @@ void display_reg(int during_login)
        }
 
        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");
        }
 
 }
@@ -381,7 +381,7 @@ void display_changepw(void)
 {
        char buf[SIZ];
 
-       output_headers(1, 1, 2, 0, 0, 0, 0);
+       output_headers(1, 1, 2, 0, 0, 0);
        wprintf("<div id=\"banner\">\n"
                "<TABLE WIDTH=100%% BORDER=0 BGCOLOR=\"#444455\"><TR><TD>"
                "<SPAN CLASS=\"titlebar\">");
@@ -406,7 +406,7 @@ void display_changepw(void)
        serv_puts("MESG changepw");
        serv_getln(buf, sizeof buf);
        if (buf[0] == '1') {
-               fmout(NULL, "CENTER");
+               fmout("CENTER");
        }
 
        wprintf("<form name=\"changepwform\" action=\"changepw\" method=\"post\">\n");