- 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

@@ -79,4 +79,20 @@ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version)
$question .= $priorities.'</select>';
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
}
if(versionInUpdate($current_version, '0.9.6-svn5'))
{
$has_preconfig = true;
$description = 'If you have more than one PHP-configurations defined in Froxlor you can know set a default one which will be used for every domain.';
$question = '<strong>Select default PHP-configuration:</strong>&nbsp;';
$question .= '<select name="update_defsys_phpconfig">';
$configs_array = getPhpConfigs();
$configs = '';
foreach($configs_array as $idx => $desc)
{
$configs .= makeoption($desc, $idx, '1');
}
$question .= $configs.'</select>';
eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";");
}
}