public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); if (!isset($_GET['r_id'])) { $this->r_id = intval($_POST['r_id']); } else { $this->r_id = intval($_GET['r_id']); } if (!isset($_GET['t_id'])) { $this->t_id = $_POST['t_id']; } else { $this->t_id = intval($_GET['t_id']); } if ($this->t_id <= 0) { output_error("话题id错误"); } }