Add config override for dev purpose
This commit is contained in:
parent
a6edeed0e0
commit
94799bff66
1 changed files with 9 additions and 3 deletions
|
@ -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';
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue