刪除
- 代碼: 選擇全部
//--------------email_password----------
$lang['wog_act_email_body1'] = '以下是你在 Online FF Battle - WOG 中的帳號密碼';
$lang['wog_act_email_body2'] = '\n\n帳號 : %s';
$lang['wog_act_email_body3'] = '密碼 : %s';
$lang['wog_act_email_send'] = '密碼已經寄到你註冊時的信箱';
$lang['wog_act_email_subject'] = 'Online FF Battle - WOG 密碼回覆';
$lang['wog_act_email_error'] = '無此email註冊過';
打開檔案wog_etc_traditional_chinese.php
在
- 代碼: 選擇全部
?>
之前加入
- 代碼: 選擇全部
//--------------email_password----------
$lang['wog_etc_email_body1'] = '以下是你在 Online FF Battle - WOG 中的帳號密碼';
$lang['wog_etc_email_body2'] = '帳號 : %s';
$lang['wog_etc_email_body3'] = '密碼 : %s';
$lang['wog_etc_email_send'] = '密碼已經寄到你註冊時的信箱';
$lang['wog_etc_email_subject'] = 'Online FF Battle - WOG 密碼回覆';
$lang['wog_etc_email_error'] = '無此email註冊過';
打開檔案wog_act_chara.php
把
- 代碼: 選擇全部
function get_password($email)
{
global $DB_site,$lang;
$p=$DB_site->query_first("SELECT p_email FROM wog_player WHERE p_email='".addslashes(htmlspecialchars($email))."'");
if($p){
$temp_s=$lang['wog_act_email_body1'];
$get_p=$DB_site->query("SELECT p_name,p_password from wog_player where p_email='".addslashes(htmlspecialchars($email))."'");
while($get_ps=$DB_site->fetch_array($get_p))
{
$temp_s.=sprintf($lang['wog_act_email_body2'],$get_ps[p_name]);
$temp_s.=sprintf($lang['wog_act_email_body3'],$get_ps[p_password]);
}
mail($p[p_email],$lang['wog_act_email_subject'],$temp_s,"From: \"Online FF Battle - WOG\" <iqstar@pchome.com.tw>\r\n"."Reply-To: iqstar@pchome.com.tw\r\n"."X-Mailer: PHP/" . phpversion());
alertWindowMsg($lang['wog_act_email_send']);
}
else
{
alertWindowMsg($lang['wog_act_email_error']);
}
}
替換成
- 代碼: 選擇全部
function get_password($email)
{
global $DB_site,$lang;
$p=$DB_site->query_first("SELECT p_email FROM wog_player WHERE p_email='".addslashes(htmlspecialchars($email))."'");
if($p){
$temp_s=$lang['wog_etc_email_body1']."\r\n";
$get_p=$DB_site->query("SELECT p_name,p_password from wog_player where p_email='".addslashes(htmlspecialchars($email))."'");
while($get_ps=$DB_site->fetch_array($get_p))
{
$temp_s.=sprintf($lang['wog_etc_email_body2'],$get_ps[p_name])."\r\n";
$temp_s.=sprintf($lang['wog_etc_email_body3'],$get_ps[p_password])."\r\n";
}
mail($p[p_email],$lang['wog_etc_email_subject'],$temp_s,"From: \"Online FF Battle - WOG\" <iqstar@pchome.com.tw>\r\n"."Reply-To: my_email@email.com\r\n"."X-Mailer: PHP/" . phpversion());
alertWindowMsg($lang['wog_etc_email_send']);
}
else
{
alertWindowMsg($lang['wog_etc_email_error']);
}
}