Location: PHPKode > projects > Modular Site Manager > htdocs/misc/forums.guestreply.php
<?php
chdir("../");
include "inc/functions.inc.php";
$time = time();
$mysql = new mysql(DB_MAIN);
$sel = $mysql->select(PRE."forums_threads", "id='".$_POST['threadid']."'", "id");
$a = mysql_fetch_assoc($sel);
$mysql->insert(PRE."forums_posts", array('userid', 'postid', 'message', 'date', 'threadid', 'type', 'guestname'), array('0', $_POST['postid'], $_POST['post'], $time, $_POST['threadid'], 'guest', $_POST['guestname']));
$mysql->update(PRE."forums_threads", "lastupdate='".$time."'", "id='".$_POST['threadid']."'");
$mysql->close();
header("Location: ".SITE_URL.'Forums/Thread/'.$_POST['threadid'].'/');
?>
Return current item: Modular Site Manager