Commit 979733cd authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Addendum to last commit.

parent a52f605b
...@@ -409,9 +409,12 @@ function WRITESIDEBAR() { ...@@ -409,9 +409,12 @@ function WRITESIDEBAR() {
# it clear its disabled. # it clear its disabled.
# #
if (NOLOGINS()) { if (NOLOGINS()) {
if (! ($login_status &
(CHECKLOGIN_LOGGEDIN|CHECKLOGIN_MAYBEVALID))) {
echo "<table class=menu width=210 cellpadding=0 cellspacing=0>". echo "<table class=menu width=210 cellpadding=0 cellspacing=0>".
"<tr><td class=menuheader> &nbsp". "<tr><td class=menuheader> &nbsp".
"</td></tr>\n"; "</td></tr>\n";
}
WRITESIDEBARBUTTON("<font color=red> ". WRITESIDEBARBUTTON("<font color=red> ".
"Web Interface Temporarily Unavailable</font>", "Web Interface Temporarily Unavailable</font>",
...@@ -420,8 +423,11 @@ function WRITESIDEBAR() { ...@@ -420,8 +423,11 @@ function WRITESIDEBAR() {
if (!$login_uid || !ISADMIN($login_uid)) { if (!$login_uid || !ISADMIN($login_uid)) {
WRITESIDEBARNOTICE("Please Try Again Later"); WRITESIDEBARNOTICE("Please Try Again Later");
} }
if (! ($login_status &
(CHECKLOGIN_LOGGEDIN|CHECKLOGIN_MAYBEVALID))) {
echo "</table>\n"; echo "</table>\n";
} }
}
if ($login_status & (CHECKLOGIN_LOGGEDIN|CHECKLOGIN_MAYBEVALID)) { if ($login_status & (CHECKLOGIN_LOGGEDIN|CHECKLOGIN_MAYBEVALID)) {
if ($firstinitstate != null) { if ($firstinitstate != null) {
......
Supports Markdown
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