summaryrefslogtreecommitdiffstats
path: root/code/content.inc.php
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-01-13 00:49:05 +0100
committerneoraider <devnull@localhost>2006-01-13 00:49:05 +0100
commit8b89c8c8a9001c5f5b38465ceb58306fc6f0659e (patch)
treea5b57b8809365c8e3184ae81bd193986367e31b8 /code/content.inc.php
parentecb8233cd7e9fbacd7614028115161565e841d87 (diff)
downloadneon-8b89c8c8a9001c5f5b38465ceb58306fc6f0659e.tar
neon-8b89c8c8a9001c5f5b38465ceb58306fc6f0659e.zip
Navigationsleiste verbessert (ungenutzte Eintr?ge werden ausgeblendet); einige kleinere ?nderungen + Bugs gefixt
Diffstat (limited to 'code/content.inc.php')
-rw-r--r--code/content.inc.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/code/content.inc.php b/code/content.inc.php
deleted file mode 100644
index 8a20507..0000000
--- a/code/content.inc.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?PHP
- if(!defined('CONTENT_INC')) {
- define('CONTENT_INC', 1);
-
- include('code/db.inc.php');
- include('code/user.inc.php');
- include('code/handlers.inc.php');
-
- function GetPage($name) {
- $user = $GLOBALS['user'];
-
- $res = DBQuery('SELECT access, handler, data FROM pages WHERE name = ?', $name);
-
- if(!$res->RecordCount()) {
- $message = $GLOBALS['handlers']['default']->HandleErrorMessage('PageNotFound', array('page' => $name));
-
- if(!$message['title']) $message['title'] = $name;
-
- return $message;
- }
-
- if((($user->GetUid() == 0) || ($user->GetGid() != 0)) && ($res->fields[0] & (1 << $user->GetGid())) == 0) {
- $message = $GLOBALS['handlers'][$res->fields[1]]->HandleErrorMessage('Forbidden', array('page' => $name));
-
- if(!$message['title']) $message['title'] = $name;
-
- return $message;
- }
- parse_str($res->fields[2], $data);
- $data['_page'] = $name;
-
- return $GLOBALS['handlers'][$res->fields[1]]->HandleContentData($data);
- }
- }
-?>