mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Add a new AUR_LOCATION setting
This should be set to something like 'http://localhost' for development or 'https://aur.archlinux.org' in production. It ensures all links in the site stay in the development site and there is no sudden jump from development to production environments. Signed-off-by: Dan McGee <dan@archlinux.org> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
fe90b4bc3e
commit
e571a694d6
7 changed files with 14 additions and 6 deletions
|
@ -67,7 +67,7 @@ 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".
|
||||
'https://aur.archlinux.org/passreset.php?'.
|
||||
"{$AUR_LOCATION}/passreset.php?".
|
||||
"resetkey={$resetkey}";
|
||||
$body = wordwrap($body, 70);
|
||||
$headers = "To: {$email}\nReply-to: nobody@archlinux.org\nFrom:aur-notify@archlinux.org\nX-Mailer: PHP\nX-MimeOLE: Produced By AUR";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue