Require the database and system configuration in php files
This commit is contained in:
parent
4a5cb51b81
commit
df94f71453
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,9 @@ define("COMMON", 1);
|
||||||
|
|
||||||
define("NULLKEY", "00000000-0000-0000-0000-000000000000");
|
define("NULLKEY", "00000000-0000-0000-0000-000000000000");
|
||||||
|
|
||||||
|
if(file_exists("../database.user.php")) require("../database.user.php");
|
||||||
|
if(file_exists("../system.user.php")) require("../system.user.php");
|
||||||
|
|
||||||
|
|
||||||
function get_DB() {
|
function get_DB() {
|
||||||
return mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
return mysqli_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue