Skip to content

Commit

Permalink
Début de paramétrage
Browse files Browse the repository at this point in the history
  • Loading branch information
desirendr committed Jan 4, 2017
1 parent 8e5d9ec commit e08e8a7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
.idea/
.idea/
app/config/server.php
app/config/db.inc.php
45 changes: 45 additions & 0 deletions app/config/config.inc.php
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);
4 changes: 4 additions & 0 deletions index.php
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');

0 comments on commit e08e8a7

Please sign in to comment.