summaryrefslogtreecommitdiff
path: root/htdocs/index.php
diff options
context:
space:
mode:
authordeva <deva>2009-08-24 13:17:40 +0000
committerdeva <deva>2009-08-24 13:17:40 +0000
commit8e8cfb2fb27c2b217144e1efaa4137254d58ed3e (patch)
tree20293895d35b03fb4f95e28f027439f023da2008 /htdocs/index.php
parentb98a5821862b4c5bae88be28757d60554bb7ac68 (diff)
Some gallery stuff. Change in default number of news to show, and a new Gallery module.
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>