diff options
-rw-r--r-- | db.php | 6 | ||||
-rw-r--r-- | functions.php | 16 | ||||
-rw-r--r-- | index.php | 3 |
3 files changed, 5 insertions, 20 deletions
@@ -6,9 +6,9 @@ function DB_open() { - global $DB; - if ( $DB = mysql_connect('mysql.nubati.net','doko', '$DoKo#.') ) - mysql_select_db('dokodb') or die('Could not select database'); + global $DB,$DB_user,$DB_host,$DB_database,$DB_password; + if ( $DB = mysql_connect($DB_host,$DB_user, $DB_password) ) + mysql_select_db($DB_database) or die('Could not select database'); else die (mysql_error()); diff --git a/functions.php b/functions.php index 0168ce3..abf2b82 100644 --- a/functions.php +++ b/functions.php @@ -1,21 +1,5 @@ <?php -/* - * config - */ - -$host = "http://doko.nubati.net/database/index.php"; -$wiki = "http://wiki.nubati.net/index.php?title=EmailDoko"; -$debug = 0; - -$last=-2; - -/* - * end config - */ - - -/* helper function */ function mymail($To,$Subject,$message) { global $debug; @@ -38,7 +38,8 @@ <?php error_reporting(E_ALL); - + +include_once("config.php"); include_once("functions.php"); include_once("db.php"); |