테스트 사이트 - 개발 중인 베타 버전입니다

m3cron을 사용하면 자동등록방지 kcaptcha 가 엑박이 되어요. 채택완료

공대그녀 6년 전 조회 2,865

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']}'");
}

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
6년 전

extend로 하지 말고 개별로 로드하면 됩니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인