Location: PHPKode > projects > php Blogger > 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);
	}
	$stopspam = mysql_real_escape_string($stopspam);
	$arecordSet = &$conn->Execute("UPDATE abcoption SET valueopt = '$stopspam' WHERE optionid = 31");
	$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: php Blogger