mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
changed db name from AUR to aur
moved db config for webapp into the config file
This commit is contained in:
parent
20c02507ab
commit
2f27045c0f
2 changed files with 8 additions and 9 deletions
|
@ -1,9 +1,9 @@
|
||||||
-- The MySQL database layout for the AUR. Certain data
|
-- The MySQL database layout for the AUR. Certain data
|
||||||
-- is also included such as AccountTypes, PackageLocations, etc.
|
-- is also included such as AccountTypes, PackageLocations, etc.
|
||||||
--
|
--
|
||||||
DROP DATABASE AUR;
|
DROP DATABASE aur;
|
||||||
CREATE DATABASE AUR;
|
CREATE DATABASE aur;
|
||||||
use AUR;
|
use aur;
|
||||||
|
|
||||||
-- Define the Account Types for the AUR.
|
-- Define the Account Types for the AUR.
|
||||||
--
|
--
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?
|
<?
|
||||||
|
include_once("config.inc");
|
||||||
include_once("aur_po.inc");
|
include_once("aur_po.inc");
|
||||||
|
|
||||||
# TODO do we need to set the domain on cookies? I seem to remember some
|
# 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
|
# connect to the database
|
||||||
#
|
#
|
||||||
function db_connect() {
|
function db_connect() {
|
||||||
# NOTE: modify these variables if your MySQL setup is different
|
global $AUR_db_host;
|
||||||
#
|
global $AUR_db_name;
|
||||||
$AUR_db_host = "localhost:/tmp/mysql.sock";
|
global $AUR_db_user;
|
||||||
$AUR_db_name = "AUR";
|
global $AUR_db_pass;
|
||||||
$AUR_db_user = "aur"; # XXX use something better when deploying
|
|
||||||
$AUR_db_pass = "aur"; # XXX use something better when deploying
|
|
||||||
|
|
||||||
$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) {
|
if (!$handle) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue