ZwiiCMS, le gestionnaire de site Web sans base de données. #zwii #cms #nosql #json https://www.zwiicms.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.1 KiB

4 years ago
<?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
2 years ago
* @author Frédéric Tempez <frederic.tempez@outlook.com>
7 months ago
* @copyright Copyright (C) 2018-2021, Frédéric Tempez
4 years ago
* @license GNU General Public License, version 3
* @link http://zwiicms.fr/
4 years ago
*/
/**
* Initialisation de Zwii
*/
session_start();
4 years ago
/**
* Vérification de la version de PHP
*/
7 months ago
if(version_compare(PHP_VERSION, '7.2.0', '<')) {
exit('PHP 7.2+ required.');
4 years ago
}
11 months ago
/*
11 months ago
*Localisation
* Locales :
* french : free.fr
* fr_FR : XAMPP Macos
* fr_FR.utf8 : la majorité
*/
date_default_timezone_set('Europe/Paris');
setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8');
2 years ago
11 months ago
/**
* Chargement des classes
*/
require 'core/class/autoload.php';
autoload::autoloader();
11 months ago
/**
* Chargement du coeur
*/
4 years ago
require 'core/core.php';
$core = new core;
spl_autoload_register('core::autoload');
11 months ago
echo $core->router();