Compare commits

...
2 Commits
2 changed files with 39 additions and 29 deletions
+17 -17
View File
@@ -9,39 +9,39 @@ require_once(ROOT.W.F_FUNC.W.'class._String.php');
require_once(ROOT.W.F_FUNC.W.'class._Validation.php');
require_once(ROOT.W.F_FUNC.W.'class._Time.php');
require_once(ROOT.W.F_CONFIG.W.DB.PHP);
//require_once(ROOT.W.F_CONFIG.W.'MAIL'.PHP);
require_once(ROOT.W.F_CONFIG.W.'MAIL'.PHP);
$response['result'] = 'FAIL';
//$err = _Validation::CheckEmail($email);
//if($err == 1) {
// $response['result'] = 'FAIL';
// $response['msg'] = '이메일이 올바르지 않습니다!';
//} elseif($err == 0) {
$err = _Validation::CheckEmail($email);
if($err == 1) {
$response['result'] = 'FAIL';
$response['msg'] = '이메일이 올바르지 않습니다!';
} elseif($err == 0) {
$code = _String::Fill2(rand()%1000000, 6);
// $res = $MAIL->Send($email, 'Auth code from 62che.com', "인증번호: {$code}");
$res = $MAIL->Send($email, 'Auth code from 62che.com', "인증번호: {$code}");
// if($res['result'] != 0) {
// $response['result'] = 'FAIL';
// $response['msg'] = '이메일전송이 실패: '.$res['msg'];
// } else {
if($res['result'] != 0) {
$response['result'] = 'FAIL';
$response['msg'] = '이메일전송이 실패: '.$res['msg'];
} else {
$rs = $DB->Select('EMAIL', 'EMAIL', "EMAIL='{$email}'");
$count = $DB->Count($rs);
if($count > 0) {
$DB->Delete('EMAIL', "EMAIL='{$email}'");
}
$DB->InsertArray('EMAIL', array(
'EMAIL' => $email,
'CODE' => $code,
'VERIFIED'=> 0,
'REG_DATE'=> _Time::DatetimeNow()
EMAIL => $email,
CODE => $code,
VERIFIED=> 0,
REG_DATE=> _Time::DatetimeNow()
));
$response['result'] = 'SUCCESS';
$response['msg'] = $email.'로 인증번호가 전송되었습니다. 이메일을 확인하세요.';
// }
//}
}
}
//sleep(1);
echo json_encode($response);
+22 -12
View File
@@ -2064,18 +2064,28 @@ function myNationInfo($connect) {
else { $nation['tech'] = "<font color=limegreen>{$nation['tech']}</font>"; }
$nation['tech'] = "$techCall / {$nation['tech']}";
if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "<font color=red>{$nation['tricklimit']}턴</font>"; }
else { $nation['tricklimit'] = "<font color=limegreen>가 능</font>"; }
if($nation['surlimit'] != 0) { $nation['surlimit'] = "<font color=red>{$nation['surlimit']}</font>"; }
else { $nation['surlimit'] = "<font color=limegreen>가 능</font>"; }
if($nation['scout'] != 0) { $nation['scout'] = "<font color=red>금 지</font>"; }
else { $nation['scout'] = "<font color=limegreen>허 가</font>"; }
if($nation['war'] != 0) { $nation['war'] = "<font color=red>금 지</font>"; }
else { $nation['war'] = "<font color=limegreen>허 가</font>"; }
if($me['nation']==0){
$nation['tricklimit'] = "<font color=white>해당 없음</font>";
$nation['surlimit'] = "<font color=white>해당 없음</font>";
$nation['scout'] = "<font color=white>해당 없음</font>";
$nation['war'] = "<font color=white>해당 없음</font>";
$nation['power'] = "<font color=white>해당 없음</font>";
} else {
if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "<font color=red>{$nation['tricklimit']}</font>"; }
else { $nation['tricklimit'] = "<font color=limegreen>가 능</font>"; }
if($nation['surlimit'] != 0) { $nation['surlimit'] = "<font color=red>{$nation['surlimit']}</font>"; }
else { $nation['surlimit'] = "<font color=limegreen>가 능</font>"; }
if($nation['scout'] != 0) { $nation['scout'] = "<font color=red>금 지</font>"; }
else { $nation['scout'] = "<font color=limegreen>허 가</font>"; }
if($nation['war'] != 0) { $nation['war'] = "<font color=red>금 지</font>"; }
else { $nation['war'] = "<font color=limegreen>허 가</font>"; }
}
if($me['skin'] == 0) {
$nation['tech'] = unfont($nation['tech']);