summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-08-10 03:15:46 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-08-23 22:47:49 +0200
commit4cf075811c3cc12ab3192d13fb0a58614c975c03 (patch)
treee444544d401a977aa0321b02089df70291b7807c
parent7ad4bc352d678ec011af50d7be8e159d26a8a749 (diff)
downloadaur-4cf075811c3cc12ab3192d13fb0a58614c975c03.tar.gz
aur-4cf075811c3cc12ab3192d13fb0a58614c975c03.tar.xz
pkgsubmit.php: Make page friendlier for logged out users
Logged out users who navigate to /submit currently reach a page with only an error message. This adds the full navigation bar for users who errantly reach /submit before logging in. Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/html/pkgsubmit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index 84688b4e..e87279ea 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -460,21 +460,21 @@ html_header("Submit");
</p>
</fieldset>
</form>
-
+</div>
<?php
else:
print __("Sorry, uploads are not permitted by this server.");
?>
<br />
-
+</div>
<?php
endif;
endif;
else:
# Visitor is not logged in
+ html_header("Submit");
print __("You must create an account before you can upload packages.");
- exit();
?>
<br />
@@ -483,7 +483,7 @@ else:
endif;
?>
-</div>
+
<?php
html_footer(AUR_VERSION);