Facebook
From a, 1 Year ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 231
  1. <?php
  2.  define("DEBUG", 0);
  3.  if(DEBUG) {
  4.   error_reporting(E_ALL);
  5.   ini_set("log_errors", 1);
  6.   ini_set("display_errors", "On");
  7.  } else {
  8.   error_reporting(0);
  9.   ini_set("log_errors", 0);
  10.   ini_set("display_errors", "Off");
  11.  }
  12.  
  13.  set_time_limit(0);
  14.  ignore_user_abort(TRUE);
  15.  
  16.  @ob_start();
  17.  @session_start();
  18.  @header("Content-Type: text/html; charset=utf-8");
  19.  
  20.  $users = Array(
  21.   Array(
  22.    'username' => 'admin',
  23.    'password' => '123456x'
  24.   ),
  25.   Array(
  26.    'username' => 'admin2',
  27.    'password' => '123456x'
  28.   )
  29.  );
  30.  
  31.  if(isset($_POST['submit'])) {
  32.   if(isset($_POST['username']) && isset($_POST['username'])) {
  33.    if(!empty($_POST['username']) && !empty($_POST['password'])) {
  34.     if(count($users) == 0) {
  35.      $error = Array(
  36.       'type'  => 'info',
  37.       'message' => 'Yönetici belirlenmemiş'
  38.      );
  39.     } else {
  40.      $login = false; $username = null;
  41.      foreach($users as $user) {
  42.       if($user['username'] == $_POST['username'] && $user['password'] == $_POST['password']) {
  43.        $login = true; $username = $user['username'];
  44.        break;
  45.       } else if($user['username'] == $_POST['username'] && $user['password'] != $_POST['password']) {
  46.        $error = Array(
  47.         'type'  => 'danger',
  48.         'message' => 'Kullanıcı bilgileri hatalı'
  49.        );
  50.       }
  51.      }
  52.  
  53.      if($login == true) {
  54.       $_SESSION['LOGIN'] = true;
  55.       $_SESSION['USERNAME'] = $username;
  56.       $_SESSION['HASH'] = md5($username . time());
  57.      } else if(!isset($error)) {
  58.       $error = Array(
  59.        'type'  => 'danger',
  60.        'message' => 'Kullanıcı bulunamadı'
  61.       );
  62.      }
  63.     }
  64.    } else {
  65.     $error = Array(
  66.      'type'  => 'danger',
  67.      'message' => 'Kullanıcı bilgileri eksik'
  68.     );
  69.    }
  70.   }
  71.  }
  72.  
  73.  if(isset($_REQUEST['logout'])) {
  74.   if(isset($_SESSION['LOGIN'])) {
  75.    if($_SESSION['HASH'] == $_REQUEST['logout']) {
  76.     unset($_SESSION['LOGIN'], $_SESSION['USERNAME'], $_SESSION['HASH']);
  77.     @session_destroy();
  78.    
  79.     $error = Array(
  80.      'type'  => 'info',
  81.      'message' => 'Başarı ile çıkış yapıldı'
  82.     );
  83.    }
  84.   } else {
  85.    $error = Array(
  86.     'type'  => 'warning',
  87.     'message' => 'Zaten çıkış yapmışsınız'
  88.    );
  89.   }
  90.  }
  91.  
  92.  class cURL {
  93.   public $headers;
  94.   public $options;
  95.   public $lastInfo;
  96.  
  97.   public function get_content($url, $request = null, $params = null) {
  98.    $ch = curl_init();
  99.    curl_setopt($ch, CURLOPT_URL, $url);
  100.    curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
  101.    if(!is_null($request) && !is_null($params)) {
  102.     curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);
  103.    // curl_setopt($ch, CURLOPT_POST, TRUE);
  104.     curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
  105.    }
  106.    @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  107.    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  108.    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  109.  
  110.    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
  111.    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3000);
  112.    curl_setopt($ch, CURLOPT_TIMEOUT, 3);
  113.    curl_setopt($ch, CURLOPT_TIMEOUT_MS, 3000);
  114.  
  115.    if(is_array($this->options)) {
  116.     curl_setopt_array($ch, $this->options);
  117.    }
  118.    $result = curl_exec($ch);
  119.    $this->lastInfo = curl_getinfo($ch);
  120.    curl_close($ch);
  121.    return $result;
  122.   }
  123.  }
  124.  
  125.  function parse($content, $start, $end) {
  126.   $output = explode($start, $content);
  127.   $output = explode($end, $output[1]);
  128.   return $output[0];
  129.  }
  130.  
  131.  function mtrim($string) {
  132.   return str_replace(array("r","n","t"," ", "  "), NULL, $string);
  133.  }
  134.  
  135.  function alert($type,$message,$dismiss = false) {
  136. ?>
  137.     >
  138.     <?php if($dismiss) { ?>
  139.      <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
  140.     &lt;?php } ?&gt;
  141.      <strong>Uyarı!</strong> &lt;?php echo $message; ?&gt;
  142.     </div>
  143. &lt;?php
  144.  }
  145.  
  146.  function findIframe($content, $index=0) {
  147.   $result = null;
  148.  
  149.   @error_reporting(0);
  150.   @ini_set("log_errors", 0);
  151.   @ini_set("display_errors", "Off");
  152.  
  153.   $doc = new DOMDocument();
  154.   if($doc->loadHTML($content)) {
  155.    $i = 0;
  156.    foreach($doc->getElementsByTagName('iframe') as $obj) {
  157.     if($index == $i) {
  158.      $result = $obj->getAttribute('src');
  159.      $result = (substr($result, 0, 2) == "//" ? "https:" . $result : $result);
  160.      break;
  161.     }
  162.     $i++;
  163.    }
  164.   }
  165.  
  166.   error_reporting(E_ALL);
  167.   ini_set("log_errors", 1);
  168.   ini_set("display_errors", "On");
  169.  
  170.   return $result;
  171.  }
  172.  
  173.  function generateCode($parts) {
  174.   $codes = array();
  175.   foreach($parts as $part) {
  176.    $codes[] = "&lt;!--baslik:{$part['title']}--&gt;rn&lt;iframe width='640' height='360' src='{$part['url']}' frameborder='0' marginwidth='0' marginheight='0' scrolling='no' allowfullscreen&gt;&lt;/iframe>";
  177.   }
  178.   return implode("rnrn&lt;!--nextpage--&gt;", $codes);
  179.  }
  180.  
  181.  function iconv2($tmp) {
  182.   return iconv("UTF-8", "ISO-8859-1", $tmp);
  183.  }
  184.  
  185.  function generateParts(&$parts,$index=0) {
  186.   global $furl;
  187.   $rand = rand(999,99999);
  188. ?&gt;
  189.      <div class="panel-group" id="accordion">
  190.        <div class="panel panel-default" >
  191.       <div class="panel-heading">
  192.         <h4 class="panel-title">
  193.        >YAPILAN İŞLEMLER</a>
  194.         </h4>
  195.       </div>
  196.       >
  197.         <div class="panel-body">
  198. &lt;?php
  199.   $c = new cURL();
  200.   $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  201.   $c->headers = array(
  202.    "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  203.    "accept-encoding: gzip, deflate", // , br
  204.    "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  205.    "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  206.    "upgrade-insecure-requests: 1",
  207.    "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  208.   );
  209.   $i = 0;
  210.   foreach($parts as $part) {
  211.    $part['url'] = (substr($part['url'], 0, 2) == "//" ? "https:" . $part['url'] : $part['url']);
  212.    if(substr_count($part['url'], 'fireplayer')) {
  213.     $c->options = array(CURLOPT_HEADER => FALSE, CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  214.     $c->headers = array(
  215.      "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  216.      "accept-encoding: gzip, deflate", // , br
  217.      "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  218.      "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  219.      "upgrade-insecure-requests: 1",
  220.      "referer: {$part['url']}",
  221.      "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",
  222.      "X-Requested-With: XMLHttpRequest"
  223.     );
  224.     list($url, $hash) = explode("fireplayer/video/", $part['url']);
  225.     $params = array(
  226.      "hash" => $hash,
  227.      "r"  => $furl
  228.     );
  229.     $content = json_decode($c->get_content($part['url'] . "?do=getVideo", "POST", urldecode(http_build_query($params))), true);
  230.     if(json_last_error() == JSON_ERROR_NONE) {
  231.      if(isset($content['videoSrc'])) {
  232.       echo "{$part['title']} verisi (fireplayer) çekildi<br/>"; @ob_flush(); flush();
  233.       $parts[$i]['url'] = $content['videoSrc'];
  234.      } else {
  235.       echo "{$part['title']} verisi mp4 (fireplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
  236.       unset($parts[$i]);
  237.      }
  238.     } else {
  239.      echo "{$part['title']} json verisi (fireplayer) bozuk oldugu için part silindi<br/>"; @ob_flush(); flush();
  240.      unset($parts[$i]);
  241.     }
  242.    } else if(substr_count($part['url'], 'replayerv3')) {
  243.     echo "{$part['title']} verisi mp4 (replayerv3) oldugu için part silindi<br/>"; @ob_flush(); flush();
  244.     unset($parts[$i]);
  245.    } else if(substr_count($part['url'], 'player/oynat/') || substr_count($part['url'], 'player/drive/') || substr_count($part['url'], 'player/vid/')) {
  246.     $c->headers = array(
  247.      "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  248.      "accept-encoding: gzip, deflate", // , br
  249.      "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  250.      "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  251.      "upgrade-insecure-requests: 1",
  252.      "referer: {$part['url']}",
  253.      "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  254.     );
  255.     $content = $c->get_content($part['url']);
  256.     if(substr_count($content, 'iframe')) {
  257.      $iframeUrl = findIframe($content,$index);
  258.      if(!empty($iframeUrl)) {
  259.       if(substr_count($iframeUrl, 'player/oynat') || substr_count($iframeUrl, 'player/drive') || substr_count($iframeUrl, 'player/vid')) {
  260.        $content = $c->get_content($iframeUrl);
  261.        if(substr_count($content, 'iframe')) {
  262.         $iframeUrl = findIframe($content);
  263.         if(!empty($iframeUrl)) {
  264.          echo "{$part['title']} verisi (phiplayer) çekildi<br/>"; @ob_flush(); flush();
  265.          $parts[$i]['url'] = $iframeUrl;
  266.         } else {
  267.          echo "{$part['title']} iframe (phiplayer) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
  268.          unset($parts[$i]);
  269.         }
  270.        } else {
  271.         echo "{$part['title']} verisi mp4 (frostplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
  272.         unset($parts[$i]);
  273.        }
  274.       } else {
  275.        echo "{$part['title']} verisi (frostplayer) çekildi<br/>"; @ob_flush(); flush();
  276.        $parts[$i]['url'] = $iframeUrl;
  277.       }
  278.      } else {
  279.       echo "{$part['title']} iframe (frostplayer) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
  280.       unset($parts[$i]);
  281.      }
  282.     } else {
  283.      echo "{$part['title']} verisi mp4 (frostplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
  284.      unset($parts[$i]);
  285.     }
  286.    } else if(substr_count($part['url'], 'player/url')) {
  287.     $c->options = array(CURLOPT_HEADER => TRUE, CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  288.     $c->headers = array(
  289.      "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  290.      "accept-encoding: gzip, deflate", // , br
  291.      "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  292.      "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  293.      "upgrade-insecure-requests: 1",
  294.      "referer: {$part['url']}",
  295.      "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  296.     );
  297.     $content = $c->get_content($part['url']);
  298.     if(preg_match('#Location: (.*)#', $content, $location_out)) {
  299.      echo "{$part['title']} verisi (frostplayer url) çekildi<br/>"; @ob_flush(); flush();
  300.      $parts[$i]['url'] = str_replace(array("r", "n"), null, $location_out[1]);
  301.     } else {
  302.      echo "{$part['title']} yönlenen url (frostplayer) bulunamadığı için part silindi<br/>"; @ob_flush(); flush();
  303.      unset($parts[$i]);
  304.     }
  305.    } else if(substr_count($part['url'], 'vmplayer')) {
  306.     preg_match_all('@/vmplayer/(.*?).html@is', $part['url'], $content_out, PREG_PATTERN_ORDER);
  307.     if(isset($content_out[1][0])) {
  308.      if(!empty($content_out[1][0])) {
  309.       echo "{$part['title']} verisi (vmplayer) çekildi<br/>"; @ob_flush(); flush();
  310.       $parts[$i]['url'] = "https://vidmoly.me/e/{$content_out[1][0]}";
  311.      } else {
  312.       echo "{$part['title']} verisi (vmplayer) boş olduğu için part silindi<br/>"; @ob_flush(); flush();
  313.       unset($parts[$i]);
  314.      }
  315.     } else {
  316.      echo "{$part['title']} verisi (vmplayer) olmadığı için part silindi<br/>"; @ob_flush(); flush();
  317.      unset($parts[$i]);
  318.     }
  319.    } else if(substr_count($part['url'], '/watch/?v=')) {
  320.     echo "{$part['title']} verisi (/watch/) özel m3u8 sunucusu olduğu için part silindi<br/>"; @ob_flush(); flush();
  321.     unset($parts[$i]);
  322.    } else if(substr_count($part['url'], 'yplayer.php?v=')) {
  323.     echo "{$part['title']} verisi (yplayer) özel m3u8 sunucusu olduğu için part silindi<br/>"; @ob_flush(); flush();
  324.     unset($parts[$i]);
  325.    } else if(substr_count($part['url'], 'watch.php?v=')) {
  326.     $c-&gt;headers = array(
  327.      "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  328.      "accept-encoding: gzip, deflate", // , br
  329.      "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  330.      "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  331.      "upgrade-insecure-requests: 1",
  332.      "referer: {$part['url']}",
  333.      "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  334.     );
  335.     $content = $c->get_content($part['url']);
  336.     if(substr_count($content, 'iframe')) {
  337.      $iframeUrl = findIframe($content,$index);
  338.      if(!empty($iframeUrl)) {
  339.       echo "{$part['title']} verisi (moviesone) çekildi<br/>"; @ob_flush(); flush();
  340.       $parts[$i]['url'] = $iframeUrl;
  341.      } else {
  342.       echo "{$part['title']} iframe (moviesone) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
  343.       unset($parts[$i]);
  344.      }
  345.     } else {
  346.      echo "{$part['title']} verisi mp4 (moviesone) oldugu için part silindi<br/>"; @ob_flush(); flush();
  347.      unset($parts[$i]);
  348.     }
  349.    } else if(substr_count($part['url'], 'player.netfullfilmizle.com/url/')) {
  350.     $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  351.     $c->headers = array(
  352.      "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  353.      "accept-encoding: gzip, deflate", // , br
  354.      "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  355.      "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  356.      "upgrade-insecure-requests: 1",
  357.      "referer: {$part['url']}",
  358.      "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  359.     );
  360.     $content = $c->get_content($part['url']);
  361.     if(substr_count($content, '[removed]')) {
  362.      preg_match_all('@[removed](unescape("(.*?)"));@is', $content, $content_out, PREG_PATTERN_ORDER);
  363.      $iframeUrl = findIframe(urldecode($content_out[1][0]));
  364.      if(!empty($iframeUrl)) {
  365.       if(substr_count($iframeUrl, '/watch/?v=')) {
  366.        echo "{$part['title']} verisi (Net Full Film İzle Player 3.2) (/watch/) özel m3u8 sunucusu olduğu için part silindi<br/>"; @ob_flush(); flush();
  367.        unset($parts[$i]);
  368.       } else {
  369.        echo "{$part['title']} verisi (Net Full Film İzle Player 3.2) çekildi<br/>"; @ob_flush(); flush();
  370.        $parts[$i]['url'] = $iframeUrl;
  371.       }
  372.      } else {
  373.       echo "{$part['title']} verisi (Net Full Film İzle Player 3.2) bulunamadı<br/>"; @ob_flush(); flush();
  374.      }
  375.     } else {
  376.      echo "{$part['title']} verisi mp4 (Net Full Film İzle Player 3.2) olduğu için silindi<br/>"; @ob_flush(); flush();
  377.      unset($parts[$i]);
  378.     }
  379.    }
  380.    $i++;
  381.   }
  382. ?&gt;
  383.         </div>
  384.       </div>
  385.        </div>
  386.      </div>
  387. &lt;?php
  388.  }
  389.  
  390.  foreach($_GET as $k=>$v) {
  391.   ${$k} = urldecode($v);
  392.  }
  393.  
  394.  foreach($_POST as $k=>$v) {
  395.   ${$k} = $v;
  396.  }
  397.  
  398.  $siteler = array(
  399.   "hdfilmcehennemi.com"  => "https://www.hdfilmcehennemi.com/",
  400.   "indirmedenfilmizle1.com" => "http://indirmedenfilmizle1.com",
  401.  // "filmakinesi.net"   => "https://filmakinesi.net",
  402.   "netfullfilmizle.com"  => "http://www.netfullfilmizle.com",
  403.   "ilkfullfilmizle.org"  => "https://ilkfullfilmizle.org",
  404.   "hdfilmcehennemi2.org"  => "http://hdfilmcehennemi2.org",
  405.   "filmizle.movie"   => "https://www.filmizle.movie"
  406.  );
  407. ?&gt;
  408. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  409. &lt;html  dir="ltr" lang="tr"&gt;
  410. &lt;head&gt;
  411.  &lt;meta http-equiv="Content-Type" c charset=UTF-8"/&gt;
  412.  &lt;meta http-equiv="content-language" c&gt;
  413.  &lt;meta name="referrer" c /&gt;
  414.  
  415.  &lt;meta name="viewport" c initial-scale=1, shrink-to-fit=no"&gt;
  416.  
  417.  &lt;title&gt;Bot&lt;/title&gt;
  418.  
  419.  &lt;!-- Latest compiled and minified CSS --&gt;
  420.  &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"&gt;
  421.  
  422.  &lt;!-- Optional theme --&gt;
  423.  &lt;link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous"&gt;
  424.  
  425.  &lt;link href="//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet"&gt;
  426.  
  427.  [removed][removed]
  428.  [removed][removed]
  429.  
  430.  &lt;!-- Latest compiled and minified JavaScript --&gt;
  431.  [removed][removed]
  432.  
  433.  [removed][removed]
  434.  
  435.  &lt;style type="text/css"&gt;
  436.   body {
  437.    padding-top: 54px;
  438.   }
  439.   @media (min-width: 992px) {
  440.    body {
  441.     padding-top: 56px;
  442.    }
  443.   }
  444.   .txt {
  445.    display: block;
  446.    padding: 9.5px;
  447.    margin: 0 0 10px;
  448.    font-size: 13px;
  449.    line-height: 1.42857143;
  450.    color: #333;
  451.    word-break: break-all;
  452.    word-wrap: break-word;
  453.    background-color: #f5f5f5;
  454.    border: 1px solid #ccc;
  455.    border-radius: 4px;
  456.    resize: vertical;
  457.    width:100%;
  458.    min-height:500px;
  459.   }
  460.  &lt;/style&gt;
  461. &lt;/head&gt;
  462. &lt;body&gt;
  463.  &lt;!-- Page Content --&gt;
  464.  <div class="container">
  465. &lt;?php
  466.  if(!isset($_SESSION['LOGIN'])) {
  467. ?&gt;
  468.   <div class="row">
  469.    <div class="col-md-4 col-md-offset-4">
  470.     <div class="login-panel panel panel-default">
  471.      <div class="panel-heading">
  472.        <h3 class="panel-title">Lüfen giriş yapın</h3>
  473.      </div>
  474.      <div class="panel-body">
  475.       >
  476.        <fieldset>
  477.         <div class="form-group">
  478.          &lt;input class="form-control" placeholder="Kullanıcı adı" value="" name="username" required="required" autofocus/&gt;
  479.         </div>
  480.         <div class="form-group">
  481.          &lt;input class="form-control" placeholder="Şifre" value="" name="password" type="password" required="required"/&gt;
  482.         </div>
  483. &lt;?php
  484.  if(isset($error)) {
  485. ?&gt;
  486.         <div class="form-group">
  487.          >
  488.           <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>&lt;?php echo $error['message']; ?&gt;
  489.          </div>
  490.         </div>
  491. &lt;?php
  492.  }
  493. ?&gt;
  494.         &lt;input name="submit" type="submit" value="Giriş" class="btn btn-lg btn-success btn-block"/&gt;
  495.        </fieldset>
  496.       &lt;/form&gt;
  497.      </div>
  498.     </div>
  499.    </div>
  500.   </div>
  501. &lt;?php
  502.  } else {
  503. ?&gt;
  504.   <div class="row">
  505.    <div class="col-lg-12">
  506.     >
  507.      <div class="form-group">
  508.       <select class="form-control" name="fsite" required>
  509.        <option value="">Site</option>
  510.        &lt;?php
  511.         foreach($siteler as $k=>$v) {
  512.          echo "<option value='{$k}'".(isset($fsite) ? ($k == $fsite ? " selected" : null) : null).">{$k}</option>";
  513.         }
  514.        ?&gt;
  515.       </select>
  516.      </div>
  517.      <div class="form-group">
  518.       >
  519.      </div>
  520.      <div class="form-group" align="right">
  521.       &lt;input type="hidden" name="submit" value="search"&gt;
  522.       <button type="submit" class="btn btn-success">Ara</button> <button type="reset" class="btn btn-default">Temizle</button>
  523.      </div>
  524.     &lt;/form&gt;
  525.  
  526.     &lt;?php
  527.     if(isset($submit)) {
  528.      if($submit == "search" && isset($fsite) && isset($fsearch)) {
  529.       if(in_array($fsite, array_keys($siteler)) && !empty($fsite) && !empty($fsearch)) {
  530.        echo "<h3>{$fsite} için {$fsearch} arama sonuçları</h3>"; @ob_flush(); flush();
  531.        $c = new cURL();
  532.        $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  533.        $c->headers = array(
  534.         "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  535.         "accept-encoding: gzip, deflate", // , br
  536.         "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  537.         "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  538.         "upgrade-insecure-requests: 1",
  539.         "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  540.        );
  541.        switch($fsite) {
  542.         case "hdfilmcehennemi.com":
  543.         /*
  544.          // patladı
  545.          $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
  546.          preg_match_all('@&lt;div class="poster poster-pop" data-original-title="(.*?)" data-types="(.*?)" data-cats="(.*?)" data-year="(.*?)" data-toggle="popover" data-trigger="manual" data-content="(.*?)"><a href="(.*?)">(.*?)data-src="(.*?)" alt="(.*?)" height="125px" width="119px" /><div class="poster-cover"><span class="poster-lang">(.*?)</span><h2 class="title">(.*?)</h2><div class="poster-imdb poster-imdb-top"><span>IMDb</span>(.*?)</div><div class="movies"></div></div><div class="poster-play"><i class="fa fa-play"></i></div></a></div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  547.          echo count($content_out[1]);
  548.          echo "&lt;textarea&gt;$content&lt;/textarea&gt;";
  549.         */
  550.          $content = $c->get_content("https://cse.google.com/cse.js?cx=015716483505879080032:ixt5mjxgo3i");
  551.          $content = json_decode(parse($content, '})(', ');'), true);
  552.  
  553.          $content = $c->get_content("https://cse.google.com/cse/element/v1?rsz=filtered_cse&num=50&hl=tr&source=gcsc&gss;=.com&cx=015716483505879080032:ixt5mjxgo3i&q=".urlencode($fsearch)."&safe=off&cse;_tok={$content['cse_token']}&sort;=&googlehost=www.google.com&callback=google.search.Search.csqr13989&nocache=1539844001450");
  554.          preg_match_all('@google.search.Search.(.*?)({(.*?)});@is', $content, $content_out, PREG_PATTERN_ORDER);
  555.          $content = json_decode('{'.$content_out[2][0].'}', true);
  556.          if(json_last_error() == JSON_ERROR_NONE) {
  557.           if(count($content['results'])) {
  558.            $j = 0;
  559.            foreach($content['results'] as $result) {
  560.             if(
  561.              !isset($result['richSnippet']['cseImage']['src']) ||
  562.              substr_count($result['url'], '/page/') ||
  563.              substr_count($result['url'], '/tag/') ||
  564.              in_array(str_replace(array("https://","http://","www."), null, $result['url']), array("hdfilmcehennemi.org/"))
  565.             ) {
  566.              continue;
  567.             }
  568.  
  569.             $url = str_replace('hdfilmcehennemi.org', 'hdfilmcehennemi.com', $result['url']);
  570.             $title = strip_tags($result['title']);
  571.             if(substr_count($title, '- hdfilmcehennemi')) {
  572.              $title = explode("- hdfilmcehennemi", $title)[0];
  573.             }
  574.             $image = str_replace('hdfilmcehennemi.org', 'hdfilmcehennemi.com', $result['richSnippet']['cseImage']['src']);
  575.  
  576.             if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
  577.  
  578.             $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$url}&ftitle;={$title}";
  579.             echo "<div class='col-lg-2'  5px;'><p>{$title}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$image}'></a></div>";
  580.  
  581.             $j++;
  582.             if($j % 5 == 0 || $result == end($content['results'])) { echo '</div>'; }
  583.             @ob_flush(); flush();
  584.            }
  585.           } else {
  586.            alert&#40;"warning", "Google Search API arama sonucu boş"&#41;;
  587.           }
  588.          } else {
  589.           alert&#40;"warning", "json hatası (Google Search API&#41;");
  590.          }
  591.          break;
  592.         case "indirmedenfilmizle1.com":
  593.          $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
  594.          preg_match_all('@&lt;div class="movie-preview-content"><div class="movie-poster">(.*?)<a href="(.*?)">(.*?)<img src="(.*?)" alt="(.*?)" /></a></div>(.*?)</div></div></div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  595.          $j = 0;
  596.          for($i=0;$i<count($content_out[1]);$i++) {
  597.            if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
  598.  
  599.           $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[2][$i]}&ftitle;={$content_out[5][$i]}";
  600.           echo "<div class='col-lg-2'  5px;'><p>{$content_out[5][$i]}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$content_out[4][$i]}'></a></div>";
  601.  
  602.           $j++;
  603.           if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
  604.           @ob_flush(); flush();
  605.          }
  606.          break;
  607.         case "filmakinesi.net":
  608.          $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
  609.          preg_match_all('@&lt;article class="post-(.*?)"><a href="(.*?)" rel="bookmark" title="(.*?)"><img src="(.*?)" alt="(.*?)" height="205px" width="147px" /></a><h2><a href="(.*?)" rel="bookmark" title="(.*?)">(.*?)</a></h2></article>@is', $content, $content_out, PREG_PATTERN_ORDER);
  610.          $j = 0;
  611.          echo "&lt;textarea&gt;$content&lt;/textarea&gt;";
  612.          for($i=0;$i<count($content_out[1]);$i++) {
  613.            if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
  614.  
  615.           $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[2][$i]}&ftitle;={$content_out[3][$i]}";
  616.           echo "<div class='col-lg-2'  5px;'><p>{$content_out[3][$i]}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$content_out[4][$i]}'></a></div>";
  617.  
  618.           $j++;
  619.           if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
  620.           @ob_flush(); flush();
  621.          }
  622.          break;
  623.         case "ilkfullfilmizle.org":
  624.         case "hdfilmcehennemi2.org":
  625.         case "netfullfilmizle.com":
  626.          if($fsite == "ilkfullfilmizle.org") {
  627.           $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
  628.           preg_match_all('@&lt;div class="moviefilm">(.*?)<img src="(.*?)" alt="(.*?)" height="125px" width="119px" /></a><div class="movief"><a href="(.*?)">(.*?)</a></div>(.*?)<div class="imdblogo"></div>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  629.          } else if($fsite == "hdfilmcehennemi2.org" || $fsite == "netfullfilmizle.com") {
  630.           if($fsite == "hdfilmcehennemi2.org") {
  631.            $content = mtrim($c->get_content($siteler[$fsite] . "/?arama=" . urlencode($fsearch)));
  632.           } else if($fsite == "netfullfilmizle.com") {
  633.            $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . str_replace('+', '+', urlencode($fsearch))));
  634.           }
  635.           preg_match_all('@&lt;div class="moviefilm"><a href="(.*?)" src="(.*?)" alt="(.*?)" height="125px" width="119px"></a>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  636.          }
  637.  
  638.          $j = 0;
  639.          for($i=0;$i<count($content_out[1]);$i++) {
  640.            if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
  641.  
  642.           if($fsite == "ilkfullfilmizle.org") {
  643.            $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[4][$i]}&ftitle;={$content_out[5][$i]}";
  644.            echo "<div class='col-lg-2'  5px;'><p>{$content_out[5][$i]}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$content_out[2][$i]}'></a></div>";
  645.           } else if($fsite == "hdfilmcehennemi2.org" || $fsite == "netfullfilmizle.com") {
  646.            $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[1][$i]}&ftitle;={$content_out[4][$i]}";
  647.            echo "<div class='col-lg-2'  5px;'><p>{$content_out[4][$i]}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$content_out[3][$i]}'></a></div>";
  648.           }
  649.  
  650.           $j++;
  651.           if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
  652.           @ob_flush(); flush();
  653.          }
  654.          break;
  655.         case "filmizle.movie":
  656.          $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
  657.          preg_match_all('@&lt;div class="ykutu2"><a href="(.*?)" title="(.*?)">(.*?)<img class="lazy" data-original="(.*?)" alt="(.*?)" />(.*?)<div class="ybk-ust">(.*?)</div></a></div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  658.  
  659.          $j = 0;
  660.          for($i=0;$i<count($content_out[1]);$i++) {
  661.            if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
  662.  
  663.           $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[1][$i]}&ftitle;={$content_out[2][$i]}";
  664.           echo "<div class='col-lg-2'  5px;'><p>{$content_out[2][$i]}</p><a href='{$furl}' target='_blank'><image  border='0' src='{$content_out[4][$i]}'></a></div>";
  665.  
  666.           $j++;
  667.           if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
  668.           @ob_flush(); flush();
  669.          }
  670.          break;
  671.        }
  672.       }
  673.      } else if($submit == "fetch" && isset($fsite) && isset($fsearch) && isset($furl) && isset($ftitle)) {
  674.       if(in_array($fsite, array_keys($siteler)) && !empty($fsite) && !empty($fsearch) && !empty($furl) && !empty($ftitle)) {
  675.        $parts = array();
  676.        echo "<h3>{$fsite} için <a href='{$furl}' target='_blakn'>{$ftitle}</a> part sonuçları</h3>"; @ob_flush(); flush();
  677.        $c = new cURL();
  678.        $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
  679.        $c->headers = array(
  680.         "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
  681.         "accept-encoding: gzip, deflate", // , br
  682.         "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
  683.         "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
  684.         "upgrade-insecure-requests: 1",
  685.         "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"
  686.        );
  687.        $content = mtrim($c->get_content($furl));
  688.        switch($fsite) {
  689.         case "hdfilmcehennemi.com":
  690.          preg_match_all('@<ul class="hdc-parts" >(.*?)</ul>@is', $content, $content_out, PREG_PATTERN_ORDER);
  691.          @error_reporting(0);
  692.          @ini_set("log_errors", 0);
  693.          @ini_set("display_errors", "Off");
  694.  
  695.          $doc = new DOMDocument();
  696.          if($doc->loadHTML($content_out[1][0])) {
  697.           foreach($doc->getElementsByTagName('a') as $obj) {
  698.            $parts[] = array(
  699.             "title" => iconv2($obj->nodeValue),
  700.             "url" => $obj->getAttribute('href')
  701.            );
  702.           }
  703.          }
  704.  
  705.          error_reporting(E_ALL);
  706.          ini_set("log_errors", 1);
  707.          ini_set("display_errors", "On");
  708.  
  709.          if(count($parts)) {
  710.           $iframeUrl = null;
  711.           if(substr_count($content, '<div id="player">')) {
  712.            preg_match_all('@<div id="player">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  713.            $iframeUrl = findIframe($content_out[1][0]);
  714.           } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  715.            $iframeUrl = findIframe($content_out[2][0]);
  716.           } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  717.            $iframeUrl = findIframe($content_out[2][0]);
  718.           }
  719.           if(!empty($iframeUrl)) {
  720.            $parts[0]['url'] = $iframeUrl;
  721.           } else {
  722.            preg_match_all('@<div id="player" class="(.*?)">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  723.            preg_match_all('@[removed](.*?)= '(.*?)';[removed]@is', $content_out[2][0], $content_out, PREG_PATTERN_ORDER);
  724.            $iframeUrl = str_replace(array("<",">"), null, findIframe(base64_decode($content_out[2][0])));
  725.            if(!empty($iframeUrl)) {
  726.             $parts[0]['url'] = $iframeUrl;
  727.            }
  728.           }
  729.  
  730.           $i = 0;
  731.           foreach($parts as $part) {
  732.            if($part != reset($parts)) {
  733.             $content = mtrim($c->get_content($part['url']));
  734.             $iframeUrl = null;
  735.             if(substr_count($content, '<div id="player">')) {
  736.              preg_match_all('@<div id="player">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  737.              $iframeUrl = findIframe($content_out[1][0]);
  738.             } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  739.              $iframeUrl = findIframe($content_out[2][0]);
  740.             } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  741.              $iframeUrl = findIframe($content_out[2][0]);
  742.             }
  743.             if(!empty($iframeUrl)) {
  744.              $parts[$i]['url'] = $iframeUrl;
  745.             } else {
  746.              preg_match_all('@<div id="player" class="(.*?)">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  747.              preg_match_all('@[removed](.*?)= '(.*?)';[removed]@is', $content_out[2][0], $content_out, PREG_PATTERN_ORDER);
  748.              $iframeUrl = str_replace(array("<",">"), null, findIframe(base64_decode($content_out[2][0])));
  749.              if(!empty($iframeUrl)) {
  750.               $parts[$i]['url'] = $iframeUrl;
  751.              }
  752.             }
  753.            }
  754.            $i++;
  755.           }
  756.  
  757.           generateParts($parts,0);
  758.  
  759.           echo '<div class="row"><div class="col-lg-12">&lt;textarea class="txt"&gt;'.generateCode($parts).'&lt;/textarea&gt;&lt;/div></div>'; @ob_flush(); flush();
  760.          } else {
  761.           alert&#40;"warning", "Çekilecek herhangi bir part bulunamadı"&#41;;
  762.          }
  763.          break;
  764.         case "indirmedenfilmizle1.com":
  765.          // ilk part
  766.          preg_match_all('@<div class="keremiya_part">(.*?)<span>(.*?)</span>@is', $content, $content_out1, PREG_PATTERN_ORDER);
  767.          $parts[] = array(
  768.           "title" => $content_out1[2][0],
  769.           "url" => findIframe($content)
  770.          );
  771.  
  772.          // diğer partlar
  773.          $content = parse($content, '<div class="keremiya_part">', '</div>');
  774.          preg_match_all('@<a href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
  775.          for($i=0;$i<count($content_out[1]);$i++) {
  776.           $parts[] = array(
  777.            "title" => $content_out[2][$i],
  778.            "url" => $content_out[1][$i]
  779.           );
  780.          }
  781.  
  782.          if(count($parts)) {
  783.           $i = 0;
  784.           foreach($parts as $part) {
  785.            if($part != reset($parts)) {
  786.             $content = mtrim($c->get_content($part['url']));
  787.             $iframeUrl = findIframe($content);
  788.             if(!empty($iframeUrl)) {
  789.              $parts[$i]['url'] = $iframeUrl;
  790.             } else {
  791.             // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
  792.             }
  793.            }
  794.            $i++;
  795.           }
  796.  
  797.           generateParts($parts,0);
  798.  
  799.           echo '<div class="row"><div class="col-lg-12">&lt;textarea class="txt"&gt;'.generateCode($parts).'&lt;/textarea&gt;&lt;/div></div>'; @ob_flush(); flush();
  800.          } else {
  801.           alert&#40;"warning", "Çekilecek herhangi bir part bulunamadı"&#41;;
  802.          }
  803.          break;
  804.         case "filmakinesi.net":
  805.          break;
  806.         case "ilkfullfilmizle.org":
  807.         case "hdfilmcehennemi2.org":
  808.         case "netfullfilmizle.com":
  809.          preg_match_all('@<div class="keremiya_part">(.*?)<span>(.*?)</span>@is', $content, $content_out1, PREG_PATTERN_ORDER);
  810.          $parts[] = array(
  811.           "title" => $content_out1[2][0],
  812.           "url" => findIframe($content)
  813.          );
  814.  
  815.          // diğer partlar
  816.          $content = parse($content, '<div class="keremiya_part">', '</div>');
  817.          if($fsite == "ilkfullfilmizle.org" || $fsite == "netfullfilmizle.com") {
  818.           preg_match_all('@<a href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
  819.          } else if($fsite == "hdfilmcehennemi2.org") {
  820.           preg_match_all('@<a rel="nofollow" href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
  821.          }
  822.          for($i=0;$i<count($content_out[1]);$i++) {
  823.           $parts[] = array(
  824.            "title" => $content_out[2][$i],
  825.            "url" => $content_out[1][$i]
  826.           );
  827.          }
  828.  
  829.          if(count($parts)) {
  830.           $i = 0;
  831.           foreach($parts as $part) {
  832.            if($part != reset($parts)) {
  833.             $content = mtrim($c->get_content($part['url']));
  834.             $iframeUrl = findIframe($content);
  835.             if(!empty($iframeUrl)) {
  836.              $parts[$i]['url'] = $iframeUrl;
  837.             } else {
  838.             // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
  839.             }
  840.            }
  841.            $i++;
  842.           }
  843.  
  844.           generateParts($parts,0);
  845.  
  846.           echo '<div class="row"><div class="col-lg-12">&lt;textarea class="txt"&gt;'.generateCode($parts).'&lt;/textarea&gt;&lt;/div></div>'; @ob_flush(); flush();
  847.          } else {
  848.           alert&#40;"warning", "Çekilecek herhangi bir part bulunamadı"&#41;;
  849.          }
  850.         // echo '<pre>'.print_r($parts,true).'</pre>';
  851.         // echo "&lt;textarea&gt;$content&lt;/textarea&gt;";
  852.          break;
  853.         case "filmizle.movie":
  854.          $type = 0;
  855.          if(substr_count($content, '<div class="ybolumler"><p><b>')) {
  856.           $type = 2;
  857.           preg_match_all('@<div class="ybolumler"><p><b>Türkçe Dublaj(.*?)</b><b>Altyazılı(.*?)</b></p><div class="ybolumsag">(.*?)<div class="tmz"></div>(.*?)</div></div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  858.          } else if(substr_count($content, '<div class="bolumler">')) {
  859.           $type = 1;
  860.           preg_match_all('@<div class="bolumler">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
  861.          }
  862.  
  863.          if(isset($content_out[1][0])) {
  864.           if(!empty($content_out[1][0])) {
  865.            @error_reporting(0);
  866.            @ini_set("log_errors", 0);
  867.            @ini_set("display_errors", "Off");
  868.  
  869.            if($type == 1) {
  870.             $doc = new DOMDocument();
  871.             if($doc->loadHTML($content_out[1][0])) {
  872.              foreach($doc->getElementsByTagName('a') as $obj) {
  873.               $parts[] = array(
  874.                "title" => $obj->nodeValue,
  875.                "url" => $obj->getAttribute('href')
  876.               );
  877.              }
  878.             }
  879.            } else if($type == 2) {
  880.             $doc = new DOMDocument();
  881.             if($doc->loadHTML($content_out[3][0])) {
  882.              foreach($doc->getElementsByTagName('a') as $obj) {
  883.               $parts[] = array(
  884.                "title" => $obj->nodeValue,
  885.                "url" => $obj->getAttribute('href')
  886.               );
  887.              }
  888.             }
  889.  
  890.             $parts2 = array();
  891.             $doc = new DOMDocument();
  892.             if($doc->loadHTML($content_out[4][0])) {
  893.              foreach($doc->getElementsByTagName('a') as $obj) {
  894.               $parts2[] = array(
  895.                "title" => $obj->nodeValue,
  896.                "url" => $obj->getAttribute('href')
  897.               );
  898.              }
  899.             }
  900.            }
  901.  
  902.            error_reporting(E_ALL);
  903.            ini_set("log_errors", 1);
  904.            ini_set("display_errors", "On");
  905.           }
  906.          }
  907.  
  908.          if(count($parts)) {
  909.           $iframeUrl = findIframe($content);
  910.           if(!empty($iframeUrl)) {
  911.            $parts[0]['url'] = $iframeUrl;
  912.           }
  913.  
  914.           $i = 0;
  915.           foreach($parts as $part) {
  916.            if($part != reset($parts)) {
  917.             $content = mtrim($c->get_content($part['url']));
  918.             $iframeUrl = findIframe($content);
  919.             if(!empty($iframeUrl)) {
  920.              $parts[$i]['url'] = $iframeUrl;
  921.             } else {
  922.             // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
  923.             }
  924.            }
  925.            $i++;
  926.           }
  927.  
  928.           if($type == 2) {
  929.            $i = 0;
  930.            foreach($parts2 as $part) {
  931.             $content = mtrim($c->get_content($part['url']));
  932.             $iframeUrl = findIframe($content);
  933.             if(!empty($iframeUrl)) {
  934.              $parts2[$i]['url'] = $iframeUrl;
  935.             } else {
  936.             // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
  937.             }
  938.             $i++;
  939.            }
  940.  
  941.            echo "<h3>Türkçe Dublaj</h3>"; @ob_flush(); flush();
  942.           }
  943.  
  944.           generateParts($parts,0);
  945.           echo '<div class="row"><div class="col-lg-12">&lt;textarea class="txt"&gt;'.generateCode($parts).'&lt;/textarea&gt;&lt;/div></div>'; @ob_flush(); flush();
  946.  
  947.           if($type == 2) {
  948.            echo "<h3>Altyazılı</h3>"; @ob_flush(); flush();
  949.            generateParts($parts2,0);
  950.            echo '<div class="row"><div class="col-lg-12">&lt;textarea class="txt"&gt;'.generateCode($parts2).'&lt;/textarea&gt;&lt;/div></div>'; @ob_flush(); flush();
  951.           }
  952.          } else {
  953.           alert&#40;"warning", "Çekilecek herhangi bir part bulunamadı"&#41;;
  954.          }
  955.          break;
  956.        }
  957.       } else {
  958.        alert&#40;"warning", "Veriler boş veya yanlış girilmiş"&#41;;
  959.       }
  960.      } else if($submit == "Giriş") {
  961.       alert&#40;"info", "İşlem yapmak istediğiniz siteyi seçip aranacak kelimeyi girin", true&#41;;
  962.      } else {
  963.       alert&#40;"warning", "Veriler eksik veya yanlış girilmiş (1&#41;");
  964.      }
  965.     } else {
  966.      alert&#40;"info", "İşlem yapmak istediğiniz siteyi seçip aranacak kelimeyi girin", true&#41;;
  967.     }
  968.     ?&gt;
  969.    </div>
  970.   </div>
  971. &lt;?php
  972.  }
  973. ?&gt;
  974.   <div class="row">
  975.    <div class="col-lg-12">
  976.     <div align="center">
  977.      <a href="http://www.r10.net/members/79475-neron.html" target="_blank">R10 Neron</a> | <a href="skype:neronsilence?chat">Skype neronsilence</a>
  978.     </div>
  979.     ><i class="fa fa-sign-out" aria-hidden="true"></i> Çıkış yap</a>
  980.    </div>
  981.   </div>
  982.  </div>
  983. &lt;?php
  984. @ob_end_flush();
  985. ?&gt;