예제 #1
0
            foreach ($bundleconfig as $name => $val) {
                $tval = $setctl->get($name);
                if (strlen($tval) == 0 || $tval == false || $tval == 0) {
                    $setctl->set($name, $val);
                }
            }
            $setctl->set('bundleconfigured', 1);
        }
    }
} else {
    define('DBCONNECTION', false);
    if (!$cfg['installerenabled']) {
        echo 'Can\'t connect to the database and the installer is disabled. (If you need to re-install switch $cfg[\'installerenabled\'] to true.)';
        die;
    }
    $setctl->setdbperform(false);
    $setctl->defaults();
}
class basedir
{
    function basedir()
    {
        $this->basedirs = array();
        $this->driveaccess = array();
        $this->cnt = 0;
        $this->init();
    }
    function init()
    {
        global $setctl, $cfg;
        $defaccess = array();