mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
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>
This commit is contained in:
parent
2d53cdd4d5
commit
0928525793
4 changed files with 58 additions and 50 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue