From 0928525793482d159b73f6efb686ed3802f2dd9b Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 23 May 2012 13:58:18 -0400 Subject: 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 Signed-off-by: canyonknight --- web/lib/aur.inc.php | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'web/lib') 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); -- cgit v1.2.3-70-g09d2