Browse Source

Add config override for dev purpose

Thomas Leister 9 years ago
parent
commit
94799bff66
1 changed files with 9 additions and 3 deletions
  1. 9 3
      include/php/default.inc.php

+ 9 - 3
include/php/default.inc.php

@@ -1,9 +1,15 @@
 <?php
 
 // Include config
-require_once 'config/config.inc.php';
+if(file_exists('config/config_override.inc.php')){
+	require_once 'config/config_override.inc.php';
+}
+else{
+	require_once 'config/config.inc.php';
+}
+
 
-// Establish database connection 
+// Establish database connection
 
 $db = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE);
 
@@ -19,4 +25,4 @@ $user = new USER();
 require_once 'include/php/global.inc.php';
 require_once 'include/php/checkpermissions.inc.php';
 
-?>
+?>