added a global config file for web app

made pkgsubmit reference the global config file
This commit is contained in:
pjmattal 2005-01-24 04:15:23 +00:00
parent 34be5e29be
commit 8d2dfcb248
2 changed files with 7 additions and 6 deletions

View file

@ -2,6 +2,7 @@
include("aur.inc"); # access AUR common functions include("aur.inc"); # access AUR common functions
include("submit_po.inc"); # use some form of this for i18n support include("submit_po.inc"); # use some form of this for i18n support
include("pkgfuncs.inc"); # package functions include("pkgfuncs.inc"); # package functions
include("config.inc"); # configuration file with dir locations
set_lang(); # this sets up the visitor's language set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in check_sid(); # see if they're still logged in
html_header(); # print out the HTML header html_header(); # print out the HTML header
@ -10,12 +11,6 @@ print "<center>\n";
# Debugging # Debugging
$DBUG = 0; $DBUG = 0;
# this is the directory that new packages will be uploaded to
#
$UPLOAD_DIR = "/aur/temp/";
$INCOMING_DIR = "/aur/incoming/";
$URL_DIR = "/packages/";
if ($_COOKIE["AURSID"]) { if ($_COOKIE["AURSID"]) {
# track upload errors # track upload errors
# #

6
web/lib/config.inc.proto Normal file
View file

@ -0,0 +1,6 @@
<?php
# Configuration of directories where things live
$UPLOAD_DIR = "/aur/temp/";
$INCOMING_DIR = "/aur/incoming/";
$URL_DIR = "/packages/";
?>