summaryrefslogtreecommitdiffstats
path: root/core/config.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/config.inc.php')
-rw-r--r--core/config.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/config.inc.php b/core/config.inc.php
new file mode 100644
index 0000000..5318341
--- /dev/null
+++ b/core/config.inc.php
@@ -0,0 +1,11 @@
+<?PHP
+ require_once('config/config.inc.php');
+
+ require_once('core/db.inc.php');
+
+
+ $res = $GLOBALS['db']->Execute('SELECT name, value FROM config WHERE module = 0');
+
+ while($row = $res->FetchRow())
+ $GLOBALS['config'][$row[0]] = $row[1];
+?>