public function render() { if (count($this->route_matches) > 1) { $query = $this->route_matches[1]; } else { $query = client_ip(); } $whois_client = new DaGdWhois($query); $response = $whois_client->performQuery(); if (preg_match('/(?:Org\\-?Name|contact:Name): ?(.+)/', $response, $org_matches)) { return trim($org_matches[1]); } return 'ISP could not be found.'; }
public function render() { $query = $this->route_matches[1]; $whois_client = new DaGdWhois($query); return $whois_client->performQuery(); }