PEEL Shopping
Open source ecommerce : PEEL Shopping
index.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: index.php 46935 2015-09-18 08:49:48Z gboussin $
14 define('IN_INSTALLATION', 1);
15 include("../configuration.inc.php");
16 
17 $GLOBALS['DOC_TITLE'] = $GLOBALS['STR_ADMIN_INSTALL_STEP1_TITLE'] . ' ' . PEEL_VERSION;
18 // Pour éviter qu'un utilisateur ne lance l'installation avec les droits de demo par exemple
19 unset($_SESSION['session_utilisateur']);
20 unset($_SESSION['session_commande']);
21 unset($_SESSION['session_droit']);
22 unset($_SESSION['session_install_finished']);
23 $_SESSION['session_install_serveur'] = "";
24 $_SESSION['session_install_utilisateur'] = "";
25 $_SESSION['session_install_motdepasse'] = "";
26 $_SESSION['session_install_choixbase'] = "";
27 $_SESSION['session_install_langs'] = "";
28 
29 // Réinitialisation de l'installation si arrêtée en cours précédemment
30 unset($_SESSION['session_peel_sql']);
31 unset($_SESSION['session_peel_sql_premium']);
32 
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']);
47 $output = $tpl->fetch();
48 
49 include($GLOBALS['repertoire_modele'] . "/admin_haut.php");
50 echo $output;
51 include($GLOBALS['repertoire_modele'] . "/admin_bas.php");
52 
$tpl
Definition: index.php:69
const PEEL_VERSION(version_compare(PHP_VERSION, '5.1.2', '<'))
$output
Definition: index.php:61
$GLOBALS['page_name']
Definition: index.php:28
$_SESSION['session_install_serveur']
Definition: index.php:23

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:28:54 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.