현재 시간을 상수로 적용 G4_SERVER_TIME

This commit is contained in:
gnuboard
2013-02-20 10:31:57 +09:00
parent b5953eb3c9
commit 6bf06270c0
14 changed files with 23 additions and 36 deletions

View File

@ -114,7 +114,7 @@ function verify_email($address, &$error)
// 220 메세지들은 건너뜀
// 3초가 지나도 응답이 없으면 포기
socket_set_blocking($fp, false);
$stoptime = $g4['server_time'] + $WAIT_SECOND;
$stoptime = G4_SERVER_TIME + $WAIT_SECOND;
$gotresponse = false;
while (true) {
@ -123,11 +123,11 @@ function verify_email($address, &$error)
if (substr($line, 0, 3) == '220') {
// 타이머를 초기화
$stoptime = $g4['server_time'] + $WAIT_SECOND;
$stoptime = G4_SERVER_TIME + $WAIT_SECOND;
$gotresponse = true;
} else if ($line == '' && $gotresponse)
break;
else if ($g4['server_time'] > $stoptime)
else if (G4_SERVER_TIME > $stoptime)
break;
}