ZwiiCMS/index.php

41 lines
960 B
PHP
Raw Normal View History

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
2019-11-18 08:53:43 +01:00
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2018-2020, Frédéric Tempez
2018-04-02 08:29:19 +02:00
* @license GNU General Public License, version 3
* @link http://zwiicms.fr/
2018-04-02 08:29:19 +02:00
*/
/**
* Vérification de la version de PHP
*/
if(version_compare(PHP_VERSION, '5.6.0', '<')) {
exit('PHP 5.6+ required.');
}
2020-10-19 20:48:18 +02:00
/* Localisation */
2018-11-13 18:33:22 +01:00
date_default_timezone_set('Europe/Paris');
2020-10-12 17:32:27 +02:00
setlocale (LC_ALL, 'fr_FR.utf8','fra');
2019-05-03 09:48:06 +02:00
2018-04-02 08:29:19 +02:00
/**
* Initialisation de Zwii
*/
2018-04-02 08:29:19 +02:00
session_start();
2019-12-15 10:47:18 +01:00
// Chargement des classes
require 'core/class/autoload.php';
autoload::autoloader();
// Chargement du coeur
2018-04-02 08:29:19 +02:00
require 'core/core.php';
$core = new core;
spl_autoload_register('core::autoload');
2020-10-19 20:48:18 +02:00
echo $core->router();