<?php	require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('message');

/*
**************************
(C)2010-2014 phpMyWind.com
update: 2012-1-10 11:30:55
person: Feng
**************************
*/


//回复留言
if($action == 'remsg')
{
	$retime = time();
	$sql = "UPDATE `#@__message` SET recont='$msg', retime='$retime' WHERE id=$id";
	$dosql->ExecNoneQuery($sql);

	$r = $dosql->GetOne("SELECT `htop`,`rtop`,`recont` FROM `#@__message` WHERE id=$id");
	$content = '';
	if($r['htop'] == 'true') $content .= '置顶 ';
	if($r['rtop'] == 'true') $content .= '推荐 ';
	if($r['recont'] != '') $content .= '[已回复]';
	echo $content;
	exit();
}
?>