Esempio n. 1
0
function validate_dbConfig()
{
    global $mod_strings;
    require_once 'install/checkDBSettings.php';
    return checkDBSettings(true);
}
Esempio n. 2
0
                //</div>';
            }
        }
        echo $errors;
        return;
    }
    if (isset($_REQUEST['checkInstallSystem']) && $_REQUEST['checkInstallSystem']) {
        require_once 'install/installSystemCheck.php';
        echo runCheck($install_script, $mod_strings);
        return;
    }
    //if this is a DB Settings check, then just run the check and return,
    //this is an ajax call and there is no need for further processing
    if (isset($_REQUEST['checkDBSettings']) && $_REQUEST['checkDBSettings']) {
        require_once 'install/checkDBSettings.php';
        echo checkDBSettings();
        return;
    }
}
//maintaining the install_type if earlier set to custom
if (isset($_REQUEST['install_type']) && $_REQUEST['install_type'] == 'custom') {
    $_SESSION['install_type'] = $_REQUEST['install_type'];
}
//set the default settings into session
foreach ($installer_defaults as $key => $val) {
    if (!isset($_SESSION[$key])) {
        $_SESSION[$key] = $val;
    }
}
// always perform
clean_special_arguments();