diff options
Diffstat (limited to 'code/config.inc.php')
-rw-r--r-- | code/config.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/code/config.inc.php b/code/config.inc.php new file mode 100644 index 0000000..b94a74e --- /dev/null +++ b/code/config.inc.php @@ -0,0 +1,11 @@ +<?PHP + require_once('config/config.inc.php'); + + require_once('code/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]; +?> |