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

This commit is contained in:
zero 2007-04-18 01:30:43 +00:00
parent 46ceabcbb9
commit 3ed4516b8a
29 changed files with 618 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<query id="deleteDeniedIP" action="delete">
<tables>
<table name="spamfilter_denied_ip" />
</tables>
<conditions>
<condition operation="equal" column="ipaddress" var="ipaddress" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,8 @@
<query id="deleteDeniedWord" action="delete">
<tables>
<table name="spamfilter_denied_word" />
</tables>
<conditions>
<condition operation="equal" column="word" var="word" filter="number" notnull="notnull" />
</conditions>
</query>

View file

@ -0,0 +1,11 @@
<query id="getDeniedIPList" action="select">
<tables>
<table name="spamfilter_denied_ip" />
</tables>
<columns>
<column name="*" />
</columns>
<navigation>
<index var="sort_index" default="regdate" order="desc" />
</navigation>
</query>

View file

@ -0,0 +1,11 @@
<query id="getDeniedWordList" action="select">
<tables>
<table name="spamfilter_denied_word" />
</tables>
<columns>
<column name="*" />
</columns>
<navigation>
<index var="sort_index" default="regdate" order="desc" />
</navigation>
</query>

View file

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

View file

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

View file

@ -0,0 +1,9 @@
<query id="insertDeniedIP" action="insert">
<tables>
<table name="spamfilter_denied_word" />
</tables>
<columns>
<column name="word" var="word" notnull="notnull" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
</query>

View file

@ -0,0 +1,10 @@
<query id="insertLog" action="insert">
<tables>
<table name="spamfilter_log" />
</tables>
<columns>
<column name="spamfilter_log_srl" default="sequence()"/>
<column name="ipaddress" default="ipaddress()" />
<column name="regdate" var="regdate" default="curdate()" />
</columns>
</query>

View file

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