diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-21 02:50:06 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-10-21 02:50:06 +0200 |
commit | 7e201e5a3a7e85aea89f076b89626604b6b2b7bb (patch) | |
tree | e54019bdaafeb239504b5fe172dd17b4f342f818 /web/template | |
parent | d25a57c9735fa8e01f399cac5330e897bf470ef9 (diff) | |
download | aurweb-7e201e5a3a7e85aea89f076b89626604b6b2b7bb.tar.xz |
Link to the HTTPs login page in the header
Change the login link so that it points directly to the HTTPs version of
the login page if "$DISABLE_HTTP_LOGIN" is set and if HTTP is used.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/header.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/header.php b/web/template/header.php index c78f1e3..265d638 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -63,7 +63,11 @@ <li><a href="<?= get_uri('/logout/'); ?>"><?= __("Logout"); ?></a></li> <?php else: ?> <li><a href="<?= get_uri('/register/'); ?>"><?= __("Register"); ?></a></li> + <?php if ($DISABLE_HTTP_LOGIN && empty($_SERVER['HTTPS'])): ?> + <li><a href="<?= $AUR_LOCATION . get_uri('/login/'); ?>"><?= __("Login"); ?></a></li> + <?php else: ?> <li><a href="<?= get_uri('/login/'); ?>"><?= __("Login"); ?></a></li> + <?php endif; ?> <?php endif; ?> </ul> </div><!-- #archdev-navbar --> |