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

This commit is contained in:
zero 2007-03-05 06:31:22 +00:00
parent 6ead633151
commit a5f53d4b25
12 changed files with 158 additions and 47 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,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>