mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
a03c684ecd
commit
2425f963f8
24 changed files with 61 additions and 61 deletions
|
@ -8,7 +8,7 @@ set_lang(); # this sets up the visitor's language
|
|||
check_sid(); # see if they're still logged in
|
||||
|
||||
if (isset($_COOKIE["AURSID"])) {
|
||||
header('Location: index.php');
|
||||
header('Location: /');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -48,14 +48,14 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
|
|||
'your password follow the link below, otherwise ignore '.
|
||||
'this message and nothing will happen.').
|
||||
"\n\n".
|
||||
"{$AUR_LOCATION}/passreset.php?".
|
||||
"{$AUR_LOCATION}/" . get_uri('/passreset/') . "?".
|
||||
"resetkey={$resetkey}";
|
||||
$body = wordwrap($body, 70);
|
||||
$headers = "Reply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR";
|
||||
@mail($email, 'AUR Password Reset', $body, $headers);
|
||||
|
||||
}
|
||||
header('Location: passreset.php?step=confirm');
|
||||
header('Location: ' . get_uri('/passreset/') . '?step=confirm');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue