* The rest Copyright 2002-2004 (c) GForge Team
* http://gforge.org/
*
- * @version $Id$
- *
* This file is part of GForge.
*
* GForge is free software; you can redistribute it and/or modify
require_once('../env.inc.php');
-require_once('pre.php');
+require_once $gfwww.'include/pre.php';
if (getStringFromRequest('submit')) {
if (!form_key_is_valid(getStringFromRequest('form_key'))) {
exit_error('Error',$u->getErrorMessage());
} else {
- $message = stripcslashes(sprintf(_('Someone (presumably you) on the %3$s site requested a
+ $message = stripcslashes(sprintf(_('Someone (presumably you) on the %1$s site requested a
password change through email verification. If this was not you,
ignore this message and nothing will happen.
If you requested this verification, visit the following URL
to change your password:
-<http://%1$s/account/lostlogin.php?ch=_%2$s>
+<%2$s>
- -- the %3$s staff
-'), getStringFromServer('HTTP_HOST'), $confirm_hash, $GLOBALS['sys_name']));
+ -- the %1$s staff
+'), $GLOBALS['sys_name'], util_make_url ("/account/lostlogin.php?ch=_".$confirm_hash)));
util_send_message($u->getEmail(),sprintf(_('%1$s Verification'), $GLOBALS['sys_name']),$message);
$HTML->header(array('title'=>"Lost Password Confirmation"));
- echo _('<p>An email has been sent to the address you have on file. Follow the instructions in the email to change your account password.</p><p><a href="/">[ Home ]</a></p>');
+ echo '<p>'.printf(_('An email has been sent to the address you have on file. Follow the instructions in the email to change your account password.').'</p><p><a href="%1$s">Home</a>', util_make_url ('/')).'</p>';
$HTML->footer(array());
exit();
</p>
</form>
-<p><a href="<?php echo $GLOBALS['sys_urlprefix']; ?>/"><?php printf(_('Return'), $GLOBALS['sys_name']); ?></a></p>
+ <p><?php echo util_make_link ("/", _('Return')); ?></p>
<?php