示例#1
0
文件: isp.php 项目: relrod/dagd
 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.';
 }
示例#2
0
文件: whois.php 项目: relrod/dagd
 public function render()
 {
     $query = $this->route_matches[1];
     $whois_client = new DaGdWhois($query);
     return $whois_client->performQuery();
 }