mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-24 12:38:58 +00:00
Can easily overwrite website configuration
This commit is contained in:
parent
2289d54084
commit
2d867458e8
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
config/overwrite.php
|
3
init.php
3
init.php
@ -34,6 +34,9 @@ $cs->register("config", $config);
|
||||
foreach(glob(PROJECT_PATH."config/*.php") as $confFile){
|
||||
require $confFile;
|
||||
}
|
||||
//Reload overwrite config if any
|
||||
if(file_exists(PROJECT_PATH."config/overwrite.php"))
|
||||
require PROJECT_PATH."config/overwrite.php";
|
||||
unset($config);
|
||||
|
||||
//Connexion to the database
|
||||
|
Loading…
Reference in New Issue
Block a user