14 define(
'IN_INSTALLATION', 1);
15 include(
"../configuration.inc.php");
22 unset(
$_SESSION[
'session_install_finished']);
31 unset(
$_SESSION[
'session_peel_sql_premium']);
33 $tpl =
$GLOBALS[
'tplEngine']->createTemplate(
'installation_index.tpl');
34 $tpl->assign(
'php_version_info', (version_compare(PHP_VERSION,
'5.1.2',
'>=')?
'<span class="btn btn-success">' . PHP_VERSION .
'</span>':
'<span class="btn btn-danger">' . PHP_VERSION .
' - ' .
$GLOBALS[
"STR_ADMIN_INSTALL_ACTIVATE_PHP5"] .
'</span>'));
35 $tpl->assign(
'mbstring_info', (function_exists(
'mb_internal_encoding')?
'<span class="btn btn-success">'.$GLOBALS[
'STR_YES'].
'</span>':
'<span class="btn btn-danger">'.$GLOBALS[
'STR_NO'].
' - ' . $GLOBALS[
"STR_ADMIN_INSTALL_ACTIVATE_MBSTRING"] .
'</span>'));
36 $tpl->assign(
'utf8_info', ((function_exists(
'mb_list_encodings') && in_array(
'UTF-8', mb_list_encodings())) || (function_exists(
'mb_internal_encoding') && strtolower(mb_internal_encoding()) ==
'utf-8')?
'<span class="btn btn-success">'.$GLOBALS[
'STR_YES'].
'</span>':
'<span class="btn btn-danger">'.$GLOBALS[
'STR_NO'].
' - ' . $GLOBALS[
"STR_ADMIN_INSTALL_UTF8"] .
'</span>'));
37 $tpl->assign(
'allow_url_fopen_info', (function_exists(
'ini_get') && (@ini_get(
'allow_url_fopen') == 1 || strtolower(@ini_get(
'allow_url_fopen')) ==
'on')?
'<span class="btn btn-success">'.$GLOBALS[
'STR_YES'].
'</span>':
'<span class="btn btn-danger">'.$GLOBALS[
'STR_NO'].
' - ' . $GLOBALS[
"STR_ADMIN_INSTALL_ACTIVATE_URL_FOPEN"] .
'</span>'));
38 $tpl->assign(
'step_title', $GLOBALS[
'DOC_TITLE']);
39 $tpl->assign(
'STR_CONTINUE', $GLOBALS[
'STR_CONTINUE']);
40 $tpl->assign(
'STR_ADMIN_INSTALL_WELCOME', $GLOBALS[
'STR_ADMIN_INSTALL_WELCOME']);
41 $tpl->assign(
'STR_ADMIN_INSTALL_WELCOME_INTRO', $GLOBALS[
'STR_ADMIN_INSTALL_WELCOME_INTRO']);
42 $tpl->assign(
'STR_ADMIN_INSTALL_VERIFY_SERVER_CONFIGURATION', $GLOBALS[
'STR_ADMIN_INSTALL_VERIFY_SERVER_CONFIGURATION']);
43 $tpl->assign(
'STR_ADMIN_INSTALL_PHP_VERSION', $GLOBALS[
'STR_ADMIN_INSTALL_PHP_VERSION']);
44 $tpl->assign(
'STR_ADMIN_INSTALL_MBSTRING', $GLOBALS[
'STR_ADMIN_INSTALL_MBSTRING']);
45 $tpl->assign(
'STR_ADMIN_INSTALL_UTF8', $GLOBALS[
'STR_ADMIN_INSTALL_UTF8']);
46 $tpl->assign(
'STR_ADMIN_INSTALL_ALLOW_URL_FOPEN', $GLOBALS[
'STR_ADMIN_INSTALL_ALLOW_URL_FOPEN']);
49 include($GLOBALS[
'repertoire_modele'] .
"/admin_haut.php");
51 include($GLOBALS[
'repertoire_modele'] .
"/admin_bas.php");
const PEEL_VERSION(version_compare(PHP_VERSION, '5.1.2', '<'))
$_SESSION['session_install_serveur']