mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 09:24:17 +09:00
update counter queries
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7076 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bb498be38d
commit
5a0c4587a4
5 changed files with 17 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
<column name="pageview" default="plus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="regdate" var="regdate" notnull="notnull" />
|
||||
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
<column name="pageview" default="plus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="in" column="regdate" var="regdate" notnull="notnull" />
|
||||
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<column name="pageview" default="plus(1)" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="site_srl" var="site_srl" default="0" pipe="and" />
|
||||
<condition operation="in" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="site_srl" var="site_srl" default="0" />
|
||||
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -8,6 +8,6 @@
|
|||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="site_srl" var="site_srl" notnull="notnull" />
|
||||
<condition operation="in" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" pipe="and" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue