diff options
author | neoraider <devnull@localhost> | 2006-05-25 23:36:02 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2006-05-25 23:36:02 +0200 |
commit | fa7c1b717c118d08ba55c5306c4aeeb3e4418ca5 (patch) | |
tree | 5896ae9f7a43f27793733e28168ac579b2dd1a0d /code/config.inc.php | |
parent | 8657d3fb5cbd25f78bc668ea9a0a8b17913dd490 (diff) | |
download | neon-fa7c1b717c118d08ba55c5306c4aeeb3e4418ca5.tar neon-fa7c1b717c118d08ba55c5306c4aeeb3e4418ca5.zip |
Konfiguration steht jetzt in der Datenbank.
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]; +?> |