update counter queries

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7076 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2009-12-28 09:31:37 +00:00
parent bb498be38d
commit 5a0c4587a4
5 changed files with 17 additions and 7 deletions

View file

@ -63,11 +63,16 @@
* @brief unique visitor 등록
**/
function insertUniqueVisitor($site_srl=0) {
$args->regdate = '0,'.date("Ymd");
if($site_srl) {
$args->regdate = '0';
$args->site_srl = $site_srl;
$output = executeQuery('counter.updateSiteCounterUnique', $args);
$args->regdate = date('Ymd');
$output = executeQuery('counter.updateSiteCounterUnique', $args);
} else {
$args->regdate = '0';
$output = executeQuery('counter.updateCounterUnique', $args);
$args->regdate = date('Ymd');
$output = executeQuery('counter.updateCounterUnique', $args);
}
}
@ -76,11 +81,16 @@
* @brief pageview 등록
**/
function insertPageView($site_srl=0) {
$args->regdate = '0, '.date('Ymd');
if($site_srl) {
$args->regdate = '0';
$args->site_srl = $site_srl;
executeQuery('counter.updateSiteCounterPageview', $args);
$args->regdate = date('Ymd');
executeQuery('counter.updateSiteCounterPageview', $args);
} else {
$args->regdate = '0';
executeQuery('counter.updateCounterPageview', $args);
$args->regdate = date('Ymd');
executeQuery('counter.updateCounterPageview', $args);
}
}