summaryrefslogtreecommitdiffstats
path: root/code/content.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/content.inc.php')
-rw-r--r--code/content.inc.php17
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);
+ }
+ }
+?>