<!--%%INCLUDE "i_defaulthead.incl"-->
   <title>PolluStop Database</title>
</head>
<body>
   <h1>PolluStop Database<br>
   <span class=h2>%%domainname%%</span></h1>
   <!--%%INCLUDE "i_statuscodes.incl"-->
   <form action="database.page" method=post>

   <fieldset>
   <legend>Database Status</legend><!--%%IF database.iscasesensitive-->
   <li>The database contains mixed-case tokens</li><!--%%ELSE-->
   <li>The database contains only lower-case tokens</li><!--%%ENDIF--><!--%%IF zzz--><!--% %IF database.haschainedtokens-->
   <li>The database contains chained tokens</li><!--% %ELSE-->
   <li>The database doesn't contain chained tokens</li><!--% %ENDIF--><!--%%ENDIF--><!--%%IF database.hascontextualtokens-->
   <li>The database contains contextual tokens</li><!--%%ENDIF--><!--%%IF database.isniversoft-->
   <li>The Spam database has been trained starting with a Niversoft-provided database</li><!--%%ENDIF-->
   <li>The Spam set contains <span class=tt>%%database.spamtokens%%</span> unique tokens from <span class=tt>%%database.spammessages%%</span> messages (approx <span class=tt>%%database.spamtokpermsg%%</span> / message).</li>
   <li>The Good set contains <span class=tt>%%database.goodtokens%%</span> unique tokens from <span class=tt>%%database.goodmessages%%</span> messages (approx <span class=tt>%%database.goodtokpermsg%%</span> / message).</li>
   <li>The Spam set <!--%%IF NOT(database.spamok)--><font color=red><b>does not</b></font> contain<!--%%ELSE-->contains<!--%%ENDIF--> enough tokens and messages to be considered reliable</li>
   <li>The Good set <!--%%IF NOT(database.goodok)--><font color=red><b>does not</b></font> contain<!--%%ELSE-->contains<!--%%ENDIF--> enough tokens and messages to be considered reliable</li>
   </fieldset><br><br>
   <fieldset>
   <legend>Database query</legend>
   <p class=explain>Enter one or more tokens you want to know the score of:</p>
   <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text><br>
   <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text><br>
   <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text><br>
   <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text><br>
   <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text> &nbsp; &nbsp; &nbsp; <input name=token size=20 value="" type=text><br><br>
   <input name=query type=submit value="Query Database"><!--%%IF EXISTS(results)--><br><br>
   <table cellspacing=0>
   <tr><th class=table>Token</th><th class=table colspan=2>Spam occurences</th><th class=table colspan=2>Good occurences</th><th  class=table>Score</th></tr><!--%%FORALL result in results-->
   <tr><td class=table>%%result[].token%%</td><td class=table1>%%result[].spam%%</td><td class=table2>(%%result[].spamratio%%)</td><td class=table1>%%result[].good%%</td><td class=table2>(%%result[].goodratio%%)</td><td class=table>%%result[].score%%</td></tr>
   <!--%%ENDFOR result--><!--%%ENDIF--></table>
   </fieldset></form>
<!--%%INCLUDE "i_defaultfoot.incl"-->
