-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
16 lines (13 loc) · 822 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
session_start();
define('URL', isset($_SERVER['HTTPS']) ? "https"."://$_SERVER[HTTP_HOST]" . dirname($_SERVER['SCRIPT_NAME']) : "http"."://$_SERVER[HTTP_HOST]".dirname($_SERVER['SCRIPT_NAME'])); // retour la racine
define('RACINE', dirname(__FILE__)); // renvoi: ...la racine du site
define('DS', DIRECTORY_SEPARATOR); // renvoi: \
define('VIEW', RACINE . DS . 'views' . DS); //mène au dossier View
define('MODEL', RACINE . DS . 'models' . DS); //mène au dossier Model
define('CONTROLER', RACINE . DS . 'controllers' . DS); //mène au dossier Controler
define('PUB', RACINE . DS . 'public' . DS); //mène au dossier Public
define('BACK', RACINE . DS . 'backend' . DS); //mène au dossier Public
define('CORE', RACINE . DS . 'core' . DS); //mène au dossier core
require CORE . 'includes.php';
new Dispatcher();