0)
{
$gLogger->notice('INSTALLATION: This is a BETA release!');
$messageWarning .= '
'.$gL10n->get('INS_WARNING_BETA_VERSION').'
';
}
// if safe mode is used then show a notice to the user
// TODO deprecated: Remove if PHP 5.3 dropped
if (PhpIniUtils::isSafeModeEnabled())
{
$gLogger->warning('DEPRECATED: Safe-Mode is enabled!');
$messageWarning .= '
'.$gL10n->get('INS_WARNING_SAFE_MODE').'
';
}
// create a page with the notice that the installation must be configured on the next pages
// create form with selectbox where user can select a language
$form = new HtmlFormInstallation('installation-form', safeUrl(ADMIDIO_URL . '/adm_program/installation/installation.php', array('step' => 'connect_database')));
$form->setFormDescription(
$gL10n->get(
'INS_WELCOME_TEXT',
array(
'', '',
'', ''
)
),
$gL10n->get('INS_WELCOME_TO_INSTALLATION')
);
// the possible languages will be read from a xml file
$form->addSelectBoxFromXml(
'system_language', $gL10n->get('INS_PLEASE_CHOOSE_LANGUAGE'), ADMIDIO_PATH . FOLDER_LANGUAGES . '/languages.xml',
'isocode', 'name', array('defaultValue' => $gL10n->getLanguage(), 'showContextDependentFirstEntry' => false)
);
$form->addHtml($messageWarning);
$form->addSubmitButton('next_page', $gL10n->get('INS_DATABASE_LOGIN'), array('icon' => 'layout/forward.png'));
echo $form->show();