Script error
UnBlockIp
255 || intval($ip_parts) < 0) { return false; } } return true; } else { return false; } } function excecute_whm_csf_command($url, $whmuser, $whmauth, $authmethod) { $curl = curl_init(); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); if ($authmethod == "basic") { $authstr = 'Authorization: Basic ' . base64_encode($whmuser .':'. $whmauth) . "\r\n"; } else { $authstr = 'Authorization: WHM ' . $whmuser . ':' . $whmauth . "\r\n"; } $header[0] = $authstr; curl_setopt($curl, CURLOPT_HTTPHEADER, $header); curl_setopt($curl, CURLOPT_URL, $url); $r = curl_exec($curl); if ($r == false) { error_log("curl_exec threw error \"" . curl_error($curl) . "\" for $url"); } curl_close($curl); return $r; } function search_for_ip($ip, $url, $whmuser, $whmauth, $authmethod) { $query_url = $url.'?action=grep&ip='.$ip; $data = excecute_whm_csf_command($query_url, $whmuser, $whmauth, $authmethod); $matches = array(); $pattern = '/