diff options
author | Antoni Sawicki <tenox@google.com> | 2019-05-07 02:28:07 -0700 |
---|---|---|
committer | Antoni Sawicki <tenox@google.com> | 2019-05-07 02:28:07 -0700 |
commit | 743efdd88a2426157d8f3ec9ec3f4ade6443d1a8 (patch) | |
tree | d9b85e9d1893798a7daaa06ba3f6c9e29bba52c8 /dir.c | |
parent | a0b8da9be6615423bdb9ee6f26dbbaadd45ca0ae (diff) | |
parent | 09f7627ac34a92c4299b3bdd2cebd853f0d3b34e (diff) | |
download | wfm-743efdd88a2426157d8f3ec9ec3f4ade6443d1a8.tar.gz |
auth method and others
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -205,6 +205,13 @@ void dirlist(void) { "<A HREF=\"%s?action=login&directory=%s\">" " <IMG SRC=\"%s%s.gif\" ALIGN=\"MIDDLE\" BORDER=\"0\" ALT=\"Access\"></A> %s\n", cgiScriptName, wp.virt_dirname_urlencoded, rt.iconsurl, access_string[rt.access_level], access_string[rt.access_level]); + else if(rt.auth_method==3) + fprintf(cgiOut, + "<A HREF=\"%s?ea=logoff\">" + "<IMG SRC=\"%s%s.gif\" BORDER=\"0\" ALIGN=\"MIDDLE\" ALT=\"Access\">" + "</A> %s <IMG SRC=\"%suser.gif\" ALIGN=\"MIDDLE\" ALT=\"User\"> %s \n", + cgiScriptName, rt.iconsurl, access_string[rt.access_level], access_string[rt.access_level], rt.iconsurl, rt.loggedinuser); + else fprintf(cgiOut, "<A HREF=\"%s?directory=%s\"><IMG SRC=\"%s%s.gif\" BORDER=\"0\" ALIGN=\"MIDDLE\" ALT=\"Access\">" |