$oj-name changed to $oj_name

This commit is contained in:
whitelilis 2017-04-07 09:14:39 +08:00 committed by Too-Naive
parent 7f2f52c726
commit eb0500bbfa
2 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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() ?>