Commit d692193a authored by Leigh B. Stoller's avatar Leigh B. Stoller

Move Message of the Day to a more noticeable spot!

parent f157bae2
......@@ -387,9 +387,11 @@ function WRITESIDEBAR() {
#
# Login message. Set via 'web/message' site variable
#
if (0) {
$message = TBGetSiteVar("web/message");
if (0 != strcmp($message,"")) {
WRITESIDEBARNOTICE($message);
WRITESIDEBARNOTICE("<font color=red>$message</font>");
}
}
echo "</table>\n";
......@@ -550,11 +552,19 @@ function PAGEHEADER($title) {
$now = date("D M d g:ia T");
echo "$title</h2></td>\n";
echo "<td class=contentheader align=right>\n";
if ($login_uid) {
echo "<font size=-1>'<b>$login_uid</b>' Logged in.<br>$now</font>\n";
$message = TBGetSiteVar("web/message");
if (strcmp($message,"")) {
echo "<font size=+1 color=white>$message</font>";
}
else {
echo "$now";
if ($login_uid) {
echo "<font size=-1>'<b>$login_uid</b>' Logged in.".
"<br>$now</font>\n";
}
else {
echo "$now";
}
}
echo "</td>";
echo "</tr>\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment