mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
added a global config file for web app
made pkgsubmit reference the global config file
This commit is contained in:
parent
34be5e29be
commit
8d2dfcb248
2 changed files with 7 additions and 6 deletions
|
@ -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
|
||||
#
|
||||
|
|
6
web/lib/config.inc.proto
Normal file
6
web/lib/config.inc.proto
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
# Configuration of directories where things live
|
||||
$UPLOAD_DIR = "/aur/temp/";
|
||||
$INCOMING_DIR = "/aur/incoming/";
|
||||
$URL_DIR = "/packages/";
|
||||
?>
|
Loading…
Add table
Reference in a new issue