summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/index.php')
-rw-r--r--htdocs/index.php27
1 files changed, 17 insertions, 10 deletions
diff --git a/htdocs/index.php b/htdocs/index.php
index c1ac7d7..8373362 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -1,5 +1,12 @@
<?php
include_once("config.php");
+
+if($mode == "imagecache") {
+ include_once($UTIL_DIR. "/imagecache.php");
+ getCachedImage($uri, $mw, $mh);
+ return;
+}
+
include_once($MODULES_DIR . "/config.php");
$config = new Config($DATA_DIR . "/config.xml");
@@ -45,9 +52,9 @@ $pages = new Pages($DATA_DIR . "/pages.xml");
<body>
<div style="display: none;">
<?php
-$ps = $config->value('preload');
-foreach($ps as $p) {
- echo " <img alt=\"preload\" src=\"".$p."\"/>\n";
+$_ps = $config->value('preload');
+foreach($_ps as $_p) {
+ echo " <img alt=\"preload\" src=\"".$_p."\"/>\n";
}
?>
</div>
@@ -81,9 +88,9 @@ if(sizeof($menu)) {
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) $_p = $pages->getPage($page);
+ else $_p = $pages->getPage($config->value('default'));
+ if($_p) $_p->show();
}
?>
</div>
@@ -91,15 +98,15 @@ if($page == "admin") {
echo "style=\"width: 249px;\"";
?>>
<?php
-$p = $pages->getPage("column");
-if($p) $p->show();
+$_p = $pages->getPage("column");
+if($_p) $_p->show();
?>
</div>
</div>
<div class="footer">
<?php
-$p = $pages->getPage("footer");
-if($p) $p->show();
+$_p = $pages->getPage("footer");
+if($_p) $_p->show();
?>
</div>
</div>