Location: PHPKode > projects > PHP Enter > admin/protect.php
<?php
/* * ************************************
* PHP Enter is licensed under the
* GNU General Public License version 2
* ************************************* */
include ('header.php');
?>
<div id=vforms>
<div id="cconfig">Configuration</div>
<?php
if (isset($_POST['submit'])) {
    $cablock = $_POST['captcha'];
$sql3 = 'UPDATE abcoption SET valueopt = '.$conn->qstr($cablock).' WHERE optionid = '.$conn->qstr("31").'';
if($conn->Execute($sql3) === false) {
	print '<br /><div id="error">error [3]: '.$conn->ErrorMsg().'</div><br />';
}
echo "<div id ='information'>&nbsp;Successfully. ";
?>
<a href="protect.php">Back to Spam Protection</a></div>
<?php
} else {
?>
<form method="post" action="protect.php">
Spam protection helps prevent automated abuse of your site (such as comment spam or bogus registrations) by using a CAPTCHA to ensure that only humans perform certain actions.
<br />
<font color="#3A586A">Captcha Spam Protection On/Off</font><br />
<?php if ($stopspam == 2) { ?>
<select style="background:#EEFFE3;" id="incc" name="captcha">
<option value='2'>-- Yes</option>
<option style="background:#ffffff;" value='2'>---- Yes</option>
<option style="background:#ffffff;" value='1'>------ No</option>
</select>
<?php } ?>
<?php if ($stopspam == 1) { ?>
<select style="background:#FFF6C1;" id="incc" name="captcha">
<option value='1'>-- No</option>
<option style="background:#ffffff;" value='2'>---- Yes</option>
<option style="background:#ffffff;" value='1'>------ No</option>
</select>
<?php } ?>
<br /><br />
<input type="submit" class="topicbuton" name="submit" value="Submit" /><br /><br />
</form>
<?php
}
?>
</div>
<?php
include ('footer.php');
$conn->Close();
/**************************************
* Revision: v.4.1.4.
***************************************/
?>
Return current item: PHP Enter