<?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);
}
$sql = 'UPDATE abcoption SET valueopt = '.$conn->qstr($timelimit).' WHERE optionid = '.$conn->qstr("11").'';
if($conn->Execute($sql) === false) {
print '<br /><div id="error">error: '.$conn->ErrorMsg().'</div><br />';
}
$sql2 = 'UPDATE abcoption SET valueopt = '.$conn->qstr($maxtopic).' WHERE optionid = '.$conn->qstr("26").'';
if($conn->Execute($sql2) === false) {
print '<br /><div id="error">error: '.$conn->ErrorMsg().'</div><br />';
}
$conn->Close();
echo "<div id ='information'> 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'); ?>