User php file now resides in parent folder to avoid overwrite
This commit is contained in:
parent
cf5b6d87ff
commit
56879f6c14
1 changed files with 3 additions and 3 deletions
|
@ -23,12 +23,12 @@ function rewrite_DB_conf($host, $user, $pass, $db)
|
|||
. "define(\"DB_NAME\", \"$db\");\n"
|
||||
. "\?>";
|
||||
|
||||
file_put_contents("database.user.php", $ptl);
|
||||
file_put_contents("../database.user.php", $ptl);
|
||||
}
|
||||
|
||||
require("Database.php");
|
||||
if(file_exists("database.user.php"))
|
||||
require("database.user.php");
|
||||
if(file_exists("../database.user.php"))
|
||||
require("../database.user.php");
|
||||
|
||||
session_start();
|
||||
?>
|
Loading…
Reference in a new issue