/** * function forward mail this thread to sb. * * @param string $target * @param int $start * @param boolean $ref * @param boolean $noatt * @param boolean $noansi * @param boolean $big5 * @return null * @access public * @throws ArticleForwardException */ public function forward($target, $start = 0, $noref = false, $noatt = false, $noansi = false, $big5 = false) { $code = null; if ($start == 0) { $start = $this->GROUPID; } $ret = bbs_dotforward($this->_board->NAME, $this->GROUPID, $start, $target, $big5, $noansi, $noref, $noatt); switch ($ret) { case -1: case -10: case -7: $code = ECode::$SYS_ERROR; break; case -8: $code = ECode::$USER_NOID; break; case -11: $code = ECode::$BOARD_NONE; break; } if (!is_null($code)) { throw new ThreadsForwardException($code); } }
if (isset($_POST["big5"])) { $big5 = $_POST["big5"]; } else { $big5 = 0; } settype($big5, "integer"); if (isset($_POST["noansi"])) { $noansi = $_POST["noansi"]; } else { $noansi = 0; } settype($noansi, "integer"); if (isset($_POST["noref"])) { $noref = $_POST["noref"]; } else { $noref = 0; } settype($noref, "integer"); if (isset($_POST["noattach"])) { $noattach = $_POST["noattach"]; } else { $noattach = 0; } settype($noattach, "integer"); $ret = bbs_dotforward($brdarr["NAME"], $gid, $start, $target, $big5, $noansi, $noref, $noattach); if ($ret < 0) { html_error_quit("系统错误:" . $ret); } html_success_quit("文章已转寄给" . $target); } page_footer();