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

Bugfix: correct method for checking for the "Guest" account is to check for

the 'G' restriction.
Added a line break and day of week to "last on" details. This is centered now
though. :-(
parent 040ce757
Branches
Tags
No related merge requests found
......@@ -23,6 +23,7 @@
/* $Id$ */
template=new Object;
load("sbbsdefs.js"); // UFLAG_G
load("../web/lib/html_themes.ssjs");
template.Theme_CSS_File=Themes[CurrTheme].css;
......@@ -127,8 +128,8 @@ function regex_escape(str)
if(user.number==0)
template.user_greeting="Welcome, Guest.";
else
if(user.alias!='Guest')
template.user_greeting="Welcome, "+user.alias+ ". You last visited " +strftime("%B %d, %Y",user.stats.laston_date);
if(!(user.security.restrictions&UFLAG_G))
template.user_greeting="Welcome, "+user.alias+ ".<br> You last visited on " +strftime("%A, %B %d, %Y",user.stats.laston_date);
else
template.user_greeting="Welcome, "+user.alias+ ".";
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment