(2010-) * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt * @package Language * @version $Id$ */ /** * checks if the new-version has some updating to do * * @param boolean $has_preconfig pointer to check if any preconfig has to be output * @param string $return pointer to output string * @param string $current_version current froxlor version * * @return null */ function parseAndOutputPreconfig(&$has_preconfig, &$return, $current_version) { global $settings, $lng; if(versionInUpdate($current_version, '0.9.4-svn2')) { $has_preconfig = true; $description = 'Froxlor now enables the usage of a domain-wildcard entry and subdomains for this domain at the same time (subdomains are parsed before the main-domain vhost container).'; $description.= 'This makes it possible to catch all non-existing subdomains with the main vhost but also have the ability to use subdomains for that domain.
'; $description.= 'If you would like Froxlor to do so with your domains, the update script can set the correct values for existing domains for you. Note: future domains will have wildcard-entries enabled by default no matter how you decide here.'; $question = 'Do you want to use wildcard-entries for existing domains?: '; $question.= makeyesno('update_domainwildcardentry', '1', '0', '1'); eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); } if(versionInUpdate($current_version, '0.9.6-svn2')) { if(!PHPMailer::ValidateAddress($settings['panel']['adminmail'])) { $has_preconfig = true; $description = 'Froxlor uses a newer version of the phpMailerClass and determined that your current admin-mail address is invalid.'; $question = 'Please specify a new admin-email address: '; eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); } } if(versionInUpdate($current_version, '0.9.6-svn3')) { $has_preconfig = true; $description = 'You now have the possibility to define default error-documents for your webserver which replace the default webserver error-messages.'; $question = 'Do you want to enable default error-documents?: '; $question .= makeyesno('update_deferr_enable', '1', '0', '0').'

'; if($settings['system']['webserver'] == 'apache2') { $question .= 'Path/URL for error 500: 

'; $question .= 'Path/URL for error 401: 

'; $question .= 'Path/URL for error 403: 

'; } $question .= 'Path/URL for error 404: '; eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); } if(versionInUpdate($current_version, '0.9.6-svn4')) { $has_preconfig = true; $description = 'You can define a default support-ticket priority level which is pre-selected for new support-tickets.'; $question = 'Which should be the default ticket-priority?: '; $question .= ''; eval("\$return.=\"" . getTemplate("update/preconfigitem") . "\";"); } }