ZwiiCMS/index.php

56 lines
1.2 KiB
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>
2023-01-09 10:23:32 +01:00
* @copyright Copyright (C) 2018-2023, Frédéric Tempez
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/
2018-04-02 08:29:19 +02:00
*/
/**
* Initialisation de Zwii
*/
2021-12-23 10:14:25 +01:00
// Remplace la directive htaccess
ini_set('session.use_trans_sid', FALSE);
// Démarre la session
session_start();
2018-04-02 08:29:19 +02:00
/**
* Vérification de la version de PHP
*/
2021-03-10 19:00:43 +01:00
if(version_compare(PHP_VERSION, '7.2.0', '<')) {
exit('PHP 7.2+ required.');
2018-04-02 08:29:19 +02:00
}
2020-10-20 18:32:25 +02:00
/*
2020-10-20 18:32:25 +02:00
*Localisation
2020-11-01 08:27:32 +01:00
* Locales :
* french : free.fr
* fr_FR : XAMPP Macos
* fr_FR.utf8 : la majorité
*/
2020-11-01 08:27:32 +01:00
date_default_timezone_set('Europe/Paris');
setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8');
2019-05-03 09:48:06 +02:00
2020-10-20 18:32:25 +02:00
/**
* Chargement des classes
*/
2019-12-15 10:47:18 +01:00
require 'core/class/autoload.php';
autoload::autoloader();
2020-10-20 18:32:25 +02:00
/**
* 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();