diff --git a/html/index.php b/html/index.php index 4351af2da..2b90769c5 100755 --- a/html/index.php +++ b/html/index.php @@ -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; } ?> diff --git a/html/pages/public.inc.php b/html/pages/public.inc.php new file mode 100644 index 000000000..ae70f8a9b --- /dev/null +++ b/html/pages/public.inc.php @@ -0,0 +1,116 @@ +
| + | + | Device | ++ | Platform | +Operating System | +Uptime/Location | +
|---|