summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-04 09:25:42 +0100
committerLoui Chang <louipc.ist@gmail.com>2008-12-17 18:58:17 +0100
commit77d93c4946fabcda417b6a5672d881c64e11fb78 (patch)
tree24c2c582de3fdda4067a6ef040be73f161255d11 /web
parent96c332cc157b066e9271f97402b58000cffff326 (diff)
downloadaur-77d93c4946fabcda417b6a5672d881c64e11fb78.tar.gz
aur-77d93c4946fabcda417b6a5672d881c64e11fb78.tar.xz
Move call to try_login to login_form.
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/lib/aur.inc3
-rw-r--r--web/template/login_form.php6
2 files changed, 6 insertions, 3 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index e43ddf62..3d0f3e0d 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -343,9 +343,6 @@ function html_header($title="") {
global $LANG;
global $SUPPORTED_LANGS;
- $login = try_login();
- $login_error = $login['error'];
-
$title = htmlspecialchars($title, ENT_QUOTES);
include('header.php');
diff --git a/web/template/login_form.php b/web/template/login_form.php
index 70c24c71..e1192c06 100644
--- a/web/template/login_form.php
+++ b/web/template/login_form.php
@@ -1,3 +1,9 @@
+<?php
+include_once('acctfuncs.inc');
+$login = try_login();
+$login_error = $login['error'];
+?>
+
<span id="login_bar">
<?php
if (isset($_COOKIE["AURSID"])) {