<?php
error_reporting(E_ALL);
ini_set('display_errors',1);
date_default_timezone_set('Europe/Paris');
include('demo_AutoSpamChecker.php');
?><html><head><title>SpamChecker test</title>
</head><body>
<h1>SpamChecker test</h1>
<p>Test form, enter something:</p>
<form method="post" style="float:left;margin:1em;">
<div style="width:15em;border:solid 1px black;padding:1em;background-color:silver;">
<fieldset><textarea rows="8" name="text"></textarea></fieldset>
<fieldset>A:<input type="text" name="a" value="" /></fieldset>
<fieldset>B:<input type="text" name="b" value="" /></fieldset>
<fieldset>C:<input type="text" name="c" value="" /></fieldset>
<fieldset>sessionkey:<input type="text" name="sessionkey" value="HlglRskGghwf" /></fieldset>
<input type="submit" value="Go" />
</div></form>
<?php
if(count($_REQUEST))
echo '<h2>Input accepted, spam check report:</h2>'.
$SpamChk->GetTextStatus().
$SpamChk->VowCon->HTMLReport();
?>
</body>
</html>
|