Location: PHPKode > projects > php Blogger > admin/posting.php
<?php
##############################
# posting.php    version 1.1.#
##############################
include ('header.php');
?>
<div id="headermenu">Meta Description & Keywords</div>
<?php
if(isset($_POST['submit'])) {
	$timelimit = $_POST['ccmdesc'];
	$maxtopic = $_POST['cckwords'];
	if(get_magic_quotes_gpc()) {
		$timelimit = stripslashes($timelimit);
		$maxtopic = stripslashes($maxtopic);
	}
	$arecordSet = &$conn->Execute("UPDATE abcoption SET valueopt = '$timelimit' WHERE optionid = 11");
	$brecordSet = &$conn->Execute("UPDATE abcoption SET valueopt = '$maxtopic' WHERE optionid = 26");
	$conn->Close();
	echo "<div id ='information'>&nbsp;Successfully. "; ?>
	<a href = "posting.php" > Back to Posting Settings</a></div> 
    <?php } else { ?>
<form method="post" action="posting.php">
Posting Time Interval [seconds]<br />
<input type="text" id="incc" name="ccmdesc" value="<?php echo $timelimit; ?>"><br /><br />
Max Characters<br />
<input type="text" id="incc" name="cckwords"  value="<?php echo $maxtopic; ?>"><br /><br />
<input type="submit" class="topicbuton" name="submit" value="Submit" /><br /><br />
</form>
</div>
<?php
$conn->Close();
}
?>
</div></div></div>
<?php include ('footer.php'); ?>
Return current item: php Blogger