- add setting for default php-configuration, fixes #182

- set version to 0.9.6-svn5
This commit is contained in:
Michael Kaufmann (d00p)
2010-04-30 19:51:19 +00:00
parent c6a45789bc
commit 962abd34c7
9 changed files with 97 additions and 5 deletions

View File

@@ -595,4 +595,22 @@ if(isFroxlorVersion('0.9.6-svn3'))
updateToVersion('0.9.6-svn4');
}
if(isFroxlorVersion('0.9.6-svn4'))
{
showUpdateStep("Updating from 0.9.6-svn4 to 0.9.6-svn5", false);
$update_defsys_phpconfig = isset($_POST['update_defsys_phpconfig']) ? intval($_POST['update_defsys_phpconfig']) : 1;
if($update_defsys_phpconfig != 1) {
showUpdateStep("Setting default php-configuration to user defined config #".$update_defsys_phpconfig);
} else {
showUpdateStep("Adding default php-configuration setting to the database");
}
$db->query("INSERT INTO `" . TABLE_PANEL_SETTINGS . "` (`settinggroup`, `varname`, `value`) VALUES ('system', 'mod_fcgid_defaultini', '".(int)$update_defsys_phpconfig."');");
lastStepStatus(0);
updateToVersion('0.9.6-svn5');
}
?>