summaryrefslogtreecommitdiff
path: root/web/html/pkgreq.php
diff options
context:
space:
mode:
Diffstat (limited to 'web/html/pkgreq.php')
-rw-r--r--web/html/pkgreq.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/web/html/pkgreq.php b/web/html/pkgreq.php
index 4b7d6cf..9dec1f6 100644
--- a/web/html/pkgreq.php
+++ b/web/html/pkgreq.php
@@ -8,7 +8,14 @@ include_once("pkgfuncs.inc.php");
set_lang();
check_sid();
-if (!isset($base_id)) {
+if (isset($base_id)) {
+ html_header(__("File Request"));
+ include('pkgreq_form.php');
+} elseif (isset($pkgreq_id)) {
+ html_header(__("Close Request"));
+ $pkgbase_name = pkgreq_get_pkgbase_name($pkgreq_id);
+ include('pkgreq_close_form.php');
+} else {
if (!check_user_privileges()) {
header('Location: /');
exit();
@@ -63,9 +70,6 @@ if (!isset($base_id)) {
html_header(__("Requests"));
include('pkgreq_results.php');
-} else {
- html_header(__("File Request"));
- include('pkgreq_form.php');
}
html_footer(AUR_VERSION);