Exemplo n.º 1
0
    lastStepStatus(0);
    updateToVersion('0.9.13.1');
}
/**
 * be compatible with the few who already use 0.9.14-svn1
 */
if (isFroxlorVersion('0.9.14-svn1')) {
    showUpdateStep("Resetting version 0.9.14-svn1 to 0.9.13.1");
    lastStepStatus(0);
    updateToVersion('0.9.13.1');
}
if (isFroxlorVersion('0.9.13.1')) {
    showUpdateStep("Updating from 0.9.13.1 to 0.9.14-svn2", false);
    if (Settings::Get('ticket.enabled') == '1') {
        showUpdateStep("Setting INTERVAL for used-tickets cronjob");
        setCycleOfCronjob(null, null, Settings::Get('ticket.reset_cycle'), null);
        lastStepStatus(0);
    }
    updateToVersion('0.9.14-svn2');
}
if (isFroxlorVersion('0.9.14-svn2')) {
    showUpdateStep("Updating from 0.9.14-svn2 to 0.9.14-svn3", false);
    $update_awstats_icons = isset($_POST['update_awstats_icons']) ? makeCorrectDir($_POST['update_awstats_icons']) : Settings::Get('system.awstats_icons');
    showUpdateStep("Adding AWStats icons path to the settings");
    $stmt = Database::prepare("\n\t\tINSERT INTO `" . TABLE_PANEL_SETTINGS . "` SET\n\t\t`settinggroup` = 'system',\n\t\t`varname` = 'awstats_icons',\n\t\t`value` = :value");
    Database::pexecute($stmt, array('value' => $update_awstats_icons));
    lastStepStatus(0);
    updateToVersion('0.9.14-svn3');
}
if (isFroxlorVersion('0.9.14-svn3')) {
    showUpdateStep("Updating from 0.9.14-svn3 to 0.9.14-svn4", false);
Exemplo n.º 2
0
    lastStepStatus(0);
    updateToVersion('0.9.13.1');
}
/**
 * be compatible with the few who already use 0.9.14-svn1
 */
if (isFroxlorVersion('0.9.14-svn1')) {
    showUpdateStep("Resetting version 0.9.14-svn1 to 0.9.13.1");
    lastStepStatus(0);
    updateToVersion('0.9.13.1');
}
if (isFroxlorVersion('0.9.13.1')) {
    showUpdateStep("Updating from 0.9.13.1 to 0.9.14-svn2", false);
    if ($settings['ticket']['enabled'] == '1') {
        showUpdateStep("Setting INTERVAL for used-tickets cronjob");
        setCycleOfCronjob(null, null, $settings['ticket']['reset_cycle'], null);
        lastStepStatus(0);
    }
    updateToVersion('0.9.14-svn2');
}
if (isFroxlorVersion('0.9.14-svn2')) {
    showUpdateStep("Updating from 0.9.14-svn2 to 0.9.14-svn3", false);
    $update_awstats_icons = isset($_POST['update_awstats_icons']) ? makeCorrectDir($_POST['update_awstats_icons']) : $settings['system']['awstats_icons'];
    showUpdateStep("Adding AWStats icons path to the settings");
    $db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'awstats_icons', '" . $db->escape($update_awstats_icons) . "');");
    lastStepStatus(0);
    updateToVersion('0.9.14-svn3');
}
if (isFroxlorVersion('0.9.14-svn3')) {
    showUpdateStep("Updating from 0.9.14-svn3 to 0.9.14-svn4", false);
    $update_ssl_cert_chainfile = isset($_POST['update_ssl_cert_chainfile']) ? $_POST['update_ssl_cert_chainfile'] : '';