summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorpjmattal <pjmattal>2005-01-24 05:15:23 +0100
committerpjmattal <pjmattal>2005-01-24 05:15:23 +0100
commit8d2dfcb24874cd9a8797d0648e1da74e063a03c1 (patch)
treecec1738ae035baa9795a90606dad9b8eb1fc10f1 /web
parent34be5e29bef7a8b8fa69ab41ef9dad6a7059be81 (diff)
downloadaur-8d2dfcb24874cd9a8797d0648e1da74e063a03c1.tar.gz
aur-8d2dfcb24874cd9a8797d0648e1da74e063a03c1.tar.xz
added a global config file for web app
made pkgsubmit reference the global config file
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php7
-rw-r--r--web/lib/config.inc.proto6
2 files changed, 7 insertions, 6 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index ce7df104..80396cf3 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -2,6 +2,7 @@
include("aur.inc"); # access AUR common functions
include("submit_po.inc"); # use some form of this for i18n support
include("pkgfuncs.inc"); # package functions
+include("config.inc"); # configuration file with dir locations
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
@@ -10,12 +11,6 @@ print "<center>\n";
# Debugging
$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"]) {
# track upload errors
#
diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto
new file mode 100644
index 00000000..673a8962
--- /dev/null
+++ b/web/lib/config.inc.proto
@@ -0,0 +1,6 @@
+<?php
+# Configuration of directories where things live
+$UPLOAD_DIR = "/aur/temp/";
+$INCOMING_DIR = "/aur/incoming/";
+$URL_DIR = "/packages/";
+?>