Location: PHPKode > projects > phpBlogger > admin/protect.php
<?php
###############################
# protect.php     version 1.1.#
###############################
include ('header.php');
?>
<div id="headermenu">StopForumSpam Plugin</div>
<?php if(isset($_POST['submit'])) {
	$stopspam = $_POST['stopspam'];
	if(get_magic_quotes_gpc()) {
		$stopspam = stripslashes($stopspam);
	}
$sql = 'UPDATE abcoption SET valueopt = '.$conn->qstr($stopspam).' WHERE optionid = '.$conn->qstr("31").'';
	if($conn->Execute($sql) === false) {
		print '<br /><div id="error">error: '.$conn->ErrorMsg().'</div><br />';
	}
$conn->Close();
	echo "<div id ='information'>&nbsp;Successfully. ";
    ?>
<a href="protect.php">Back to StopForumSpam</a></div>
<?php } else { ?>
<form method="post" action="protect.php">
Module Off/On<br>
<?php if($stopspam == 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($stopspam == 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
$conn->Close();
}
?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: phpBlogger