summaryrefslogtreecommitdiffstats
path: root/web/html/passreset.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-22 20:57:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-22 20:57:07 +0200
commit58907e0bffb5a7d2d0bfc05cec28f366432bb3e8 (patch)
treed0567e509e8769d2b1363af45c1b48cf18563715 /web/html/passreset.php
parentadbb59308024bfb6386eaa4a9d1a2eb6591b8456 (diff)
downloadaur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.gz
aur-58907e0bffb5a7d2d0bfc05cec28f366432bb3e8.tar.xz
use php's gettext modulegettext
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'web/html/passreset.php')
-rw-r--r--web/html/passreset.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/web/html/passreset.php b/web/html/passreset.php
index ed5d4d31..90878319 100644
--- a/web/html/passreset.php
+++ b/web/html/passreset.php
@@ -22,11 +22,11 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
$uid = uid_from_email($email);
if (empty($email) || empty($password)) {
- $error = __('Missing a required field.');
+ $error = _('Missing a required field.');
} elseif ($password != $confirm) {
- $error = __('Password fields do not match.');
+ $error = _('Password fields do not match.');
} elseif ($uid == NULL || $uid == 'None') {
- $error = __('Invalid e-mail.');
+ $error = _('Invalid e-mail.');
}
if (empty($error)) {
@@ -44,7 +44,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
AND Email = '".mysql_real_escape_string($email)."'";
$result = db_query($q, $dbh);
if (!mysql_affected_rows($dbh)) {
- $error = __('Invalid e-mail and reset key combination.');
+ $error = _('Invalid e-mail and reset key combination.');
} else {
header('Location: passreset.php?step=complete');
exit();
@@ -62,7 +62,7 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
WHERE ID = " . $uid;
db_query($q, $dbh);
# Send email with confirmation link
- $body = __('A password reset request was submitted for the account '.
+ $body = _('A password reset request was submitted for the account '.
'associated with your e-mail address. If you wish to reset '.
'your password follow the link below, otherwise ignore '.
'this message and nothing will happen.').
@@ -80,13 +80,13 @@ if (isset($_GET['resetkey'], $_POST['email'], $_POST['password'], $_POST['confir
$step = isset($_GET['step']) ? $_GET['step'] : NULL;
-html_header(__("Password Reset"));
+html_header(_("Password Reset"));
?>
<div class="pgbox">
<div class="pgboxtitle">
- <span class="f3"><?php print __("Password Reset"); ?></span>
+ <span class="f3"><?php print _("Password Reset"); ?></span>
</div>
<div class="pgboxbody">
<?php
@@ -96,39 +96,39 @@ html_header(__("Password Reset"));
?>
<?php
if ($step == 'confirm') {
- echo __('Check your e-mail for the confirmation link.');
+ echo _('Check your e-mail for the confirmation link.');
} elseif ($step == 'complete') {
- echo __('Your password has been reset successfully.');
+ echo _('Your password has been reset successfully.');
} elseif (isset($_GET['resetkey'])) {
?>
<form action="" method="post">
<table>
<tr>
- <td><?php echo __("Confirm your e-mail address:"); ?></td>
+ <td><?php echo _("Confirm your e-mail address:"); ?></td>
<td><input type="text" name="email" size="30" maxlength="64" /></td>
</tr>
<tr>
- <td><?php echo __("Enter your new password:"); ?></td>
+ <td><?php echo _("Enter your new password:"); ?></td>
<td><input type="password" name="password" size="30" maxlength="32" /></td>
</tr>
<tr>
- <td><?php echo __("Confirm your new password:"); ?></td>
+ <td><?php echo _("Confirm your new password:"); ?></td>
<td><input type="password" name="confirm" size="30" maxlength="32" /></td>
</tr>
</table>
<br />
- <input type="submit" class="button" value="<?php echo __('Continue') ?>" />
+ <input type="submit" class="button" value="<?php echo _('Continue') ?>" />
</form>
<?php
} else {
?>
- <p><?php echo __('If you have forgotten the e-mail address you used to register, please send a message to the %haur-general%h mailing list.',
+ <p><?php echo _('If you have forgotten the e-mail address you used to register, please send a message to the %haur-general%h mailing list.',
'<a href="http://mailman.archlinux.org/mailman/listinfo/aur-general">',
'</a>'); ?></p>
<form action="" method="post">
- <p><?php echo __("Enter your e-mail address:"); ?>
+ <p><?php echo _("Enter your e-mail address:"); ?>
<input type="text" name="email" size="30" maxlength="64" /></p>
- <input type="submit" class="button" value="<?php echo __('Continue') ?>" />
+ <input type="submit" class="button" value="<?php echo _('Continue') ?>" />
</form>
<?php } ?>
</div>