Aded GENERAL_ERROR to constants

git-svn-id: file:///svn/phpbb/trunk@57 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-02-25 01:23:32 +00:00
parent ead4422667
commit 79612d540e
2 changed files with 6 additions and 4 deletions

View file

@ -61,6 +61,7 @@ define(BANNED, 2);
define(QUERY_ERROR, 3); define(QUERY_ERROR, 3);
define(SESSION_CREATE, 4); define(SESSION_CREATE, 4);
define(NO_TOPICS, 5); define(NO_TOPICS, 5);
define(GENERAL_ERROR, 6);
// Session data // Session data
$session_cookie = "phpBBsession"; $session_cookie = "phpBBsession";
@ -69,9 +70,9 @@ $session_cookie_time = 3600;
// DB connection config // DB connection config
$dbms = "mysql"; $dbms = "mysql";
$dbhost = "localhost"; $dbhost = "localhost";
$dbname = "phpbb"; $dbname = "";
$dbuser = "iamstillanidiot"; $dbuser = "";
$dbpasswd = "iamstillanidiotspassword"; $dbpasswd = "";
// Date format (needs to go into DB) // Date format (needs to go into DB)
$date_format = "M d, Y h:i:s a"; $date_format = "M d, Y h:i:s a";

View file

@ -41,6 +41,7 @@ switch($dbms)
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false); $db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db) if(!$db)
{ {
error_die($db, SQL_CONNECT); $db_error = $db->sql_error();
error_die($db, SQL_CONNECT, $db_error["message"]);
} }
?> ?>