| 123456789101112131415161718192021222324252627282930313233343536373839 | <?php# Domain Name Variable$domainNameone = "adservices.net";$domainNametwo = "aadservicesftp.com";# Functionfunction domainCheck($domainName, $attemptRequest=false){    $errorno = 0;    $errorstr = "";    $fp = @fsockopen ($domainName, 80, $errno, $errstr, 10);    if (!$fp) {        throw new Exception(sprintf("Failed to connect to host %s (%d): %s",                                     $domainName, $errno, $errstr));    } else {        if ($attemptRequest) {            $req = "GET / HTTP/1.1\r\n";            $req .= "Host: {$domainName}\r\n";            $req .= "Connection: Close\r\n\r\n";            if (fwrite($fp, $req) == false) {                throw new Exception("Failed to send data to {$domainName}");            }        }        fclose($fp);    }    return true;}try {    if (domainCheck($domainNameone)) {        $serverone=$domainNameone;    }    } catch (Exception $e) {    $serverone=$domainNametwo;} $guid="CCSG871414";$width="910px";?>
 |