• 02-09-2012, 11:49:23
    #1
    Bu script çalışmıyor. Nasıl düzeltebilirim.


    <?php
    
    /*---------------------------------------------------+
    
    | PHP-Fusion 6 Content Management System
    
    +----------------------------------------------------+
    
    | Copyright © 2002 - 2006 Nick Jones
    
    | http://www.php-fusion.co.uk/
    
    +----------------------------------------------------+
    
    | Released under the terms & conditions of v2 of the
    
    | GNU General Public License. For details refer to
    
    | the included gpl.txt file or visit http://gnu.org
    
    +----------------------------------------------------*/
    
    require_once "maincore.php";
    
    require_once THEMES."templates/header.php";
    
    set_meta("Camfrog Sanal Hediye , Camfrog Gift, Camfrog Mavi Yyldyz, Camfrog Sary Yyldyz");
    
    
    
    add_to_title(',DEDICATED SERVER | DEDICATED, DEDICATED HOSTING, SUNUCU KİRALAMA, KİRALIK SUNUCU, KİRALIK SERVER, SERVER KİRALAMA');
    
    opentable('Domain Sorgulama');
    
    
    
    @ini_set("default_charset","iso-8859-9");
    
    $talep = array_merge($_GET,$_POST,$_FILES);
    
    $Evren = new Sablon("check");
    
    $check = new check();
    
    $check->sunucu = array(
    
    "A" => array(
    
    "adres" => "rs.internic.net",
    
    "cikti" => "no match"
    
    ),
    
    "B" => array(
    
    "adres" => "whois.publicinterestregistry.net",
    
    "cikti" => "not found"
    
    ),
    
    "C" => array(
    
    "adres" => "whois.metu.edu.tr",
    
    "cikti" => "no match"
    
    )
    
    );
    
    $check->uzanti = array(
    
    "com" => "A",
    
    "net" => "A",
    
    "org" => "B",
    
    "biz" => "A",
    
    "info" => "B",
    
    "com.tr" => "C",
    
    "org.tr" => "C",
    
    "gen.tr" => "C",
    
    "us" => "A",
    
    "name" => "A",
    
    "tv" => "A",
    
    "k12.tr" => "C",
    
    "info.tr" => "C",
    
    "biz.tr" => "C",
    
    "web.tr" => "C",
    
    "av.tr" => "C",
    
    "name.tr" => "C",
    
    "gov.tr" => "C",
    
    "bel.tr" => "C",
    
    "pol.tr" => "C",
    
    "edu.tr" => "C",
    
    
    
    );
    
    $check->Basla($talep);
    
    
    
    # check
    
    # ------------------------------------------------------------------------------
    
    class check{
    
    
    
    # Basla
    
    # ---------------------------------------------------------------------------
    
    function Basla($talep){
    
    global $Evren;
    
    
    
    switch($talep["bolum"]){
    
    default : $this->Form($talep); break;
    
    case "form" : $this->Form($talep); break;
    
    case "baslik" : $this->Baslik($talep); break;
    
    case "sonuc" : $this->Sonuc($talep); break;
    
    case "detay" : $this->Detay($talep); break;
    
    }
    
    
    
    echo stripslashes($Evren->Cikart("check"));
    
    return;
    
    }
    
    
    
    # Form
    
    # ---------------------------------------------------------------------------
    
    function Form($talep){
    
    global $Evren;
    
    foreach($this->uzanti as $uzanti => $sunucu){
    
    $no++;
    
    $Evren->secim = array(
    
    "tanim" => $uzanti,
    
    "deger" => $uzanti,
    
    "durum" => ""
    
    );
    
    $Evren->check["liste"] .= "'$uzanti',";
    
    $Evren->check["secim"] .= $Evren->Cikart("secim");
    
    }
    
    return;
    
    }
    
    
    
    # Baslik
    
    # ---------------------------------------------------------------------------
    
    function Baslik($talep){
    
    global $Evren;
    
    foreach($talep["secim"] as $uzanti){
    
    $alan =
    
    $no++;
    
    $Evren->baslik = array(
    
    "alan" => $talep["alan"].".".$uzanti,
    
    "uzanti" => $uzanti
    
    );
    
    echo stripslashes($Evren->Cikart("sonuc"));
    
    }
    
    exit;
    
    }
    
    
    
    # Sonuc
    
    # ---------------------------------------------------------------------------
    
    function Sonuc($talep){
    
    global $Evren;
    
    $alan = $talep["alan"].".".$talep["secim"];
    
    $adres = $this->sunucu[$this->uzanti[$talep["secim"]]]["adres"];
    
    $cikti = $this->sunucu[$this->uzanti[$talep["secim"]]]["cikti"];
    
    $sunucu = @fsockopen($adres,43);
    
    
    
    if($sunucu){
    
    fputs($sunucu,"$alan\r\n");
    
    while(!feof($sunucu)) $sonuc .= trim(fgets($sunucu,128));
    
    fclose($sunucu);
    
    
    
    if($sonuc and eregi($cikti,$sonuc))
    
    $sablon = "musait" ; else
    
    $sablon = "kayitli" ;
    
    }
    
    else
    
    $sablon = "basarisiz" ;
    
    
    
    $Evren->sonuc["secim"] = $talep["secim"];
    
    echo stripslashes($Evren->Cikart("sonuc_".$sablon));
    
    exit;
    
    }
    
    
    
    # Detay
    
    # ---------------------------------------------------------------------------
    
    function Detay($talep){
    
    global $Evren;
    
    $alan = $talep["alan"].".".$talep["secim"];
    
    $adres = $this->sunucu[$this->uzanti[$talep["secim"]]]["adres"];
    
    $cikti = $this->sunucu[$this->uzanti[$talep["secim"]]]["cikti"];
    
    $sunucu = @fsockopen($adres,43);
    
    
    
    if($sunucu){
    
    fputs($sunucu,"$alan\r\n");
    
    while(!feof($sunucu)) $sonuc .= fgets($sunucu,128);
    
    fclose($sunucu);
    
    }
    
    
    
    $Evren->detay["sonuc"] = nl2br(trim($sonuc));
    
    echo stripslashes($Evren->Cikart("detay"));
    
    exit;
    
    }
    
    }
    
    
    
    # Sablon
    
    # ------------------------------------------------------------------------------
    
    class Sablon{
    
    
    
    function Sablon($etiket){
    
    $this->Sablon = file_get_contents("$etiket.tpl");
    
    return;
    
    }
    
    function Getir($etiket){
    
    preg_match("'<!--basla:(".$etiket.")-->(.*)<!--bitir:\\1-->'Usi",$this->Sablon,$sonuc);
    
    $sonuc = preg_replace("'<!--basla:(\w*)-->(.*)<!--bitir:\\1-->'Usi","",$sonuc[2]);
    
    return addslashes($sonuc);
    
    }
    
    function Cikart($etiket){
    
    foreach (get_object_vars($this) as $anahtar => $deger)
    
    $$anahtar = $deger;
    
    eval('$sablon = "'.$this->Getir($etiket).'";');
    
    return $sablon;
    
    }
    
    }
    
    
    
    # ------------------------------------------------------------------------------
    
    
    
    closetable();
    
    require_once THEMES."templates/footer.php";
    
    
    
    ?>