-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
35 lines (27 loc) · 1.15 KB
/
Copy pathconfig.php
File metadata and controls
35 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/***
*
* Configuration du moteur (base de données, inclusions des fonctions, etc.)
* @author Julien Bernard
*
*/
session_start();
$timeStart = microtime(true); // Temps d'exécution de la page, voir la fonction foot() (functions.php).
/* Configuration de la base de données */
define("SQL_DSN", "mysql:host=localhost;dbname=spaceengine");
define("SQL_USER", "root");
define("SQL_PASS", "");
define("SQL_ENCODE", "utf8");
/* Chemin d'accès du site */
define("BASE_SITE", "http://localhost:8000/Julien/ApocalySpace/SpaceEngine/");
define('BASE_PATH', '/Julien/ApocalySpace/SpaceEngine/');
/* Informations par défaut */
define("DEFAULT_DESCRIPTION", "Site propulsé par le SpaceEngine ! SpaceEngine Copyright (C) 2013 Julien Bernard - SpaceEngine is a free website engine under GPL license!");
define("DEFAULT_TITLE", "SpaceEngine - ");
/* Chemin d'accès MVC */
define("PATH_MODELS", "./Models/");
define("PATH_CONTROLLERS", "./Controllers/");
define("PATH_VIEWS", "./Views/");
include_once("./SpaceEngine/ISpaceEngine.php");
include_once("./SpaceEngine/engine.class.php");
include_once("./SpaceEngine/template.class.php");