summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorPatrick Davison <snapwilliam@gmail.com>2013-01-31 04:10:59 -0800
committerPatrick Davison <snapwilliam@gmail.com>2013-01-31 04:10:59 -0800
commit27f1a758f0f312e6dedb18f47ce86a6fd1d05d12 (patch)
tree05dce0efa9ccede3b84437ce067152ac7cf313f5 /index.php
parent2fb5da215a7b286b71f8c4d0126c72a06e41935e (diff)
downloadpathery-27f1a758f0f312e6dedb18f47ce86a6fd1d05d12.tar.xz
Error logging. .htaccess cacheing. Modified doredirect to use $mydomain
Diffstat (limited to 'index.php')
-rw-r--r--index.php26
1 files changed, 18 insertions, 8 deletions
diff --git a/index.php b/index.php
index 21abbde..4eff377 100644
--- a/index.php
+++ b/index.php
@@ -200,21 +200,31 @@ switch ($request) {
require 'pages/chat.php';
break;
-
case "admin":
- if ($_SESSION['isAdmin'] == true)
+ if ($_SESSION['isAdmin'] == true) {
require 'pages/admin.php';
- else
+ } else {
require 'pages/about.php';
- break;
+ }
+ break;
case "massemail":
- if ($_SESSION['isAdmin'] == true)
+ if ($_SESSION['isAdmin'] == true) {
require 'pages/massemail.php';
- else
+ } else {
require 'pages/about.php';
- break;
-
+ }
+ break;
+
+ case "errorlogs":
+ if ($_SESSION['isAdmin'] == true) {
+ header("Content-Type: text/plain");
+ require 'includes/errorlogs.txt';
+ } else {
+ require 'pages/about.php';
+ }
+ break;
+
case "home":
//No break here
Default: