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>
This commit is contained in:
canyonknight 2012-08-09 21:15:46 -04:00 committed by Lukas Fleischer
parent 7ad4bc352d
commit 4cf075811c

View file

@ -460,21 +460,21 @@ html_header("Submit");
</p> </p>
</fieldset> </fieldset>
</form> </form>
</div>
<?php <?php
else: else:
print __("Sorry, uploads are not permitted by this server."); print __("Sorry, uploads are not permitted by this server.");
?> ?>
<br /> <br />
</div>
<?php <?php
endif; endif;
endif; endif;
else: else:
# Visitor is not logged in # Visitor is not logged in
html_header("Submit");
print __("You must create an account before you can upload packages."); print __("You must create an account before you can upload packages.");
exit();
?> ?>
<br /> <br />
@ -483,7 +483,7 @@ else:
endif; endif;
?> ?>
</div>
<?php <?php
html_footer(AUR_VERSION); html_footer(AUR_VERSION);