-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
.idea/ | ||
.idea/ | ||
app/config/server.php | ||
app/config/db.inc.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: ddleb | ||
* Date: 18/11/2016 | ||
* Time: 14:59 | ||
*/ | ||
|
||
if(SERVER === "DEV"){ | ||
|
||
/** | ||
* Constantes spécifiques pour config le serveur de dev | ||
* DEBUG = pour savoir si on affiche les bugs ou pas | ||
* RUN = Pour la page d'attente, on ne s'en sert pas pour le moment | ||
* GA = Google analytics, on ne veut pas que google juge les données des servers test etc, fausse les analyses | ||
*/ | ||
define('DEBUG', true); | ||
define('RUN', 'NORMAL'); | ||
define('GA', true); | ||
|
||
|
||
}elseif (SERVER === "TEST"){ | ||
|
||
/** | ||
* Constantes spécifiques pour config le serveur de test | ||
*/ | ||
define('DEBUG', true); | ||
define('RUN', 'NORMAL'); | ||
define('GA', false); | ||
|
||
|
||
}elseif (SERVER === "PROD"){ | ||
|
||
/** | ||
* Constantes spécifiques pour config le serveur de prod | ||
*/ | ||
define('DEBUG', false); | ||
define('RUN', 'WAIT'); | ||
define('GA', true); | ||
|
||
} | ||
|
||
define('SITE_NAME', 'MySite'); | ||
define('DEFAULT_MODULE', 'index'); | ||
define('PAGINATION', 5); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?php | ||
|
||
//Chargement des paramètres | ||
include_once ('app/config/server.php'); |