Location: PHPKode > scripts > Ja2BU > admin/protect.php
<?php
include ('header.php');
/**********************************************************************
*  Copyright notice Ja2BU 1.1.
*
*  (c) 2011 Predrag Rukavina - admin[at]phpform[dot]net
*  All rights reserved
*
*  This script is part of the Ja2BU project. 
*  The Ja2BU project is free software; you can redistribute it and/or
*  modify it under the terms of the GNU General Public License
*  as published by the Free Software Foundation; either version 2
*  of the License, or (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
*  MA  02110-1301, USA.
*
*  This copyright notice MUST appear in all copies of the script!
************************************************************************/
?>
<div id=vforms>
<div id="cconfig">Configuration</div>
<?php
if (isset($_POST['submit'])) {
    $cablock = $_POST['captcha'];
    $xablock = $_POST['stopspam'];
$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 />';
}
$sql4 = 'UPDATE abcoption SET valueopt = '.$conn->qstr($xablock).' WHERE optionid = '.$conn->qstr("48").'';
if($conn->Execute($sql4) === 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 /><br />
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 />
Stop Forum Spam Module On/Off<br>
<?php if($sfspam == 1) { ?>
<select style="background:#EEFFE3;" id="incc" name="stopspam">
<option value='1'>-- On</option>
<option style="background:#ffffff;" value='1'>---- On</option>
<option style="background:#ffffff;" value='2'>------ Off</option>
</select>
<?php } ?>
<?php if($sfspam == 2) { ?>
<select style="background:#FFF6C1;" id="incc" name="stopspam">
<option value='2'>-- Off</option>
<option style="background:#ffffff;" value='1'>---- On</option>
<option style="background:#ffffff;" value='2'>------ Off</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.1.1.
***************************************/
?>
Return current item: Ja2BU