mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
First Status page
This commit is contained in:
+14
-3
@@ -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;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user