Added page function + needed files & debug
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<?php
|
||||
// -- GENERAL SETTING --
|
||||
$debug="on";
|
||||
|
||||
// --- DB SETTINGS ---
|
||||
$db_needed="no";
|
||||
$db_debug="yes";
|
||||
@@ -7,9 +10,14 @@ $db_name="database-name";
|
||||
$db_user="database-user";
|
||||
$db_pass="database-user-password";
|
||||
|
||||
//-------------------------------------------------------------------------------------
|
||||
// --- DON'T CHANGE ALL THE CODE BELOW!!! ---
|
||||
//-------------------------------------------------------------------------------------
|
||||
|
||||
// --- GENERAL SECTION CONFIGURATION
|
||||
if ($debug == "on"){ define("DEBUG",true);} else { define("DEBUG", false); }
|
||||
|
||||
// --- DON'T CHANGE ALL THE CODE BELOW ---
|
||||
// --- DB SECTION CONFIGURATION
|
||||
if ($db_needed == "yes"){
|
||||
define("DB_HOST", $db_host);
|
||||
define("DB_USER", $db_user);
|
||||
@@ -17,6 +25,5 @@ if ($db_needed == "yes"){
|
||||
define("DB_NAME", $db_name);
|
||||
define("DB_DEBUG", $db_debug);
|
||||
require_once(CONFIG_FOLD . "db.php");
|
||||
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user