Beispiel #1
0
	public function message_info () {
		checkLogin();
		$msg_id = isset($_GET['msg_id']) ? intval($_GET['msg_id']): 0 ;
		include_once('includes/lib_clips.php');
		$message_info = zy_get_message_info($msg_id);
		if(empty($message_info))
		{
			$msg = rpcLang('user.php', 'get_message_failure');
			jsonExit("{\"status\":\"$msg\"}");
		}else
		{
			jsonExit($message_info);
		}
	}
Beispiel #2
0
	$message_list = zy_get_message_list($user_id,$pager['size'], $pager['start']);
	if(empty($message_list))
	{
		$msg = rpcLang('user.php', 'no_message_list');
		jsonExit("{\"status\":\"$msg\"}");
	}else
	{
		$message_list_arr = array('pager'=>$pager,'messagelist'=>$message_list);
		jsonExit($message_list_arr);
	}
}else if($act == 'message_info')//单条留言信息或回复
{
	checkLogin();
	$msg_id = isset($_GET['msg_id']) ? intval($_GET['msg_id']): 0 ;
	include_once('includes/lib_clips.php');
	$message_info = zy_get_message_info($msg_id);
	if(empty($message_info))
	{
		$msg = rpcLang('user.php', 'get_message_failure');
		jsonExit("{\"status\":\"$msg\"}");
	}else
	{
		jsonExit($message_info);
	}
	
}else if($act == 'act_add_message')//添加留言
{
	checkLogin();
	include_once('includes/lib_clips.php');
	$user_id = intval($_SESSION['user_id']);
	$message = array(