git-svn-id: http://xe-core.googlecode.com/svn/trunk@1211 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-18 04:43:57 +00:00
parent 970339b7d8
commit 76f599c69b
30 changed files with 456 additions and 32 deletions

View file

@ -17,7 +17,17 @@
* @brief 로그 검사
**/
function isLogged() {
$output = executeQuery('counter.getCounterLog');
$args->regdate = date("Ymd");
$output = executeQuery('counter.getCounterLog', $args);
return $output->data->count?true:false;
}
/**
* @brief 오늘자 카운터 현황 row 있는지 체크
**/
function isInsertedTodayStatus() {
$args->regdate = date("Ymd000000");
$output = executeQuery('counter.getTodayStatus', $args);
return $output->data->count?true:false;
}
@ -25,7 +35,19 @@
* @brief 특정 일의 접속 통계를 가져옴
**/
function getStatus($regdate) {
$args->regdate = $regdate;
// 여러개의 날자 로그를 가져올 경우
if(is_array($regdate)) {
$date_count = count($regdate);
for($i=0;$i<$date_count;$i++) {
if(strlen($regdate[$i])==8) $regdate[$i] = $regdate[$i].'000000';
$args->regdate = "'".implode("','",$regdate)."'";
}
// 단일 날자의 로그를 가져올 경우
} else {
if(strlen($regdate)==8) $regdate = $regdate.'000000';
$args->regdate = $regdate;
}
$output = executeQuery('counter.getCounterStatus', $args);
return $output->data;
}