From: arun Date: Tue, 12 Dec 2006 11:34:09 +0000 (+0000) Subject: added a config file (not under VC) X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=commitdiff_plain;h=320ebe96e21e08d5fad1a4ccbef241d5defd92bc;ds=sidebyside added a config file (not under VC) --- diff --git a/db.php b/db.php index bf82544..7f44350 100644 --- a/db.php +++ b/db.php @@ -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 @@