diff --git a/phpBB/config.php b/phpBB/config.php index e5f6eb26fb..59bf08ca93 100644 --- a/phpBB/config.php +++ b/phpBB/config.php @@ -61,6 +61,7 @@ define(BANNED, 2); define(QUERY_ERROR, 3); define(SESSION_CREATE, 4); define(NO_TOPICS, 5); +define(GENERAL_ERROR, 6); // Session data $session_cookie = "phpBBsession"; @@ -69,9 +70,9 @@ $session_cookie_time = 3600; // DB connection config $dbms = "mysql"; $dbhost = "localhost"; -$dbname = "phpbb"; -$dbuser = "iamstillanidiot"; -$dbpasswd = "iamstillanidiotspassword"; +$dbname = ""; +$dbuser = ""; +$dbpasswd = ""; // Date format (needs to go into DB) $date_format = "M d, Y h:i:s a"; diff --git a/phpBB/db.php b/phpBB/db.php index 2a4dc39d79..0571735aa8 100644 --- a/phpBB/db.php +++ b/phpBB/db.php @@ -41,6 +41,7 @@ switch($dbms) $db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false); if(!$db) { - error_die($db, SQL_CONNECT); + $db_error = $db->sql_error(); + error_die($db, SQL_CONNECT, $db_error["message"]); } ?>