diff options
Diffstat (limited to 'htdocs/index.php')
-rw-r--r-- | htdocs/index.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/htdocs/index.php b/htdocs/index.php index aea0dfe..1a9e5af 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -88,7 +88,11 @@ if($config->value('splash') == "true") { // --> </script> </head> -<body> +<body><?php +if($page == "admin") { + include($UTIL_DIR."/admin.php"); +} +?> <div style="display: none;"> <?php $_ps = $config->value('preload'); @@ -117,13 +121,9 @@ if(sizeof($menu)) { <div class="wrapper"> <div class="content"> <?php -if($page == "admin") { - include($UTIL_DIR."/admin.php"); -} else { - if($page) $_p = $pages->getPage($page); - else $_p = $pages->getPage($config->value('default')); - if($_p) $_p->show(); -} +if($page && $page != "admin") $_p = $pages->getPage($page); +else $_p = $pages->getPage($config->value('default')); +if($_p) $_p->show(); ?> </div> <div class="column"> |