2018-04-02 08:29:19 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This file is part of Zwii.
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see the LICENSE
|
|
|
|
* file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* @author Rémi Jean <remi.jean@outlook.com>
|
|
|
|
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
|
|
|
* @license GNU General Public License, version 3
|
|
|
|
* @link http://zwiicms.com/
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Vérification de la version de PHP
|
|
|
|
*/
|
2019-08-07 17:54:10 +02:00
|
|
|
if(version_compare(PHP_VERSION, '7.0.0', '<')) {
|
|
|
|
exit('PHP 7.0+ required.');
|
2018-04-02 08:29:19 +02:00
|
|
|
}
|
|
|
|
|
2018-11-13 18:33:22 +01:00
|
|
|
/* Set locale to French */
|
|
|
|
date_default_timezone_set('Europe/Paris');
|
2019-05-03 23:39:01 +02:00
|
|
|
setlocale (LC_TIME, 'fr_FR', 'french');
|
2019-05-03 09:48:06 +02:00
|
|
|
|
2018-04-02 08:29:19 +02:00
|
|
|
/**
|
|
|
|
* Initialisation de Zwii
|
|
|
|
*/
|
|
|
|
session_start();
|
|
|
|
require 'core/core.php';
|
|
|
|
$core = new core;
|
|
|
|
spl_autoload_register('core::autoload');
|
2019-07-08 19:01:37 +02:00
|
|
|
echo $core->router();
|