ZwiiCMS, le gestionnaire de site Web sans base de données. 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.

52 lines
1.1 KiB

3 years ago
3 months ago
3 years ago
3 years ago
3 years ago
2 months ago
3 years ago
7 months ago
7 months ago
2 years ago
7 months ago
7 months ago
3 years ago
7 months ago
  1. <?php
  2. /**
  3. * This file is part of Zwii.
  4. *
  5. * For full copyright and license information, please see the LICENSE
  6. * file that was distributed with this source code.
  7. *
  8. * @author Rémi Jean <remi.jean@outlook.com>
  9. * @copyright Copyright (C) 2008-2018, Rémi Jean
  10. * @author Frédéric Tempez <frederic.tempez@outlook.com>
  11. * @copyright Copyright (C) 2018-2021, Frédéric Tempez
  12. * @license GNU General Public License, version 3
  13. * @link http://zwiicms.fr/
  14. */
  15. /**
  16. * Initialisation de Zwii
  17. */
  18. session_start();
  19. /**
  20. * Vérification de la version de PHP
  21. */
  22. if(version_compare(PHP_VERSION, '7.2.0', '<')) {
  23. exit('PHP 7.2+ required.');
  24. }
  25. /*
  26. *Localisation
  27. * Locales :
  28. * french : free.fr
  29. * fr_FR : XAMPP Macos
  30. * fr_FR.utf8 : la majorité
  31. */
  32. date_default_timezone_set('Europe/Paris');
  33. setlocale (LC_ALL,'french','fr_Fr','fr_FR.utf8');
  34. /**
  35. * Chargement des classes
  36. */
  37. require 'core/class/autoload.php';
  38. autoload::autoloader();
  39. /**
  40. * Chargement du coeur
  41. */
  42. require 'core/core.php';
  43. $core = new core;
  44. spl_autoload_register('core::autoload');
  45. echo $core->router();