diff options
author | neoraider <devnull@localhost> | 2006-01-07 02:30:00 +0100 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-01-07 02:30:00 +0100 |
commit | 61f7b4cc39a399a16298453acbe5a8f49ad0513d (patch) | |
tree | 0689466391e396e8e62c883994148f09f60c467b /code/content.inc.php | |
parent | a89ac4fda6c7cab6cace4078491c29f215213ab2 (diff) | |
download | neon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.tar neon-61f7b4cc39a399a16298453acbe5a8f49ad0513d.zip |
Hmm... die Content-Handler sind jetzt ansatzweise implementiert.
Diffstat (limited to 'code/content.inc.php')
-rw-r--r-- | code/content.inc.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/code/content.inc.php b/code/content.inc.php new file mode 100644 index 0000000..5fc2d76 --- /dev/null +++ b/code/content.inc.php @@ -0,0 +1,17 @@ +<?PHP + if(!defined('CONTENT_INC')) { + define('CONTENT_INC', 1); + + include('code/db.inc.php'); + + function GetPage($name) { + $res = DBQuery('SELECT access, handler, data FROM pages WHERE name = ?', $name); + + parse_str($res->fields[2], $data); + + include('handlers/' . $res->fields[1]); + + return $handlers[$res->fields[1]]($data); + } + } +?> |