1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 11:39:37 +02:00

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(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";

View File

@ -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"]);
}
?>