summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
authordeva <deva>2010-02-28 10:54:45 +0000
committerdeva <deva>2010-02-28 10:54:45 +0000
commit90ed713a8c23e77028a413e9c3a7e88b51575b7c (patch)
tree248e0d95d16c05f16e51981fd559c33cdff31882 /htdocs/index.php
parenta87d1861c843289cbc925fd26447a00621819ec8 (diff)
Changed how the admin modules is shown.
Diffstat (limited to 'htdocs/index.php')
-rw-r--r--htdocs/index.php16
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">