include_once("aur_po.inc");
# Define global variables
#
# 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
$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
die("Error selecting AUR database: " . mysql_error());
return $handle;
}
# common header
#
function html_header() {
print "\n";
print "