diff options
author | pjmattal <pjmattal> | 2005-04-09 20:54:55 +0000 |
---|---|---|
committer | pjmattal <pjmattal> | 2005-04-09 20:54:55 +0000 |
commit | 2f27045c0ffe988dcb2b94b2766d6a2e5f22abde (patch) | |
tree | b0f248b5b7bc8d818d1e649181790851e986ba04 | |
parent | 20c02507ab2e9ea1f36910611b50b00f32a8365d (diff) | |
download | aurweb-2f27045c0ffe988dcb2b94b2766d6a2e5f22abde.tar.xz |
changed db name from AUR to aur
moved db config for webapp into the config file
-rw-r--r-- | support/schema/aur-schema.sql | 6 | ||||
-rw-r--r-- | web/lib/aur.inc | 11 |
2 files changed, 8 insertions, 9 deletions
diff --git a/support/schema/aur-schema.sql b/support/schema/aur-schema.sql index 982014c..d269d4b 100644 --- a/support/schema/aur-schema.sql +++ b/support/schema/aur-schema.sql @@ -1,9 +1,9 @@ -- The MySQL database layout for the AUR. Certain data -- is also included such as AccountTypes, PackageLocations, etc. -- -DROP DATABASE AUR; -CREATE DATABASE AUR; -use AUR; +DROP DATABASE aur; +CREATE DATABASE aur; +use aur; -- Define the Account Types for the AUR. -- diff --git a/web/lib/aur.inc b/web/lib/aur.inc index 0563da8..dae2fe4 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -1,4 +1,5 @@ <? +include_once("config.inc"); include_once("aur_po.inc"); # TODO do we need to set the domain on cookies? I seem to remember some @@ -257,12 +258,10 @@ function uid_from_sid($sid="") { # connect to the database # function db_connect() { - # NOTE: modify these variables if your MySQL setup is different - # - $AUR_db_host = "localhost:/tmp/mysql.sock"; - $AUR_db_name = "AUR"; - $AUR_db_user = "aur"; # XXX use something better when deploying - $AUR_db_pass = "aur"; # XXX use something better when deploying + 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); if (!$handle) { |