File manager - Edit - /home/webivo6/webivox.lk/lkwhois.tar
Back
.htaccess 0000644 00000000441 15225337122 0006343 0 ustar 00 # php -- BEGIN cPanel-generated handler, do not edit # Set the “ea-php82” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-ea-php82___lsphp .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit index.php 0000644 00000002454 15225337122 0006373 0 ustar 00 <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> </head> <body> <?php if(isset($_REQUEST['lkdomaintxt'])) { $domainget=trim(stripslashes(strtolower($_REQUEST['lkdomaintxt']))); $dominexp=explode('.',$domainget); $thistld=''; foreach(array_slice($dominexp,1) as $d) { $thistld.='.'.$d; } $domain=$dominexp[0]; $tld=$thistld; $domaina=$domain.$tld; if(!$_REQUEST['lkdomaintxt']) { echo '<div id="lkdomainunava">Please enter domain name</div>'; } else { $url = "https://rs.domains.lk/domainsearch/doDomainSearch?domainname=".$domaina; $agent= 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)'; $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_URL,$url); $result=curl_exec($ch); $page=$result; //echo $result; if (preg_match('/Domain is available for registration/',$page)) { echo 'No match for'; } else{ echo 'Found'; } } } ?> </body> </html>