diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-14 01:24:59 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-07-15 22:44:51 +0200 |
commit | 2425f963f8ad45292c217914b5fee1ed18104c26 (patch) | |
tree | 9dd5bcd1d4c95d9bbe8a5d96cd9f6610bd665787 /web/html/login.php | |
parent | a03c684ecd51327f9c6921a6e0001d82e3223799 (diff) | |
download | aurweb-2425f963f8ad45292c217914b5fee1ed18104c26.tar.xz |
Use virtual path feature for links
Use virtual paths in links (e.g. link to "/packages/" instead of
"/packages.php" etc.) if the virtual path feature is enabled.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html/login.php')
-rw-r--r-- | web/html/login.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/login.php b/web/html/login.php index 7f4f342..9c6a546 100644 --- a/web/html/login.php +++ b/web/html/login.php @@ -17,7 +17,7 @@ html_header('AUR ' . __("Login")); <?php if (isset($_COOKIE["AURSID"])): ?> <p> <?php echo __("Logged-in as: %s", '<strong>' . username_from_sid($_COOKIE["AURSID"]) . '</strong>'); ?> - <a href="logout.php">[<?php print __("Logout"); ?>]</a> + <a href="<?php get_uri('/logout/'); ?>">[<?php print __("Logout"); ?>]</a> </p> <?php elseif (!$DISABLE_HTTP_LOGIN || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'])): ?> <form method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES) ?>"> @@ -40,7 +40,7 @@ html_header('AUR ' . __("Login")); </p> <p> <input type="submit" class="button" value="<?php print __("Login"); ?>" /> - <a href="passreset.php">[<?php echo __('Forgot Password') ?>]</a> + <a href="<?php echo get_uri('/passreset/') ?>">[<?php echo __('Forgot Password') ?>]</a> </p> </fieldset> </form> |