mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-16 05:50:55 +08:00
configuration and settings store in dastabase
This commit is contained in:
@@ -5,6 +5,15 @@ die('Hacking attempt!');
|
||||
|
||||
$CONFIGURATIONS = array('ACCOUNT', 'ADVERTISEMENT', 'ATTACHMENT', 'AUTHORITY', 'BASIC', 'BONUS', 'CODE', 'MAIN', 'SECURITY', 'SMTP', 'TORRENT', 'TWEAK');
|
||||
function ReadConfig ($configname = NULL) {
|
||||
// static $allConfig;
|
||||
// if (is_null($allConfig)) {
|
||||
// $configs = config();
|
||||
// foreach ($configs as $name => $value) {
|
||||
// $prefix = strtoupper(strstr($name, '.', true));
|
||||
// $pureName = substr($name, strpos($name, '.') + 1);
|
||||
// $GLOBALS[$prefix][$pureName] = $value;
|
||||
// }
|
||||
// }
|
||||
global $CONFIGURATIONS;
|
||||
if ($configname) {
|
||||
$configname = basename($configname);
|
||||
|
||||
Reference in New Issue
Block a user