summaryrefslogtreecommitdiff
path: root/forum/htdocs/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/htdocs/index.php')
-rw-r--r--forum/htdocs/index.php26
1 files changed, 18 insertions, 8 deletions
diff --git a/forum/htdocs/index.php b/forum/htdocs/index.php
index a452f20..f4d2ed7 100644
--- a/forum/htdocs/index.php
+++ b/forum/htdocs/index.php
@@ -1,17 +1,27 @@
<?php
header("Content-Type: text/html; charset=UTF-8");
-/*
-Jonas Mobil:
-"SonyEricssonW660i/R6BC Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"
-
-Rasmus Mobil:
-"Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN81-3/11.0.045 Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
-*/
include_once("config.php");
+
+// Check login
include_once($UTIL_DIR . "/login.php");
checklogin();
+// Catch the modes that must not output any html.
+if($current_user) {
+ switch($mode) {
+ case "imagecache":
+ include_once($UTIL_DIR. "/imagecache.php");
+ getCachedImage($uri);
+ return;
+
+ case "file":
+ include_once($UTIL_DIR. "/file.php");
+ getFile($filename);
+ return;
+ }
+}
+
include_once($UTIL_DIR . "/clientinfo.php");
?>
<?xml version="1.0" encoding="UTF-8"?>
@@ -66,7 +76,7 @@ if($current_user) {
include_once($UTIL_DIR. "/edit.php");
break;
- case "files":
+ case "filehandler":
include_once($UTIL_DIR. "/filehandler.php");
break;