m3cron을 사용하면 자동등록방지 kcaptcha 가 엑박이 되어요.
본문
m3cron을 사용하면 자동등록방지 kcaptcha 가 엑박이 되어요.
extend 의 m3cron.extend.php 파일에서 while문 때문인 것 같은데, 해결방법이 없을까요?
도움 부탁 드립니다.ㅜ
while($prog = sql_fetch_array($query)) {
// 활성화 된 경우만 실행
if(!$prog['status']) continue;
// 로봇으로 실행시키는 경우
if($prog['robot'] && !$is_robot) continue;
// 일단은 마지막 실행 시각 기록
sql_query("update `{$m3cron['config_table']}` set lastrun='".G5_TIME_YMDHIS."' where name='{$prog['name']}' limit 1");
// 실행 시작 시간 구함
$starttime = get_microtime();
// 실행!!!
include_once($m3cron['path'].'/'.$prog['name']);
// 실행 시간 구함
$runtime = get_microtime() - $starttime;
// 마지막 실행 시간 기록
sql_query("update `{$m3cron['config_table']}` set lastruntime='{$runtime}' where name='{$prog['name']}' limit 1");
// 로그 남김
sql_query("insert into `{$m3cron['log_table']}` set name='{$prog['name']}', datetime='".G5_TIME_YMDHIS."', runtime='{$runtime}', ip='".$_SERVER['REMOTE_ADDR']."', robot='{$is_robot}', mb_id='{$member['mb_id']}'");
}