Compare commits
2
Commits
32ca97ed4d
...
793f0055e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
793f0055e6 | ||
|
|
0ddd8b1bae |
@@ -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._Validation.php');
|
||||||
require_once(ROOT.W.F_FUNC.W.'class._Time.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.DB.PHP);
|
||||||
//require_once(ROOT.W.F_CONFIG.W.'MAIL'.PHP);
|
require_once(ROOT.W.F_CONFIG.W.'MAIL'.PHP);
|
||||||
|
|
||||||
$response['result'] = 'FAIL';
|
$response['result'] = 'FAIL';
|
||||||
|
|
||||||
//$err = _Validation::CheckEmail($email);
|
$err = _Validation::CheckEmail($email);
|
||||||
//if($err == 1) {
|
if($err == 1) {
|
||||||
// $response['result'] = 'FAIL';
|
$response['result'] = 'FAIL';
|
||||||
// $response['msg'] = '이메일이 올바르지 않습니다!';
|
$response['msg'] = '이메일이 올바르지 않습니다!';
|
||||||
//} elseif($err == 0) {
|
} elseif($err == 0) {
|
||||||
$code = _String::Fill2(rand()%1000000, 6);
|
$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) {
|
if($res['result'] != 0) {
|
||||||
// $response['result'] = 'FAIL';
|
$response['result'] = 'FAIL';
|
||||||
// $response['msg'] = '이메일전송이 실패: '.$res['msg'];
|
$response['msg'] = '이메일전송이 실패: '.$res['msg'];
|
||||||
// } else {
|
} else {
|
||||||
$rs = $DB->Select('EMAIL', 'EMAIL', "EMAIL='{$email}'");
|
$rs = $DB->Select('EMAIL', 'EMAIL', "EMAIL='{$email}'");
|
||||||
$count = $DB->Count($rs);
|
$count = $DB->Count($rs);
|
||||||
if($count > 0) {
|
if($count > 0) {
|
||||||
$DB->Delete('EMAIL', "EMAIL='{$email}'");
|
$DB->Delete('EMAIL', "EMAIL='{$email}'");
|
||||||
}
|
}
|
||||||
$DB->InsertArray('EMAIL', array(
|
$DB->InsertArray('EMAIL', array(
|
||||||
'EMAIL' => $email,
|
EMAIL => $email,
|
||||||
'CODE' => $code,
|
CODE => $code,
|
||||||
'VERIFIED'=> 0,
|
VERIFIED=> 0,
|
||||||
'REG_DATE'=> _Time::DatetimeNow()
|
REG_DATE=> _Time::DatetimeNow()
|
||||||
));
|
));
|
||||||
|
|
||||||
$response['result'] = 'SUCCESS';
|
$response['result'] = 'SUCCESS';
|
||||||
$response['msg'] = $email.'로 인증번호가 전송되었습니다. 이메일을 확인하세요.';
|
$response['msg'] = $email.'로 인증번호가 전송되었습니다. 이메일을 확인하세요.';
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
//sleep(1);
|
//sleep(1);
|
||||||
echo json_encode($response);
|
echo json_encode($response);
|
||||||
|
|||||||
+22
-12
@@ -2064,18 +2064,28 @@ function myNationInfo($connect) {
|
|||||||
else { $nation['tech'] = "<font color=limegreen>{$nation['tech']}</font>"; }
|
else { $nation['tech'] = "<font color=limegreen>{$nation['tech']}</font>"; }
|
||||||
|
|
||||||
$nation['tech'] = "$techCall / {$nation['tech']}";
|
$nation['tech'] = "$techCall / {$nation['tech']}";
|
||||||
|
|
||||||
if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "<font color=red>{$nation['tricklimit']}턴</font>"; }
|
if($me['nation']==0){
|
||||||
else { $nation['tricklimit'] = "<font color=limegreen>가 능</font>"; }
|
$nation['tricklimit'] = "<font color=white>해당 없음</font>";
|
||||||
|
$nation['surlimit'] = "<font color=white>해당 없음</font>";
|
||||||
if($nation['surlimit'] != 0) { $nation['surlimit'] = "<font color=red>{$nation['surlimit']}턴</font>"; }
|
$nation['scout'] = "<font color=white>해당 없음</font>";
|
||||||
else { $nation['surlimit'] = "<font color=limegreen>가 능</font>"; }
|
$nation['war'] = "<font color=white>해당 없음</font>";
|
||||||
|
$nation['power'] = "<font color=white>해당 없음</font>";
|
||||||
if($nation['scout'] != 0) { $nation['scout'] = "<font color=red>금 지</font>"; }
|
} else {
|
||||||
else { $nation['scout'] = "<font color=limegreen>허 가</font>"; }
|
if($nation['tricklimit'] != 0) { $nation['tricklimit'] = "<font color=red>{$nation['tricklimit']}턴</font>"; }
|
||||||
|
else { $nation['tricklimit'] = "<font color=limegreen>가 능</font>"; }
|
||||||
if($nation['war'] != 0) { $nation['war'] = "<font color=red>금 지</font>"; }
|
|
||||||
else { $nation['war'] = "<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) {
|
if($me['skin'] == 0) {
|
||||||
$nation['tech'] = unfont($nation['tech']);
|
$nation['tech'] = unfont($nation['tech']);
|
||||||
|
|||||||
Reference in New Issue
Block a user