diff --git a/www/admin/config.php b/www/admin/config.php deleted file mode 100755 index 0ddfd8a0..00000000 --- a/www/admin/config.php +++ /dev/null @@ -1,25 +0,0 @@ - includes master config -* HISTORY: -*********************************************************************/ - -define('CONFIG_PATH', 'configs'.DIRECTORY_SEPARATOR); -// config path prefix search, start with 0, got down each level __DIR__ has, if nothing found -> bail -$CONFIG_PATH_PREFIX = ''; -for ($dir_pos = 0, $dir_max = count(explode('/', __DIR__)); $dir_pos <= $dir_max; $dir_pos ++) { - $CONFIG_PATH_PREFIX .= '..'.DIRECTORY_SEPARATOR; - if (file_exists($CONFIG_PATH_PREFIX.CONFIG_PATH.'config.inc')) { - require $CONFIG_PATH_PREFIX.CONFIG_PATH.'config.inc'; - break; - } -} -// fail if no base DS is not set -if (!defined('DS')) { - exit('Base config unloadable'); -} - -// __END__ diff --git a/www/admin/config.php b/www/admin/config.php new file mode 120000 index 00000000..17767f7f --- /dev/null +++ b/www/admin/config.php @@ -0,0 +1 @@ +../configs/config.php \ No newline at end of file diff --git a/www/configs/config.php b/www/configs/config.php new file mode 100755 index 00000000..0ddfd8a0 --- /dev/null +++ b/www/configs/config.php @@ -0,0 +1,25 @@ + includes master config +* HISTORY: +*********************************************************************/ + +define('CONFIG_PATH', 'configs'.DIRECTORY_SEPARATOR); +// config path prefix search, start with 0, got down each level __DIR__ has, if nothing found -> bail +$CONFIG_PATH_PREFIX = ''; +for ($dir_pos = 0, $dir_max = count(explode('/', __DIR__)); $dir_pos <= $dir_max; $dir_pos ++) { + $CONFIG_PATH_PREFIX .= '..'.DIRECTORY_SEPARATOR; + if (file_exists($CONFIG_PATH_PREFIX.CONFIG_PATH.'config.inc')) { + require $CONFIG_PATH_PREFIX.CONFIG_PATH.'config.inc'; + break; + } +} +// fail if no base DS is not set +if (!defined('DS')) { + exit('Base config unloadable'); +} + +// __END__