User php file now resides in parent folder to avoid overwrite

This commit is contained in:
zontreck 2024-05-15 04:54:52 -07:00
parent cf5b6d87ff
commit 56879f6c14

View file

@ -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();
?>