summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authordeva <deva>2009-04-18 20:09:26 +0000
committerdeva <deva>2009-04-18 20:09:26 +0000
commitee563ba81b1be27cf02dbe125a1865012cadb02f (patch)
tree4d2bc6b835656ae286f76d19b8a338471abb14a8 /utils
parent267b9c30df4100aa0f4d8ea189a3f3e78334cde8 (diff)
Stripped out all constant values from html.
Diffstat (limited to 'utils')
-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