• 12-01-2015, 21:58:18
    #1
    Üyeliği durduruldu
    Merhaba arkadaşlar birtane site analiz scripti var elimizde ama sorgulama yaptığımız zaman aşağıdaki ekran görğntüsünde verdiğimiz gibi hata alıyoruz sanıyorum javascript sorunlı bir hata yardımcı olursanız sevinirim teşekkürler..

    Bunlarda Hata Kodları
    google-index.php
    <?phpinclude "google.class.php";$google = new google();$url = addslashes(trim($_POST['url']));$sonuc = @$google->getIndex('site:'.$url.'');if($sonuc){echo $sonuc;}else{echo '0';}?>
    google-gorsel-index.php
    <?phpinclude "google.class.php";$google = new google();$url = addslashes(trim($_POST['url']));$sonuc = @$google->getImages('site:'.$url.'');if($sonuc){echo $sonuc;}else{echo '0';}?>
    google-backlink.php
    <?phpinclude "google.class.php";$google = new google();$url = addslashes(trim($_POST['url']));$sonuc = @$google->getBacklink('link:'.$url.'');if($sonuc){echo $sonuc;}else{echo '0';}?>
    alexa-dunya.php
    <?phpinclude "alexa.class.php";$alexa = new alexa();$url = addslashes(trim($_POST['url']));$sonuc = @$alexa->getGlobal($url);if($sonuc){echo $sonuc;}else{echo 'No Data';}?>
    alexa-ulke.php
    <?phpinclude "alexa.class.php";$alexa = new alexa();$url = addslashes(trim($_POST['url']));$sonuc = @$alexa->ulkeRank($url);if($sonuc){echo $sonuc;}else{echo 'No Data';}?>
    alexa-backlink.php
    <?phpinclude "alexa.class.php";$alexa = new alexa();$url = addslashes(trim($_POST['url']));$sonuc = @$alexa->backLink($url);if($sonuc){echo $sonuc;}else{echo 'No Data';}?>
    Yahoo-index.php
    <?php$url = addslashes(trim($_POST['url']));$kaynak = file_get_contents("http://tr.search.yahoo.com/search?p=site:$url");$r1 = explode('<span id="resultCount">',$kaynak);$r2 = explode('</span>',$r1[1]);$sonuc = @$r2[0];if(@$sonuc){echo $sonuc;}else{echo 'Yok';}?>
    dmoz.php
    <?php$url = addslashes(trim($_POST['url']));$kaynak = file_get_contents("http://www.dmoz.org/search?q=$url");$sonuc = explode('<strong>Open Directory Categories</strong>',$kaynak);if(@$sonuc[1]){echo 'Var';}else{echo 'Yok';}?>
    yas.php
    <?phpinclude "whois.class.php";$whois = new whois();$url = addslashes(trim($_POST['url']));$sonuc = @$whois->Creation($url);if($sonuc){echo $sonuc;}else{echo 'No Data';}?>
    lokasyon.php
    <?phpinclude "alexa.class.php";$alexa = new alexa();$url = addslashes(trim($_POST['url']));$sonuc = @$alexa->ulkeBayrak($url);if($sonuc){$ulkeadi = @$alexa->ulkeAdi($url);echo '<img src="'.$sonuc.'" title="'.$ulkeadi.'">';}else{echo 'No Data';}?>
    resim.php
    <?php$url = addslashes(trim($_POST['url']));echo '<img src="http://img.bitpixels.com/getthumbnail?code=76182&size=200&url='.$url.'">';?>
    bilgi.php
    <?php$url = addslashes(trim($_POST['url']));$kaynak = @file_get_contents('http://'.$url.'');$r1 = @explode('<title>',$kaynak);$r2 = @explode('</title>',$r1[1]);$baslik = @$r2[0];if(!$baslik){$baslik = 'Not Found';}$a1 = @explode('<meta name="description" content="',$kaynak);$a2 = @explode('"',$a1[1]);$aciklama = @$a2[0];if(!$aciklama){$aciklama = 'Not Found';}$s1 = @explode('<meta name="keywords" content="',$kaynak);$s2 = @explode('"',$s1[1]);$kelime = @$s2[0];if(!$kelime){$kelime = 'Not Found';}$d1 = @explode('lang="',$kaynak);$d2 = @explode('"',$d1[1]);$dil = @$d2[0];if(!$dil){$dil = 'Not Found';}$ip = @gethostbyname($url);$k = @get_headers('http://'.$url.'');$say = preg_match_all('/<a href="/i',$kaynak,$ret);?>    <h2>Site Bilgileri</h2>    <strong>Başlık</strong><br /><?php echo $baslik; ?><br />    <strong>Açıklama</strong><br /><?php echo $aciklama; ?><br />    <strong>Kelimeler</strong><br /><?php echo $kelime; ?><br />    <strong>Site Dili</strong><br /><?php echo $dil; ?><br />    <strong>İp Adresi</strong><br /><?php echo $ip; ?><br />    <strong>Server</strong><br /><?php echo $k[1]; ?><br />    <strong>Dışarıya Link Sayısı</strong><br /><?php echo $say; ?><br />    <strong>Sayfa Sonucu</strong><br /><?php echo $k[0]; ?><br />    <strong>Sistem</strong><br /><?php echo $k[5]; ?><br />    <strong>CF-RAY</strong><br /><?php echo @$k[11]; ?><br />
    Hatalı Kodlar Bunlar Arkadaşlar.
  • 12-01-2015, 22:00:38
    #2
    JS hatası değil, PHP tarafında hata var.
  • 12-01-2015, 22:14:53
    #3
    Üyeliği durduruldu
    soulmy adlı üyeden alıntı: mesajı görüntüle
    JS hatası değil, PHP tarafında hata var.
    Kodları Ekledim Hocam.
  • 12-01-2015, 22:18:40
    #4
    Tüm kodlar tek satır olmuş. Bu da beraberinde yazım hatasını getiriyor.

    Dosyaları orijinalleriyle değiştirin. Orijinalleri buysa eğer, tek tek elle düzeltmeniz gerekecek.
  • 12-01-2015, 22:26:13
    #5
    Üyeliği durduruldu
    soulmy adlı üyeden alıntı: mesajı görüntüle
    Tüm kodlar tek satır olmuş. Bu da beraberinde yazım hatasını getiriyor.

    Dosyaları orijinalleriyle değiştirin. Orijinalleri buysa eğer, tek tek elle düzeltmeniz gerekecek.
    Orjinal Kodlar Bunlar Hocam Nasıl Değişiceğim Anlamadım Ne Eklemem Gerekiyor Yardımcı Olurmusunuz.
  • 12-01-2015, 23:52:35
    #6
    <?php
    
    include "google.class.php";
    
    $google = new google();
    
    $url = addslashes(trim($_POST['url']));
    
    $sonuc = @$google->getIndex('site:'.$url.'');
    
    if($sonuc){echo $sonuc;}else{echo '0';}
    
    ?>
    google-index.php dosyası için bu şekilde. Diğerlerini de aynı mantıkla düzeltmelisin.
  • 13-01-2015, 01:24:22
    #7
    Üyeliği durduruldu
    soulmy adlı üyeden alıntı: mesajı görüntüle
    <?php
    
    include "google.class.php";
    
    $google = new google();
    
    $url = addslashes(trim($_POST['url']));
    
    $sonuc = @$google->getIndex('site:'.$url.'');
    
    if($sonuc){echo $sonuc;}else{echo '0';}
    
    ?>
    google-index.php dosyası için bu şekilde. Diğerlerini de aynı mantıkla düzeltmelisin.
    Hocam ben diğerlerini halettim yanlız alt kısımdaki google-class.php'de veren kod hatası ile karşı karşıyayım birde değerleri göstermiyor alexa üle sırası aleza dünya sırası vs vs hepsini çözdüm bir bu google-class.php kaldı
    google-backlink.php on line 3
    google-class.php
    <?php 
    class google{ 
    functiongetResult($kelime,$yer){ 
    $url="http://ajax.googleapis.com/ajax/services/search/".$yer."&q=".urlencode($kelime)."&rsz=large&hl=tr"; 
    $ch=curl_init(); 
    curl_setopt($ch,CURLOPT_URL,$url); 
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); 
    curl_setopt($ch,CURLOPT_REFERER,"http://www.ayazoglu.org/"); 
    $cikti=curl_exec($ch); 
    curl_close($ch); 
    return$json=json_decode($cikti); 
    } 
    functiongetIndex($kelime){ 
    $yer='web?v=1.0'; 
    $json=$this->getResult($kelime,$yer); 
    return$json->responseData->cursor->resultCount; 
    } 
    functiongetImages($kelime){ 
    $yer='images?v=1.0'; 
    $json=$this->getResult($kelime,$yer); 
    return$json->responseData->cursor->estimatedResultCount; 
    } 
    
    functiongetBacklink($kelime){ 
    $yer='web?v=1.0'; 
    $json = $this->getResult($kelime,$yer); 
    return $json->responseData->cursor->resultCount; 
    } 
    
    ?>
    buyurun koduda veriyimde bir bakınız.
  • 13-01-2015, 03:15:48
    #8
    functiongetResult bunu function getResult bu şekilde,
    functiongetIndex bunu function getIndex bu şekilde,
    functiongetImages bunu function getImages bu şekilde,
    functiongetBacklink bunu function getBacklink bu şekilde değiştirir misin?
  • 13-01-2015, 11:34:45
    #9
    Üyeliği durduruldu
    soulmy adlı üyeden alıntı: mesajı görüntüle
    functiongetResult bunu function getResult bu şekilde,
    functiongetIndex bunu function getIndex bu şekilde,
    functiongetImages bunu function getImages bu şekilde,
    functiongetBacklink bunu function getBacklink bu şekilde değiştirir misin?
    Yaptım Hocam
    google.class.php on line 30
    Hatası Veriyor.