&1","r")){ while (!feof($proc)) $result .= fgets($proc, 1024); pclose($proc); return $result; } } function wquery($tld,$host){ global $whois,$tld,$host; if ($tld=='com' or $tld=='org' or $tld=='net' or $tld=='edu') { $command="$whois $host.$tld"; } else { $command="$whois -c $tld $host.$tld"; } $command=escapeshellcmd($command); $result=syscall($command,$result); $findme = $host . '.' . $tld; $findmeupper=strtoupper($findme); $pos = strpos($result, $findme); $posupper = strpos($result, $findmeupper); if ($pos === false and $posupper === false) { $exists=0; } else { $exists=1; } return(array($exists,$result)); } $starttime = getmicrotime(); $whois=syscall('which whois',$whois); echo 'PHP WHOIS 1.0 cheera edition

'; echo "Using $whois to execute the query...

"; include "inc/form.inc"; $tld = $_POST["tld"]; $host= $_POST["domain"]; if ($tld <> "") { foreach ($tld as $tlds) { $domain=wquery($tlds,$host); if ($domain[0]=='1') { echo "

Nem lehet regelni a $host.$tlds domaint!!! Mar foglalt!!!

" . "\n"; echo '

A kimenet:

'; $lines = explode("\n", $domain[1]); foreach ($lines as $line) { echo $line . '
' . "\n"; } } else { echo "

A $host.$tlds szabadon regisztralhato

" . "\n"; } } } //end $endtime = getmicrotime(); $deltat=($endtime - $starttime)*1000; echo '
Executed in ' . number_format($deltat, 2, '.', '') . ' millisecond' . "\n"; include "inc/footer.inc"; ?> /* jail#cat inc/header.inc ' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo 'lix whois' . "\n"; echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; ?> jail#cat inc/form.inc '; echo ' .at '; echo ' .com'; echo ' .org'; echo ' .net'; echo ' .hu'; echo ' .be'; echo ' .de'; echo ' .sk

'; echo '



'; echo ''; echo ''; ?> jail#cat inc/footer.inc Valid XHTML 1.0 Strict

' . "\n"; echo '' . "\n"; echo '' . "\n"; ?> jail# */