diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-05-23 13:58:18 -0400 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-06 11:26:38 +0200 |
commit | 0928525793482d159b73f6efb686ed3802f2dd9b (patch) | |
tree | 2da86b9d9c9724d23d6cd7287c2be9c79a53ae32 /web/lib/aur.inc.php | |
parent | 2d53cdd4d559b052358d4cbdd558798fd739d4f4 (diff) | |
download | aurweb-0928525793482d159b73f6efb686ed3802f2dd9b.tar.xz |
Move login form to a separate page
Do not show the login form on every page. Move it to a separate login
page and add a link to the navigation bar. Also, add a logout link for
logged-in users.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Signed-off-by: canyonknight <canyonknight@gmail.com>
Diffstat (limited to 'web/lib/aur.inc.php')
-rw-r--r-- | web/lib/aur.inc.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/web/lib/aur.inc.php b/web/lib/aur.inc.php index 985558f..991fb14 100644 --- a/web/lib/aur.inc.php +++ b/web/lib/aur.inc.php @@ -286,18 +286,8 @@ function db_query($query="", $db_handle="") { # common header # function html_header($title="") { - global $_SERVER; - global $_COOKIE; - global $_POST; global $LANG; global $SUPPORTED_LANGS; - global $DISABLE_HTTP_LOGIN; - global $AUR_LOCATION; - - if (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])) { - $login = try_login(); - $login_error = $login['error']; - } $title = htmlspecialchars($title, ENT_QUOTES); |