summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2006-04-13 23:37:04 +0200
committerneoraider <devnull@localhost>2006-04-13 23:37:04 +0200
commit1f93dbaae6aa262ae32592e08605e26af9d98a0f (patch)
tree000090d94c2f1e085e3a824f3954f8fd3701dd91
parent415243607829013d91b23b40608507fcd76b307b (diff)
downloadneon-1f93dbaae6aa262ae32592e08605e26af9d98a0f.tar
neon-1f93dbaae6aa262ae32592e08605e26af9d98a0f.zip
Basis-Seitenliste jetzt hardcoded.
-rw-r--r--code/pages.inc.php50
1 files changed, 24 insertions, 26 deletions
diff --git a/code/pages.inc.php b/code/pages.inc.php
index c121d2f..d712242 100644
--- a/code/pages.inc.php
+++ b/code/pages.inc.php
@@ -6,31 +6,29 @@
require_once('code/modules.inc.php');
class Pages {
- var $pages = array();
-
- function Pages($dirs = array('pages')) {
- $dir = opendir(join('/', $dirs));
-
- while($file = readdir($dir)) {
- if($file[0] == '.') continue;
-
- if(is_dir(join('/', $dirs) . '/' . $file))
- $this->Pages(array_merge($dirs, array($file)));
- elseif(is_file(join('/', $dirs) . '/' . $file)) {
- switch(substr($file, -6)) {
- case '.c.xml':
- case '.e.xml':
- case '.n.xml':
- if(count($dirs) > 1)
- $this->pages[join(array_merge(array_slice($dirs, 1), array(substr($file, 0, -4))), ':')] = array();
- else
- $this->pages[substr($file, 0, -4)] = array();
- }
- }
- }
-
- closedir($dir);
- }
+ var $pages = array(
+ 'Login.c' => null,
+ 'Logout.c' => null,
+ 'Pages.c' => null,
+ 'Pages:Copy.c' => null,
+ 'Pages:Delete.c' => null,
+ 'Pages:Edit.c' => null,
+ 'Pages:Handle.c' => null,
+ 'Pages:New.c' => null,
+ 'Pages:Rename.c' => null,
+ 'Privileges.c' => null,
+ 'Privileges:Update.c' => null,
+ 'Users.c' => null,
+ 'Users:Delete.c' => null,
+ 'Users:Group.c' => null,
+ 'Users:Handle.c' => null,
+ 'Users:New.c' => null,
+ 'Users:Password.c' => null,
+ 'Users:Rename.c' => null,
+ 'Login.n' => null,
+ 'default.e' => null,
+ 'phpexec.e' => null
+ );
function Get($page, $type, $extra = null) {
if(!$this->Exists($page, $type))
@@ -97,7 +95,7 @@
function GetPageData($page, $type) {
if(!$this->Exists($page, $type)) return null;
- if(!count($this->pages[$page . '.' . $type])) {
+ if(!$this->pages[$page . '.' . $type]) {
$res = $GLOBALS['db']->Execute('SELECT template, HEX(access), data FROM pages WHERE name = ? AND type = ?', array($page, $type));
if($res->RecordCount()) {