From a5a8895f497e4c274870e4519c5526542c91dc27 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Wed, 6 Feb 2008 19:16:21 -0500 Subject: Put login into its own function. Utilise login form template. Also cleaned up a couple notices. Signed-off-by: Loui Chang Signed-off-by: Simo Leone --- web/template/header.php | 19 +--------------- web/template/login_form.php | 53 ++++++++++++++++++++------------------------- 2 files changed, 25 insertions(+), 47 deletions(-) (limited to 'web/template') diff --git a/web/template/header.php b/web/template/header.php index 488d290..ea8d43d 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -82,24 +82,7 @@ foreach ($SUPPORTED_LANGS as $lang => $lang_name) { ?> - -", username_from_sid($_COOKIE["AURSID"]), "")); -} else { - if ($login_error) { - print "" . $login_error . "
\n"; - } ?> -
- - '> - - - -
- -
+
diff --git a/web/template/login_form.php b/web/template/login_form.php index 89f11c1..7fd40fb 100644 --- a/web/template/login_form.php +++ b/web/template/login_form.php @@ -1,33 +1,28 @@ + ' . $login['error'] - . '
'; - } -?> - -
- - - -
- "> -
- -", username_from_sid($_COOKIE["AURSID"]), "")); -endif; +} +else { + if ($login_error) { + print "" . $login_error . "
\n"; + } ?> +
+ + '> + + + +
+ + + -# vim: ts=2 sw=2 noet ft=php -?> -- cgit v1.2.3-70-g09d2