First Status page

This commit is contained in:
bohdan-s
2014-06-21 09:50:24 -04:00
parent 5679241ca8
commit 4130d6bdc1
3 changed files with 131 additions and 3 deletions
+14 -3
View File
@@ -205,9 +205,20 @@ if ($_SESSION['authenticated'])
}
} else {
// Not Authenticated. Print login.
include("pages/logon.inc.php");
// Not Authenticated. Show status page if enabled
if ( $config['public_status'] )
{
if (isset($vars['page']) && strstr("login", $vars['page']))
{
include("pages/logon.inc.php");
} else {
include("pages/public.inc.php");
}
}
else
{
include("pages/logon.inc.php");
}
exit;
}
?>