git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2327 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-12 03:59:52 +00:00
commit 8326004cb2
2773 changed files with 91485 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<query id="getCounterLog" action="select">
<tables>
<table name="counter_log" />
</tables>
<columns>
<column name="count(*)" alias="count"/>
</columns>
<conditions>
<condition operation="equal" column="ipaddress" var="ipaddress" />
<condition operation="like_prefix" column="regdate" var="regdate" notnull="notnull" pipe="and" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="getCounterStatus" action="select">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="*" />
</columns>
<conditions>
<condition operation="in" column="regdate" var="regdate" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="getStartLogDate" action="select">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="min(regdate)" alias="regdate" />
</columns>
<conditions>
<condition operation="excess" column="regdate" default="1" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="getTodayStatus" action="select">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="count(*)" alias="count"/>
</columns>
<conditions>
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,10 @@
<query id="insertCounterLog" action="insert">
<tables>
<table name="counter_log" />
</tables>
<columns>
<column name="regdate" var="regdate" default="curdate()" notnull="notnull"/>
<column name="ipaddress" var="ipaddress" notnull="notnull" default="ipaddress()" />
<column name="user_agent" var="user_agent" />
</columns>
</query>

View file

@ -0,0 +1,10 @@
<query id="insertTodayStatus" action="insert">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="regdate" var="regdate" notnull="notnull" />
<column name="unique_visitor" default="0" />
<column name="pageview" default="0" />
</columns>
</query>

View file

@ -0,0 +1,11 @@
<query id="updateCounterPageview" action="update">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="pageview" default="plus(1)" />
</columns>
<conditions>
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,12 @@
<query id="updateCounterUnique" action="update">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="unique_visitor" default="plus(1)" />
<column name="pageview" default="plus(1)" />
</columns>
<conditions>
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="updateTotalCounterPageview" action="update">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="pageview" default="plus(1)" />
</columns>
<conditions>
<condition operation="equal" column="regdate" default="00000000" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,12 @@
<query id="updateTotalCounterUnique" action="update">
<tables>
<table name="counter_status" />
</tables>
<columns>
<column name="unique_visitor" default="plus(1)" />
<column name="pageview" default="plus(1)" />
</columns>
<conditions>
<condition operation="in" column="regdate" default="00000000" notnull="notnull" />
</conditions>
</query>