aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-02-23 23:39:42 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-02-23 23:39:42 +0000
commit4e5538cb78ceb8e93ae10ec9ad306547e6014972 (patch)
treeb235f5d42c0186805d4e6bfd8df5a78a6cf24b88 /phpBB/db.php
parent8523870f8e55c5e170529a68eec6a93b0059d5a2 (diff)
downloadforums-4e5538cb78ceb8e93ae10ec9ad306547e6014972.tar
forums-4e5538cb78ceb8e93ae10ec9ad306547e6014972.tar.gz
forums-4e5538cb78ceb8e93ae10ec9ad306547e6014972.tar.bz2
forums-4e5538cb78ceb8e93ae10ec9ad306547e6014972.tar.xz
forums-4e5538cb78ceb8e93ae10ec9ad306547e6014972.zip
Viewforum works, and error die outputs nice, templated, errors
git-svn-id: file:///svn/phpbb/trunk@37 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/db.php')
-rw-r--r--phpBB/db.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/phpBB/db.php b/phpBB/db.php
index 3f37068919..951235eabe 100644
--- a/phpBB/db.php
+++ b/phpBB/db.php
@@ -37,6 +37,10 @@ switch($dbms)
break;
}
+
+// Setup what template to use. Currently just use default
+$template = new Template("./templates/Default", "keep");
+
// Make the database connection.
$db = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false);
if(!$db)
@@ -59,7 +63,7 @@ $userdata = Array();
$sql = "SELECT * FROM ".CONFIG_TABLE." WHERE selected = 1";
if(!$result = $db->sql_query($sql))
{
- error_die($db, QUERY_ERROR);
+ error_die($db, SQL_CONNECT);
}
else
{
@@ -110,7 +114,4 @@ if (!$user_logged_in)
}
}
-// Setup what template to use. Currently just use default
-$template = new Template("./templates/Default", "keep");
-
?>