<?php
require_once("wp-config.php");

function lisanskontrol() {

 if (substr($_SERVER['HTTP_HOST'], 0, 4) == "www.") {

 $domainadi = substr($_SERVER['HTTP_HOST'], 4);

 } else {

 $domainadi = $_SERVER['HTTP_HOST'];

 }

return $domainadi;

}

$alanadi=lisanskontrol();

if($alanadi!=="updatefilm.com"): echo '<html>Coded By Deniz</html>'; exit; endif;


        function f($bas, $son, $yazi)		{ @preg_match_all('/' . preg_quote($bas, '/') . '(.*?)'. preg_quote($son, '/').'/i', $yazi, $m);return @$m[1];}


function get_data_normal($url)
{
	$ch = curl_init();
	$timeout = 5;
	curl_setopt($ch,CURLOPT_URL,$url);
	curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
	
}
?>
<html>
<head>
<title>bot</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><script type="text/javascript">
function secKaldir(check) {
	for(i=0;i<document.getElementsByName(check).length;i++) {
		document.getElementsByName(check)[i].checked = !document.getElementsByName(check)[i].checked;
	}
}</script>
<script> 
   function Goruntule(hedef){ 
      var cerceve = document.getElementById('gizli_cerceve'); 
      cerceve.src = hedef;
      }
</script> 
<script language="javascript" type="text/javascript">
function SubmitForm()
    {
      if(document.getElementById("paf").value == "")
        {
            alert("Ltfen Bir Metin Girin");
            document.getElementById("paf").focus();
            return false;
        }
        
        return true;    
    }
</script>
</head>
<form method='GET'>
<table align="center" style="width: 600px; font-family: Verdana; font-size: 11px" height="121">
	<tr>
		<td style="width: 300px" bgcolor="orange" height="47"><b>&nbsp;&nbsp;&nbsp;Kategori Secin :&nbsp;&nbsp;</b></td>
		<td bgcolor="orange" height="47">&nbsp;&nbsp;&nbsp;<select name="kategori">  <? 
		      $anasayfa = get_data_normal("http://www.updatefilm.com/");
preg_match_all('#<a href="http://www.updatefilm.com/izle/([^"]*)" title="[^"]*">([^<]*)</a>#si
',$anasayfa,$diziler);
?>
<?php for ($u=0;$u<count($diziler['2']);$u++) { 
$isim=$diziler['2'][$u];
?>
      <option value="<? echo $diziler['1'][$u];?>" <? if($diziler['1'][$u]==$_GET['kategori']){echo 'selected';}?>><? echo str_replace("izle","",$isim);?></option><? }?>
            </select>            </td>
	</tr>
	<tr>
		<td style="width: 300px; height: 36px;"><b>&nbsp;&nbsp;&nbsp;Hangi Kategoriye Kaydedelim :</b></td>
		<td style="height: 36px">
		&nbsp;&nbsp;

<?php wp_dropdown_categories('orderby=name&hide_empty=0&selected='.$_GET['cat']); ?>

	
				</td>	</tr>
				<tr>
		<td style="width: 300px" bgcolor="orange" height="47"><b>&nbsp;&nbsp;&nbsp;Sayfa :</b></td>
		<td style="height: 36px" bgcolor="orange">
		&nbsp;&nbsp;&nbsp;<input name="sayfa" size="5" onFocus="this.value=''" value="<? $sayfa=$_GET['sayfa']; if($_GET['sayfa']==""){ $sayfa="1";} echo $sayfa;?>">
</td>
	</tr>
	<tr style="text-align: right">
		<td style="width: 300px">&nbsp;</td>
		<td><font color="orange">
		<input type="hidden" name="ekle" value="bolum">
		<input name="Submit1" type="submit" value="Devam"></font></form></td>
	</tr>
</table>
<br> 
<div style="width:360px;margin:0px auto; padding-left:70px;font-family: Verdana; font-size: 11px"><div style="padding:0 10px 5px 10px">
<br><br>

    
            <? if($_GET['ekle']=='bolum'){?>
            <?php
    $kategori=$_GET['kategori'];
    $sayfa=$_GET['sayfa'];
    $no=$sayfa;
    $icerik=get_data_normal("http://www.updatefilmcom/izle".$kategori."_".$no.".html");

$bul = f('<div class="seriesBig"> <div class="seriesBigImg"><a href="/','" title="',$icerik);
	$him = count($bul);
	
		if(!$him): echo 'Hic Veri Bulunamadi'; exit; endif;
        
		for($a=0;$a<=$him-1;$a++){
				preg_match_all('#<div class="seriesBig"> <div class="seriesBigImg"><a href="/(.*?)" title="(.*?) izle"><img src="/(.*?)" alt="#',$icerik,$resim);
				 $basligim= $resim['2'][$a]; 
				 $res='http://www.updatefilm.com/'.$resim['3'][$a]; 
				 $ver='http://www.updatefilm.com/'.$resim['1'][$a];
				 $etiketler=$basligim.' izle, '.$basligim.' full izle, '.$basligim.' dizi izle, '.$basligim.' donmadan izle, '.$basligim.' canli izle';
		        $kat_id=$_GET['cat'];
				?>
										   
			 
 <form method='POST' action='?sec=bolum'>			   <input type='hidden' name='yol' value='<? echo $ver;?>'>  <input type='hidden' name='res' value='<? echo $res;?>'> <input type='hidden' name='basligim' value='<? echo $basligim;?>'> <input type='hidden' name='kat_id' value='<? echo $kat_id;?>'><input type='hidden' name='etiketler' value='<? echo $etiketler;?>'>

			   &nbsp;&nbsp;&nbsp;&nbsp;<? echo $basligim;?>&nbsp;&nbsp;&nbsp;&nbsp;<input type='submit' value='Ekle'><br>			</form>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>		
			  		    <? }}?></div>	<? $sec = $_GET['sec'];
if($sec == "bolum"){
$kat_id=$_POST['kat_id'];
$basligim=$_POST['basligim'];
$res=$_POST['res'];
$etiketler=$_POST['etiketler'];
$in=$_POST['yol'];
$ani=get_data_normal($in);
$bak=mysql_query("SELECT * FROM wp_posts WHERE post_title='$basligim'");
			   $say=mysql_num_rows($bak);
			   if($say>=1){ echo "<script language='javascript'>alert('".$basligim." Zaten Kayitli');history.go(-1);</script>";

		}else{

			$insert_post = array(); 
$insert_post['post_title'] = $basligim; 
$insert_post['post_content'] = ""; 
$insert_post['post_status'] = 'publish'; 
$insert_post['tags_input'] = $etiketler; 
$insert_post['post_author'] = 1; //Admin 
$insert_post['post_category'] = array($kat_id);
$insert_post['post_content_filtered'] = false;
$inserted_id = wp_insert_post($insert_post);
add_post_meta($inserted_id, 'resim', $res);  
$part_say=f('<div class="partContent" id="part','">',$ani);	
	 for($i=0;$i<count($part_say);$i++) {
	             $part_linkler=f('<p><span id="more-3506"></span>'.$part_say[$i].'">','</div>',$ani);	
$veri=mysql_query("SELECT * FROM wp_posts where id='$inserted_id'");
$bulalim=mysql_fetch_array($veri);
$postum=$bulalim['post_content'];
if($i==count($part_say)-1){
$son="";
}else{
$son="<!--nextpage-->";
}
$tum_partlar=str_replace("/diziizletr-player.swf","https://www.4shared.com/flash/player.swf",$part_linkler['0']);

$tum_partlar=$postum.$tum_partlar;
$guncelle=mysql_query("UPDATE wp_posts set post_content='$tum_partlar' where id='$inserted_id'") or die(mysql_error());        
}
echo "<script language='javascript'>alert('".$basligim." Eklendi');history.go(-1);</script>";
}
}
?>
şimdide konuları çekiyor biri şu bot editliye bilirmi