Location: PHPKode > projects > phpBlogger > admin/messaging.php
<?php
##############################
# messaging.php  version 1.1.#
##############################
include ('header.php');
?>
<div id="headermenu">Messaging System</div>
<?php
if(isset($_POST['submit'])) {
	$messaging = $_POST['messaging'];
	if(get_magic_quotes_gpc()) {
		$messaging = stripslashes($messaging);
	}
$sql = 'UPDATE abcoption SET valueopt = '.$conn->qstr($messaging).' WHERE optionid =  '.$conn->qstr("21").'';
	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="messaging.php">Back to Messaging System</a></div>
<?php } else { ?>
<form method="post" action="messaging.php">
This section is still under construction.
<br />
Module Off/On<br>
<?php if($messaging == 1) { ?>
<select style="background:#EEFFE3;" id="incc" name="messaging">
<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($messaging == 2) { ?>
<select style="background:#FFF6C1;" id="incc" name="messaging">
<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