summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-10-05 06:40:18 +0800
committerLoui Chang <louipc.ist@gmail.com>2008-10-05 20:42:52 -0400
commit4b616e20ba11314616ae42fdcd3f7bf6fbb8c4bd (patch)
tree71dbeb3e2973e56827057a82972743e2e1500ce3 /web
parent34c8a9cf80fa857f8024eacd65292cd015673165 (diff)
downloadaurweb-4b616e20ba11314616ae42fdcd3f7bf6fbb8c4bd.tar.xz
Move logout link from main menu to login bar
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com> Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/template/header.php1
-rw-r--r--web/template/login_form.php3
2 files changed, 3 insertions, 1 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 88fd6f6..f60acb4 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -46,7 +46,6 @@
<?php
if (isset($_COOKIE["AURSID"])) {
?>
- <li><a href="/logout.php"><?php print __("Logout"); ?></a></li>
<li><a href="/pkgsubmit.php"><?php print __("Submit"); ?></a></li>
<li><a href="/packages.php?SeB=m&K=<?php print username_from_sid($_COOKIE["AURSID"]); ?>"><?php print __("My Packages"); ?></a></li>
<?php
diff --git a/web/template/login_form.php b/web/template/login_form.php
index 4bfc579..727afd0 100644
--- a/web/template/login_form.php
+++ b/web/template/login_form.php
@@ -2,6 +2,9 @@
<?php
if (isset($_COOKIE["AURSID"])) {
print __("Logged-in as: %h%s%h", array("<b>", username_from_sid($_COOKIE["AURSID"]), "</b>"));
+?>
+<br /><a href="/logout.php"><?php print __("Logout"); ?></a>
+<?php
}
else {
if ($login_error) {