Skip to content
Snippets Groups Projects
Commit 8ccb1bfb authored by rswindell's avatar rswindell
Browse files

Fix bug introduced in rev 1.3: when no "Guest" user exists, only hide the

"logout" button, not all the user stats too.
parent 948669a7
No related branches found
No related tags found
No related merge requests found
......@@ -98,15 +98,17 @@ var prevdir;
var hdr_font="<font color=silver>";
var dat_font="<font color=#CCCCCC>";
if(!(user.security.restrictions&UFLAG_G) && system.matchuser("Guest")) { /* !Guest or Anonymous */
/* Logout button */
writeln("<table align=right>");
writeln("<form>");
writeln("<input type=button value=Logout onclick='location=\"ftp://"
+ format("%s/%s%s",system.host_name + port,html_index_file,time_stamp_only)
+ "\";'>");
writeln("</form>");
writeln("</table><br /><br />");
if(!(user.security.restrictions&UFLAG_G)) { /* !Guest or Anonymous */
if(system.matchuser("Guest")) {
/* Logout button */
writeln("<table align=right>");
writeln("<form>");
writeln("<input type=button value=Logout onclick='location=\"ftp://"
+ format("%s/%s%s",system.host_name + port,html_index_file,time_stamp_only)
+ "\";'>");
writeln("</form>");
writeln("</table><br /><br />");
}
writeln("<table nowrap class=\"ftp_stats\"><tr><td>");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment