summaryrefslogtreecommitdiff
path: root/utils/config.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/config.php')
-rw-r--r--utils/config.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/config.php b/utils/config.php
new file mode 100644
index 0000000..8bdbd15
--- /dev/null
+++ b/utils/config.php
@@ -0,0 +1,21 @@
+<?php
+/* -*- Mode: php; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+
+function config($var)
+{
+ global $TITLE, $PRELOAD, $DEFAULT_PAGE, $MENU;
+ switch($var) {
+ case 'title':
+ return $TITLE;
+ case 'preload':
+ return $PRELOAD;
+ case 'default':
+ return $DEFAULT_PAGE;
+ case 'menu':
+ return $MENU;
+ default:
+ return $var;
+ }
+}
+
+?> \ No newline at end of file