summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2007-09-27 00:04:47 -0400
committerLoui Chang <louipc.ist@gmail.com>2007-09-27 00:04:47 -0400
commite8ae65abf62e2d85d4baf406fb651e2aa5814d3b (patch)
treebfc3935245b2964fd5a30a7899fc33fa24f1f002
parentc764f078f10061c016228fb079dc7302af52f60c (diff)
downloadaurweb-e8ae65abf62e2d85d4baf406fb651e2aa5814d3b.tar.xz
I forgot to change AUR_db* usage to constants. Fixed now.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
-rw-r--r--web/lib/aur.inc8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 7342e85..5b43baf 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -248,17 +248,13 @@ function uid_from_sid($sid="") {
# connect to the database
#
function db_connect() {
- global $AUR_db_host;
- global $AUR_db_name;
- global $AUR_db_user;
- global $AUR_db_pass;
- $handle = mysql_pconnect($AUR_db_host, $AUR_db_user, $AUR_db_pass);
+ $handle = mysql_pconnect(AUR_db_host, AUR_db_user, AUR_db_pass);
if (!$handle) {
die("Error connecting to AUR database: " . mysql_error());
}
- mysql_select_db($AUR_db_name, $handle) or
+ mysql_select_db(AUR_db_name, $handle) or
die("Error selecting AUR database: " . mysql_error());
return $handle;