Location: PHPKode > projects > Modular Site Manager > htdocs/misc/imgal-comment-in.php
<?
chdir("../");
include "inc/functions.inc.php";
$mysql = new mysql(DB_MAIN);
if(!$_POST['username'] || !$_POST['email'] || !$_POST['message'])
{
	header("Location: ".$HTTP_REFERER."&cerror");
} else {
	$mysql->insert(PRE."imgal_comments", array('id', 'username', 'message', 'email', 'ip', 'date'), array($_POST['id'], $_POST['username'], parse($_POST['message']), $_POST['email'], $_SERVER['REMOTE_ADDR'], time()));
}
header("Location: ".$HTTP_REFERER);
?>
Return current item: Modular Site Manager