ZwiiCMS/index.php

55 lines
1.2 KiB
PHP

<?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
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2018-2023, Frédéric Tempez
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/
*/
/**
* Initialisation de Zwii
*/
// Remplace la directive htaccess
ini_set('session.use_trans_sid', FALSE);
// Démarre la session
session_start();
// Contrôle des conditions de fonctionnement
include_once('core/include/checkup.php');
// Mise à jour du système de BDD
include_once('core/include/pre-update.php');
/*
*Localisation par défaut
* Locales :
* french : free.fr
* fr_FR : XAMPP Macos
* fr_FR.utf8 : la majorité
*/
date_default_timezone_set('Europe/Paris');
setlocale (LC_ALL, 'fr_FR.UTF8', 'fr_FR', 'french');
/**
* Chargement des classes
*/
require 'core/class/autoload.php';
autoload::autoloader();
/**
* Chargement du coeur
*/
require 'core/core.php';
$core = new core;
spl_autoload_register('core::autoload');
echo $core->router();