Exemplo n.º 1
0
 /**
  * report post
  *	@param $post_id	post id
  */
 function report($post_id)
 {
     if (!$post_id) {
         return '<ret>0</ret>';
     }
     $u = $this->getLoginUser();
     if (!$u) {
         return '<ret>0</ret>';
     }
     $db = new DbForum();
     if (!$db->report((int) $post_id, $u)) {
         return '<ret>0</ret>';
     }
     return '<ret>1</ret>';
 }