Location: PHPKode > projects > Modular Site Manager > htdocs/misc/forums.quickedit.php
<?php
chdir("../");
include "inc/functions.inc.php";
$sel = $mysql->select(PRE."forums_posts", "id='".$_POST['postid']."'", "id");
$a = mysql_fetch_assoc($sel);
if(empty($_POST['message']))
{
	$message = $a["message"];
} else {
	$message = strip_tags($_POST['message']);
}
$mysql->update(PRE."forums_posts", "message='".$message."'", "id='".$_POST['postid']."'");
$mysql->close();
$ref = preg_replace("@#(.*?)@", "", $_SERVER["HTTP_REFERER"]);
$ref .= '#post-'.$_POST['postid'];
header('Location: '.$ref.'');
?>
Return current item: Modular Site Manager