• 11-05-2009, 20:15:41
    #1
    Arkadaşlar elimde
    dailymition
    timsah
    izlesene vs botları bu botlara oto tag çekmesi için ne yapabilirim?


    Timsah video botu olmayan içinde hediyem olsun kodu koyuyorum .

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE>
    Timsah Video Botu
    </TITLE>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
    </head><body>
    
    
    <?
    
    ###############################################################
    //Database ayarları wordpress için                          
    $dbhost="localhost";                      //Db Host           
    $dbkullanici="root";                      //Db Kullanıcısi
    $dbsifre="317952846";                      //Db Åžifre
    $dbadi="bot";                              //Db İsmi
    $siteadresi="http://localhost/wordpress"; //Site Adresi
    ###############################################################
    
    $baglan = mysql_connect($dbhost,$dbkullanici,$dbsifre); 
            mysql_select_db($dbadi,$baglan);
            mysql_query("SET NAMES 'UTF8'");
            mysql_query("SET CHARACTER SET UTF8");
            mysql_query("SET COLLATION_CONNECTION = 'UTF8_turkish_ci'");
    		
    function birdensuna($sayi,$maximum) { 
        if ( $sayi >= 1 AND $sayi <= $maximum ) { return $sayi; } 
        else { return $maximum; } 
    } 
    
    function DosyaAl($url){
    		//$ch = curl_init();
    		//$timeout = 0;
    		//curl_setopt ($ch, CURLOPT_URL, $url);
    		//curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    		//curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    		//$xml = curl_exec($ch);
    		//curl_close($ch);
    		//if(!$xml) die('Baglantı Hatası');
    		$xml = file_get_contents($url);
    		return $xml;
    }
    
    function trsil($url)
    {
        $url = trim($url);
        $url = strtolower($url);
        $find = array('<b>', '</b>');
        $url = str_replace ($find, '', $url);
        $url = preg_replace('/<(\/{0,1})img(.*?)(\/{0,1})\>/', 'image', $url);
        $find = array(' ', '&quot;', '&amp;', '&', '\r\n', '\n', '/', '\\', '+', '<', '>');
        $url = str_replace ($find, '-', $url);
        $find = array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê');
        $url = str_replace ($find, 'e', $url);
        $find = array('Ã*', 'ý', 'ì', 'î', 'ï', 'I', 'Ã�', 'Ã�', 'ÃŒ', 'ÃŽ', 'Ã�');
        $url = str_replace ($find, 'i', $url);
        $find = array('ó', 'ö', 'Ö', 'ò', 'ô', 'Ó', 'Ò', 'Ô');
        $url = str_replace ($find, 'o', $url);
        $find = array('á', 'ä', 'â', 'Ã*', 'â', 'Ä', 'Â', 'Ã�', 'À', 'Â');
        $url = str_replace ($find, 'a', $url);
        $find = array('ú', 'ü', 'Ü', 'ù', 'û', 'Ú', 'Ù', 'Û');
        $url = str_replace ($find, 'u', $url);
        $find = array('ç', 'Ç');
        $url = str_replace ($find, 'c', $url);
        $find = array('þ', 'Þ');
        $url = str_replace ($find, 's', $url);
        $find = array('ð', '�');
        $url = str_replace ($find, 'g', $url);
        $find = array('/[^a-z0-9\-<>]/', '/[\-]+/', '/<[^>]*>/');
        $repl = array('', '-', '');
        $url = preg_replace ($find, $repl, $url);
        $url = str_replace ('--', '-', $url);
        return $url;
    }
    
    
    function acilma_suresi (){
    $time = explode( " ", microtime());
    $usec = (double)$time[0];
    $sec = (double)$time[1];
    return $sec + $usec;
    }
    //Bunu sayfanın en üst kısmına koyarsanız iyi olur
    $saymaya_basla = acilma_suresi();
    $page = $_GET['page'];
    $kelime = $_GET['kelime'];
    $max=100;
    if (!$page) $page=1;
    $alt=($page - 1) * $max;
    $et = explode(",",$etiketler);
    $cek = rand(0,count($et));
    if(!$kelime) $kelime = $et[$cek];
    		$aranan = urlencode($kelime);
    
    $ix = $_POST['ix'];
    if($ix == "1"){
    $adi = $_POST['adi'];
    $kategori = $_POST['kategori'];
    $aciklama = $_POST['aciklama'];
    $resim = $_POST['resim'];
    $kod = $_POST['kod'];
    $tarih = time();
    $sef = trsil($adi) ;
    $konu = "<p align=\"center\">$kod</p><p align=\"center\"><!--more--></p><p align=\"center\">$aciklama</p>" ;
    
     $sql="select * from wp_posts order by ID DESC LIMIT 1";
                  $dogru=mysql_query($sql);
                  $post_id=mysql_result($dogru,0,"ID");
    			  $post_ids = $post_id+1 ;
    			   $guid="$siteadresi/?p=$post_ids";
    			   
    
    	$result = mysql_query("Insert Into wp_posts (guid,post_author,post_date,post_date_gmt,post_content,post_title,post_status,comment_status,ping_status,post_name,post_modified,post_modified_gmt,post_type) values ('$guid','1',Now(),Now(),'$konu','$adi','publish','open','open','$sef',Now(),Now(),'post')");
    	
    	$results2 = mysql_query("Insert Into wp_term_relationships (object_id,term_taxonomy_id) values ('$post_ids','$kategori')");
    echo "<b>Video eklendi!!<br>&nbsp;";
    echo mysql_error();
    
    }else{
    ?>	
    <FORM NAME="form" METHOD="GET" ACTION="">
                  <div align="center"><font face="Tahoma" size="2" class="ara">
                  <input type="text" name="kelime" class="ara" size="40" value="<?echo "$aranan";?>" />
                  </font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="submit" name="onay" value="Aramaya BaÅŸla" />
    <BR>
                  </div></FORM>
                  
                  <?
    		
    		$data=DosyaAl('http://timsah.com/arama?q='.$aranan);	
    		if(eregi("<div class=\"searchitem kkenbegentirtik\">",$data)) {
    		$bol = explode("<div class=\"searchitem kkenbegentirtik\">",$data);
    		if(count($bol)-1<$max) {
    		$git = count($bol)-1;
    		}else{
    		$git = $max;}
    		for ($i=1;$i<=$git;$i++) {
    
    	preg_match("'href=\"(.*?)\"'si",$bol[$i], $id);
    		preg_match("'<img src=\"(.*?)\" width'si",$bol[$i], $resim);
    		
    		$adres = "http://timsah.com".$id[1] ;
    		
    		$datas=DosyaAl("$adres");	
    	preg_match("'<title>(.*?) - Timsah.com</title>'si",$datas, $adi);
    	
    $boly = explode("/",$id[1]);
    
    ?>	<FORM action=timsah.php
                    method=post><input type=hidden name=ix value=1>
                  <div class="post" style="padding-top: 5px;">
                    <h2 class="title">isim:
                    <input name="adi" class="field" id="adi" 
                      style="WIDTH: 200px; HEIGHT: 20px" value="<?=$adi[1];?>" size="10" />
                    Link: 
     <input class="field" 
                      style="WIDTH: 200px; HEIGHT: 20px" value="<?=$id[1];?>" size="10" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<INPUT class=button type=submit value=Ekle name=send_button></h2>
                    <div class="entry">
                    <table border="0" width='100%'>
                      <tr>
                        <td valign="top" width='217'><div align="center"><img border="0" src="<?=str_replace('320x240','160x120',$resim[1]);?>" alt="<?=$adi[1];?>" height="103" width="138" /></div>
                            <table cellspacing="0" cellpadding="0" width="220" align="left" 
                  border="0">
                              <tbody>
                                <tr height="25">
                                  <td width="84" align="left"><b>Kategori :</b></td>
                                  <td width="136"><select name="kategori" id="kategori">
    <?
    
    $isimx="select * from wp_term_taxonomy where taxonomy='category'";
    $sorgu=mysql_query($isimx);
    while($veri = mysql_fetch_array($sorgu)) 
    {
    
    $q2=mysql_query("Select * from wp_terms where term_id='$veri[term_id]'");
    $r2=mysql_fetch_array($q2);
    echo "<option value=$veri[term_taxonomy_id]>$r2[name]</option>";
    }
    ?></select>
                                </td>
                                </tr>
                              </tbody>
                        </table></td>
                        <td width="269" valign="top"><p><strong>Aciklama:</strong></p>
                            <p>
                              <textarea class="field" style="WIDTH: 416; HEIGHT: 159" name="aciklama" rows="5" cols="40"><?=$adi[1];?> Videoları izle
                              </textarea>
    </p></td>
                        <td width="458" valign="top"><p><strong>Embed Kodu:</strong></p>
                            <p>
                              <textarea class="field" style="WIDTH: 416; HEIGHT: 159" name="kod" rows="5" cols="40" id="kod"><object width="450" height="404"><param name="movie" value="http://www.timsah.com/getswf/v/<?=$boly[2];?>" /><param name="WMode" value="Transparent"><embed src="http://www.timsah.com/getswf/v/<?=$boly[2];?>" wmode="transparent" width="400" height="324" name="player" type="application/x-shockwave-flash" /></object>
                              </textarea>
                              <br />
                              <strong>Resim Konumu</strong>:
                              <input name="resim" class="field" id="resim" 
                      style="WIDTH: 200px; HEIGHT: 20px" value="<?=$resim[1];?>"  size="10" />
                          </p></td>
                      </tr>
                    </table>
                  </div>
                  </FORM>
                  <center>
                    ---------------------------------------------------------------------------------------------------------------------------------------------------------------
                  </center>
                  <? } } } ?>
                  <BR>
    <BR>
    
    </body>
    </html>

    Yapabilen arkadaşa diyer botlar hediye.
  • 11-05-2009, 20:19:59
    #2
    bot yazarından destek alabilirsiniz sonuçta ücretini vermişsiniz

    eğer ücretsiz ise buraya en azından kodlarını koyabilirsiniz (nede olsa ücretsiz) belki ozaman nerde ne yapılması gerektiği fikrini söyleyebiliriz

    burda yazdıklarımız muallakta kalır
  • 11-05-2009, 20:22:53
    #3
    Koydum.
  • 11-05-2009, 20:30:51
    #4
    preg_match("'href=\"(.*?)\"'si",$bol[$i], $id);

    bu değişkeni preg_match_all diye yaparsan vidyoya ait taglarıda alacaktır

    href="/polat-alemdarin-sesi/ZdTMVM8odM-"
    href="?q=polat"

    $id[1][0] =>/polat-alemdarin-sesi/ZdTMVM8odM-

    bunu verirken

    $id[1][0] =>?q=polat

    bunu verecektir. daha sonra filtrelemeden geçirip (?q=) wp_terms tablosuna giriş yapabilirsin
  • 11-05-2009, 20:32:44
    #5
    niphell adlı üyeden alıntı: mesajı görüntüle
    preg_match("'href=\"(.*?)\"'si",$bol[$i], $id);
    bu değişkeni preg_match_all diye yaparsan vidyoya ait taglarıda alacaktır
    href="/polat-alemdarin-sesi/ZdTMVM8odM-"
    href="?q=polat"
    $id[1][0] =>/polat-alemdarin-sesi/ZdTMVM8odM-
    bunu verirken
    $id[1][0] =>?q=polat
    bunu verecektir. daha sonra filtrelemeden geçirip (?q=) wp_terms tablosuna giriş yapabilirsin

    koda uygulayıp koyabilirmisiniz hocam?
  • 11-05-2009, 20:43:54
    #6
    yaptım ama olmadı ?
  • 11-05-2009, 20:44:11
    #7
    iyide bildiğim kadarıyla ücretli bir bot

    //Bunu sayfanın en üst kısmına koyarsanız iyi olur
    $saymaya_basla = acilma_suresi();

    değiştirme ve yayımlama hakkım yok benim (sadece yolunu söyledim)

    preg_match("'href=\"\?q=(.*?)\"'si",$bol[$i], $tag);

    $results2 = mysql_query("Insert Into wp_terms (name,slug) values ('$tag[1]','$seotag')");
  • 11-05-2009, 20:48:21
    #8
    niphell adlı üyeden alıntı: mesajı görüntüle
    iyide bildiğim kadarıyla ücretli bir bot
    //Bunu sayfanın en üst kısmına koyarsanız iyi olur
    $saymaya_basla = acilma_suresi();
    değiştirme ve yayımlama hakkım yok benim (sadece yolunu söyledim)
    preg_match("'href=\"\?q=(.*?)\"'si",$bol[$i], $tag);
    $results2 = mysql_query("Insert Into wp_terms (name,slug) values ('$tag[1]','$seotag')");
    ücretsiz bi bot arkadaş yaptı hatta paylaştı ama sonra linkleri kaldırdı.
  • 11-05-2009, 22:40:34
    #9
    olmadı hocam malesef.