$do değişkeni domain ismi acaba nerde hata var bulamadım bir türlü;
a.php;
<?php
$adre = $do;
$foun = 0;
if ($adre) {
$ai = preg_match("/.*\.(.*)$/", $adre, $sonu);
$foun = whoi($adre, $sonu[1] . ".whois-servers.net");
if ($foun == '0') {
$foun2 = whois("=$adre", $sonu[1] . ".whois-servers.net");
if ($foun2 == '0') {
print "<b>$adre</b> bulunamadi.\n";
} else {
print "<b>$adre</b> $foun2\n";
}
} else {
print "";
}
}
function whoi($hos, $serve)
{
$sarg = explode('|', $serve);
$serve = $sarg[0];
$ai = @fsockopen($serve, 43);
if (!$ai)
die("socket failure");
fputs($ai, "$sarg[1]" . "$hos\n");
while (!feof($ai)) {
$ti .= fgets($ai, 128);
}
fclose($ai);
$ai = preg_match("/Expiration Date: *(.*)/", $ti, $m);
$bitis=trim($m[1]);
}
?>b.php;<?php
$adres = $do;
$found = 0;
if ($adres) {
$a = preg_match("/.*\.(.*)$/", $adres, $sonuc);
$found = whois($adres, $sonuc[1] . ".whois-servers.net");
if ($found == '0') {
$found2 = whois("=$adres", $sonuc[1] . ".whois-servers.net");
if ($found2 == '0') {
print "<b>$adres</b> bulunamadi.\n";
} else {
print "<b>$adres</b> $found2\n";
}
} else {
print "";
}
}
function whois($host, $server)
{
$sargs = explode('|', $server);
$server = $sargs[0];
$a = @fsockopen($server, 43);
if (!$a)
die("socket failure");
fputs($a, "$sargs[1]" . "$host\n");
while (!feof($a)) {
$t .= fgets($a, 128);
}
fclose($a);
$a = preg_match("/Expiration Date: *(.*)/", $t, $m);
$b = preg_match("/Creation Date: *(.*)/", $t, $m2);
$tescil=trim($m2[1]);
}
?>Db'ye Kayıt Bölümü;<?
include("ayar.php");
$islem=$_GET['panel'];
if($islem=="kat.ekle"){?>
<? $kat=$_POST['kat'];
$onay=$_POST['Secim'];
require_once("pagerank_lib.php");
$pr=getpagerank($kat);
$back=google_backlink($kat);
$alexa=get_alexa_popularity($kat);
$yahoo=yahoo_inlink($kat);
include('a.php');
include('b.php');
$so=mysql_query("INSERT INTO domainler (Domain, Pr, backlink, alexa, yahoo, onay, tescil, bitis) values('$kat', '$pr', '$back', '$alexa', '$yahoo', '$onay', '$tescil', '$bitis')");
?>