mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Removes timeout page and moves login form to header
This removes the need for a timeout page (and probably hacker.php) and moves the login form and status to the header. If your login times out you won't lose your place anymore and links will always work. Works for me but at the moment index_po.php is imported in aur.inc which has to stay until the translations from it for login are moved to aur_po.php. Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
parent
9a83e56b69
commit
0e4b25211b
3 changed files with 95 additions and 102 deletions
|
@ -65,8 +65,30 @@ foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
|
|||
<li>Lang: </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="maincontent">
|
||||
<!-- Start of main content -->
|
||||
<br />
|
||||
<div style="text-align: right; padding-right: 10px">
|
||||
<?php
|
||||
if (!isset($_COOKIE["AURSID"])) {
|
||||
if ($login_error) {
|
||||
print "<span class='error'>" . $login_error . "</span><br />\n";
|
||||
}
|
||||
?>
|
||||
<form method='post'>
|
||||
<?php print __("Username:"); ?>
|
||||
<input type='text' name='user' size='30' maxlength='64'>
|
||||
<?php print __("Password:"); ?>
|
||||
<input type='password' name='pass' size='30' maxlength='32'>
|
||||
<input type='submit' class='button' value='<?php print __("Login"); ?>'>
|
||||
</form>
|
||||
<?php
|
||||
} else {
|
||||
print __("Logged-in as: %h%s%h",
|
||||
array("<b>", username_from_sid($_COOKIE["AURSID"]), "</b>"));
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="maincontent">
|
||||
<!-- Start of main content -->
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue