/** * 执行安装 */ public function go() { $host = $this->post('host'); $port = $this->post_uint('port'); $user = $this->post('user'); $pass = $this->post('pass'); $pre = $this->post('pre'); $db = $this->post('db'); if (!$host || !$port || !$user || !$pass || !$db) { redirect('./'); } minstall::build($host, $port, $user, $pass, $pre, $db); minstall::update_config_file($host, $port, $user, $pass, $pre, $db); }