summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ce7df10..80396cf 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 0000000..673a896
--- /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/";
+?>