error = "Server konnte nicht gefunden werden."; }else{ $uri = "serverquery://$ip:$telnet/?server_port=$port&blocking=0&timeout=2"; try{ $this->ts_server = TeamSpeak3::factory($uri); }catch(TeamSpeak3Exception $e){ $this->error = $e->getMessage(); } } } public function form( $instance ) { $ip = ! empty( $instance['ip'] ) ? $instance['ip'] : ""; $port = ! empty( $instance['port'] ) ? $instance['port'] : ""; $telnet = ! empty( $instance['telnet'] ) ? $instance['telnet'] : ""; ?>