Location: PHPKode > projects > Modular Site Manager > htdocs/misc/blog-edit.php
<?php
chdir("../");
include "inc/functions.inc.php";
$mysql = new mysql(DB_MAIN);
if(!isset($_POST['message']) || !isset($_POST['subject']))
{
	header("Location: ".$HTTP_REFERER."&berror");
} else {
	$mysql->update(PRE."blogs", "subject='".strip_tags($_POST['subject'])."', message='".strip_tags($_POST['message'])."'", "postid='".$_POST['id']."' AND userid='".$_COOKIE['user']."'");
	header("Location: ".SITE_URL."Blogs/View/".$_COOKIE['user']);
}
?>
Return current item: Modular Site Manager