diff options
author | Antoni Sawicki <tenox@google.com> | 2018-12-02 23:56:00 -0800 |
---|---|---|
committer | Antoni Sawicki <tenox@google.com> | 2018-12-02 23:56:00 -0800 |
commit | 8ccfbbb36d34a4abb9ac2bcd1b718cc56f0f71e7 (patch) | |
tree | ce9e18ad84a956c0d119d72624ab5558442d4ee2 /dir.c | |
parent | 5742b81f67db190340f695a5f1a17da96b7c13c2 (diff) | |
download | wfm-8ccfbbb36d34a4abb9ac2bcd1b718cc56f0f71e7.tar.gz |
hack to logoff htauth session
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -203,6 +203,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\">" |