1 2 3 4 5 6 7 8 9 10 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]; ?>