Commit 2f27045c authored by pjmattal's avatar pjmattal
Browse files

changed db name from AUR to aur

moved db config for webapp into the config file
parent 20c02507
-- 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.
--
......
<?
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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment