Location: PHPKode > projects > Modular Site Manager > htdocs/misc/forums.edit2.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['post']))
{
	$message = $a["message"];
} else {
	$message = strip_tags($_POST['post']);
}
$t = mysql_fetch_assoc($mysql->select(PRE."forums_threads", "id='".$_POST["threadid"]."'", "id"));
$thread = $_POST['threadid'];
$mysql->update(PRE."forums_posts", "message='".$message."'", "id='".$_POST['postid']."'");
$mysql->close();
header('Location: '.SITE_URL.'Forums/Thread/'.$thread.'/');
?>
Return current item: Modular Site Manager