mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 13:28:41 +00:00
$oj-name changed to $oj_name
This commit is contained in:
parent
7f2f52c726
commit
eb0500bbfa
@ -19,17 +19,17 @@
|
|||||||
$user = $vdata['user'];
|
$user = $vdata['user'];
|
||||||
$password = $user["password"];
|
$password = $user["password"];
|
||||||
|
|
||||||
$oj-name = UOJConfig::$data['profile']['oj-name'];
|
$oj_name = UOJConfig::$data['profile']['oj-name'];
|
||||||
$oj-name-short = UOJConfig::$data['profile']['oj-name-short'];
|
$oj_name-short = UOJConfig::$data['profile']['oj-name-short'];
|
||||||
$sufs = base64url_encode($user['username'] . "." . md5($user['username'] . "+" . $password));
|
$sufs = base64url_encode($user['username'] . "." . md5($user['username'] . "+" . $password));
|
||||||
$url = HTML::url("/reset-password", array('params' => array('p' => $sufs)));
|
$url = HTML::url("/reset-password", array('params' => array('p' => $sufs)));
|
||||||
$html = <<<EOD
|
$html = <<<EOD
|
||||||
<base target="_blank" />
|
<base target="_blank" />
|
||||||
|
|
||||||
<p>{$user['username']}您好,</p>
|
<p>{$user['username']}您好,</p>
|
||||||
<p>您刚刚启用了{$oj-name-short}密码找回功能,请进入下面的链接重设您的密码:</p>
|
<p>您刚刚启用了{$oj_name-short}密码找回功能,请进入下面的链接重设您的密码:</p>
|
||||||
<p><a href="$url">$url</a></p>
|
<p><a href="$url">$url</a></p>
|
||||||
<p>{$oj-name}</p>
|
<p>{$oj_name}</p>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}
|
body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}
|
||||||
@ -39,7 +39,7 @@ EOD;
|
|||||||
|
|
||||||
$mailer = UOJMail::noreply();
|
$mailer = UOJMail::noreply();
|
||||||
$mailer->addAddress($user['email'], $user['username']);
|
$mailer->addAddress($user['email'], $user['username']);
|
||||||
$mailer->Subject = $oj-name-short."密码找回";
|
$mailer->Subject = $oj_name-short."密码找回";
|
||||||
$mailer->msgHTML($html);
|
$mailer->msgHTML($html);
|
||||||
if (!$mailer->send()) {
|
if (!$mailer->send()) {
|
||||||
error_log($mailer->ErrorInfo);
|
error_log($mailer->ErrorInfo);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
become403Page();
|
become403Page();
|
||||||
}
|
}
|
||||||
|
|
||||||
$oj-name = UOJConfig::$data['profile']['oj-name'];
|
$oj_name = UOJConfig::$data['profile']['oj-name'];
|
||||||
$problem_extra_config = getProblemExtraConfig($problem);
|
$problem_extra_config = getProblemExtraConfig($problem);
|
||||||
|
|
||||||
if (isset($_POST['getsvn'])) {
|
if (isset($_POST['getsvn'])) {
|
||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
<p>{$myUser['username']}您好,</p>
|
<p>{$myUser['username']}您好,</p>
|
||||||
<p>您的svn密码是:{$myUser['svn_password']}</p>
|
<p>您的svn密码是:{$myUser['svn_password']}</p>
|
||||||
<p>{$oj-name}</p>
|
<p>{$oj_name}</p>
|
||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}
|
body{font-size:14px;font-family:arial,verdana,sans-serif;line-height:1.666;padding:0;margin:0;overflow:auto;white-space:normal;word-wrap:break-word;min-height:100px}
|
||||||
@ -873,4 +873,4 @@ EOD
|
|||||||
<?php //dhxh end ?>
|
<?php //dhxh end ?>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<?php echoUOJPageFooter() ?>
|
<?php echoUOJPageFooter() ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user