- <?php
- define("DEBUG", 0);
- if(DEBUG) {
- error_reporting(E_ALL);
- ini_set("log_errors", 1);
- ini_set("display_errors", "On");
- } else {
- error_reporting(0);
- ini_set("log_errors", 0);
- ini_set("display_errors", "Off");
- }
- set_time_limit(0);
- ignore_user_abort(TRUE);
- @ob_start();
- @session_start();
- @header("Content-Type: text/html; charset=utf-8");
- $users = Array(
- Array(
- 'username' => 'admin',
- 'password' => '123456x'
- ),
- Array(
- 'username' => 'admin2',
- 'password' => '123456x'
- )
- );
- if(isset($_POST['submit'])) {
- if(isset($_POST['username']) && isset($_POST['username'])) {
- if(!empty($_POST['username']) && !empty($_POST['password'])) {
- if(count($users) == 0) {
- $error = Array(
- 'type' => 'info',
- 'message' => 'Yönetici belirlenmemiş'
- );
- } else {
- $login = false; $username = null;
- foreach($users as $user) {
- if($user['username'] == $_POST['username'] && $user['password'] == $_POST['password']) {
- $login = true; $username = $user['username'];
- break;
- } else if($user['username'] == $_POST['username'] && $user['password'] != $_POST['password']) {
- $error = Array(
- 'type' => 'danger',
- 'message' => 'Kullanıcı bilgileri hatalı'
- );
- }
- }
- if($login == true) {
- $_SESSION['LOGIN'] = true;
- $_SESSION['USERNAME'] = $username;
- $_SESSION['HASH'] = md5($username . time());
- } else if(!isset($error)) {
- $error = Array(
- 'type' => 'danger',
- 'message' => 'Kullanıcı bulunamadı'
- );
- }
- }
- } else {
- $error = Array(
- 'type' => 'danger',
- 'message' => 'Kullanıcı bilgileri eksik'
- );
- }
- }
- }
- if(isset($_REQUEST['logout'])) {
- if(isset($_SESSION['LOGIN'])) {
- if($_SESSION['HASH'] == $_REQUEST['logout']) {
- unset($_SESSION['LOGIN'], $_SESSION['USERNAME'], $_SESSION['HASH']);
- @session_destroy();
- $error = Array(
- 'type' => 'info',
- 'message' => 'Başarı ile çıkış yapıldı'
- );
- }
- } else {
- $error = Array(
- 'type' => 'warning',
- 'message' => 'Zaten çıkış yapmışsınız'
- );
- }
- }
- class cURL {
- public $headers;
- public $options;
- public $lastInfo;
- public function get_content($url, $request = null, $params = null) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);
- if(!is_null($request) && !is_null($params)) {
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);
- // curl_setopt($ch, CURLOPT_POST, TRUE);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
- }
- @curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
- curl_setopt($ch, CURLOPT_CONNECTTIMEOUT_MS, 3000);
- curl_setopt($ch, CURLOPT_TIMEOUT, 3);
- curl_setopt($ch, CURLOPT_TIMEOUT_MS, 3000);
- if(is_array($this->options)) {
- curl_setopt_array($ch, $this->options);
- }
- $result = curl_exec($ch);
- $this->lastInfo = curl_getinfo($ch);
- curl_close($ch);
- return $result;
- }
- }
- function parse($content, $start, $end) {
- $output = explode($start, $content);
- $output = explode($end, $output[1]);
- return $output[0];
- }
- function mtrim($string) {
- return str_replace(array("r","n","t"," ", " "), NULL, $string);
- }
- function alert($type,$message,$dismiss = false) {
- ?>
- >
- <?php if($dismiss) { ?>
- <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
- <?php } ?>
- <strong>Uyarı!</strong> <?php echo $message; ?>
- </div>
- <?php
- }
- function findIframe($content, $index=0) {
- $result = null;
- @error_reporting(0);
- @ini_set("log_errors", 0);
- @ini_set("display_errors", "Off");
- $doc = new DOMDocument();
- if($doc->loadHTML($content)) {
- $i = 0;
- foreach($doc->getElementsByTagName('iframe') as $obj) {
- if($index == $i) {
- $result = $obj->getAttribute('src');
- $result = (substr($result, 0, 2) == "//" ? "https:" . $result : $result);
- break;
- }
- $i++;
- }
- }
- error_reporting(E_ALL);
- ini_set("log_errors", 1);
- ini_set("display_errors", "On");
- return $result;
- }
- function generateCode($parts) {
- $codes = array();
- foreach($parts as $part) {
- $codes[] = "<!--baslik:{$part['title']}-->rn<iframe width='640' height='360' src='{$part['url']}' frameborder='0' marginwidth='0' marginheight='0' scrolling='no' allowfullscreen></iframe>";
- }
- return implode("rnrn<!--nextpage-->", $codes);
- }
- function iconv2($tmp) {
- return iconv("UTF-8", "ISO-8859-1", $tmp);
- }
- function generateParts(&$parts,$index=0) {
- global $furl;
- $rand = rand(999,99999);
- ?>
- <div class="panel-group" id="accordion">
- <div class="panel panel-default" >
- <div class="panel-heading">
- <h4 class="panel-title">
- >YAPILAN İŞLEMLER</a>
- </h4>
- </div>
- >
- <div class="panel-body">
- <?php
- $c = new cURL();
- $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "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"
- );
- $i = 0;
- foreach($parts as $part) {
- $part['url'] = (substr($part['url'], 0, 2) == "//" ? "https:" . $part['url'] : $part['url']);
- if(substr_count($part['url'], 'fireplayer')) {
- $c->options = array(CURLOPT_HEADER => FALSE, CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "referer: {$part['url']}",
- "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",
- "X-Requested-With: XMLHttpRequest"
- );
- list($url, $hash) = explode("fireplayer/video/", $part['url']);
- $params = array(
- "hash" => $hash,
- "r" => $furl
- );
- $content = json_decode($c->get_content($part['url'] . "?do=getVideo", "POST", urldecode(http_build_query($params))), true);
- if(json_last_error() == JSON_ERROR_NONE) {
- if(isset($content['videoSrc'])) {
- echo "{$part['title']} verisi (fireplayer) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = $content['videoSrc'];
- } else {
- echo "{$part['title']} verisi mp4 (fireplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} json verisi (fireplayer) bozuk oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else if(substr_count($part['url'], 'replayerv3')) {
- echo "{$part['title']} verisi mp4 (replayerv3) oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- } else if(substr_count($part['url'], 'player/oynat/') || substr_count($part['url'], 'player/drive/') || substr_count($part['url'], 'player/vid/')) {
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "referer: {$part['url']}",
- "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"
- );
- $content = $c->get_content($part['url']);
- if(substr_count($content, 'iframe')) {
- $iframeUrl = findIframe($content,$index);
- if(!empty($iframeUrl)) {
- if(substr_count($iframeUrl, 'player/oynat') || substr_count($iframeUrl, 'player/drive') || substr_count($iframeUrl, 'player/vid')) {
- $content = $c->get_content($iframeUrl);
- if(substr_count($content, 'iframe')) {
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- echo "{$part['title']} verisi (phiplayer) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = $iframeUrl;
- } else {
- echo "{$part['title']} iframe (phiplayer) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} verisi mp4 (frostplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} verisi (frostplayer) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = $iframeUrl;
- }
- } else {
- echo "{$part['title']} iframe (frostplayer) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} verisi mp4 (frostplayer) oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else if(substr_count($part['url'], 'player/url')) {
- $c->options = array(CURLOPT_HEADER => TRUE, CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "referer: {$part['url']}",
- "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"
- );
- $content = $c->get_content($part['url']);
- if(preg_match('#Location: (.*)#', $content, $location_out)) {
- echo "{$part['title']} verisi (frostplayer url) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = str_replace(array("r", "n"), null, $location_out[1]);
- } else {
- echo "{$part['title']} yönlenen url (frostplayer) bulunamadığı için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else if(substr_count($part['url'], 'vmplayer')) {
- preg_match_all('@/vmplayer/(.*?).html@is', $part['url'], $content_out, PREG_PATTERN_ORDER);
- if(isset($content_out[1][0])) {
- if(!empty($content_out[1][0])) {
- echo "{$part['title']} verisi (vmplayer) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = "https://vidmoly.me/e/{$content_out[1][0]}";
- } else {
- echo "{$part['title']} verisi (vmplayer) boş olduğu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} verisi (vmplayer) olmadığı için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else if(substr_count($part['url'], '/watch/?v=')) {
- echo "{$part['title']} verisi (/watch/) özel m3u8 sunucusu olduğu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- } else if(substr_count($part['url'], 'yplayer.php?v=')) {
- echo "{$part['title']} verisi (yplayer) özel m3u8 sunucusu olduğu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- } else if(substr_count($part['url'], 'watch.php?v=')) {
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "referer: {$part['url']}",
- "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"
- );
- $content = $c->get_content($part['url']);
- if(substr_count($content, 'iframe')) {
- $iframeUrl = findIframe($content,$index);
- if(!empty($iframeUrl)) {
- echo "{$part['title']} verisi (moviesone) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = $iframeUrl;
- } else {
- echo "{$part['title']} iframe (moviesone) verisi boş oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else {
- echo "{$part['title']} verisi mp4 (moviesone) oldugu için part silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- } else if(substr_count($part['url'], 'player.netfullfilmizle.com/url/')) {
- $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "referer: {$part['url']}",
- "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"
- );
- $content = $c->get_content($part['url']);
- if(substr_count($content, '[removed]')) {
- preg_match_all('@[removed](unescape("(.*?)"));@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe(urldecode($content_out[1][0]));
- if(!empty($iframeUrl)) {
- if(substr_count($iframeUrl, '/watch/?v=')) {
- 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();
- unset($parts[$i]);
- } else {
- echo "{$part['title']} verisi (Net Full Film İzle Player 3.2) çekildi<br/>"; @ob_flush(); flush();
- $parts[$i]['url'] = $iframeUrl;
- }
- } else {
- echo "{$part['title']} verisi (Net Full Film İzle Player 3.2) bulunamadı<br/>"; @ob_flush(); flush();
- }
- } else {
- echo "{$part['title']} verisi mp4 (Net Full Film İzle Player 3.2) olduğu için silindi<br/>"; @ob_flush(); flush();
- unset($parts[$i]);
- }
- }
- $i++;
- }
- ?>
- </div>
- </div>
- </div>
- </div>
- <?php
- }
- foreach($_GET as $k=>$v) {
- ${$k} = urldecode($v);
- }
- foreach($_POST as $k=>$v) {
- ${$k} = $v;
- }
- $siteler = array(
- "hdfilmcehennemi.com" => "https://www.hdfilmcehennemi.com/",
- "indirmedenfilmizle1.com" => "http://indirmedenfilmizle1.com",
- // "filmakinesi.net" => "https://filmakinesi.net",
- "netfullfilmizle.com" => "http://www.netfullfilmizle.com",
- "ilkfullfilmizle.org" => "https://ilkfullfilmizle.org",
- "hdfilmcehennemi2.org" => "http://hdfilmcehennemi2.org",
- "filmizle.movie" => "https://www.filmizle.movie"
- );
- ?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html dir="ltr" lang="tr">
- <head>
- <meta http-equiv="Content-Type" c charset=UTF-8"/>
- <meta http-equiv="content-language" c>
- <meta name="referrer" c />
- <meta name="viewport" c initial-scale=1, shrink-to-fit=no">
- <title>Bot</title>
- <!-- Latest compiled and minified CSS -->
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
- <!-- Optional theme -->
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
- <link href="//maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" rel="stylesheet">
- [removed][removed]
- [removed][removed]
- <!-- Latest compiled and minified JavaScript -->
- [removed][removed]
- [removed][removed]
- <style type="text/css">
- body {
- padding-top: 54px;
- }
- @media (min-width: 992px) {
- body {
- padding-top: 56px;
- }
- }
- .txt {
- display: block;
- padding: 9.5px;
- margin: 0 0 10px;
- font-size: 13px;
- line-height: 1.42857143;
- color: #333;
- word-break: break-all;
- word-wrap: break-word;
- background-color: #f5f5f5;
- border: 1px solid #ccc;
- border-radius: 4px;
- resize: vertical;
- width:100%;
- min-height:500px;
- }
- </style>
- </head>
- <body>
- <!-- Page Content -->
- <div class="container">
- <?php
- if(!isset($_SESSION['LOGIN'])) {
- ?>
- <div class="row">
- <div class="col-md-4 col-md-offset-4">
- <div class="login-panel panel panel-default">
- <div class="panel-heading">
- <h3 class="panel-title">Lüfen giriş yapın</h3>
- </div>
- <div class="panel-body">
- >
- <fieldset>
- <div class="form-group">
- <input class="form-control" placeholder="Kullanıcı adı" value="" name="username" required="required" autofocus/>
- </div>
- <div class="form-group">
- <input class="form-control" placeholder="Şifre" value="" name="password" type="password" required="required"/>
- </div>
- <?php
- if(isset($error)) {
- ?>
- <div class="form-group">
- >
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><?php echo $error['message']; ?>
- </div>
- </div>
- <?php
- }
- ?>
- <input name="submit" type="submit" value="Giriş" class="btn btn-lg btn-success btn-block"/>
- </fieldset>
- </form>
- </div>
- </div>
- </div>
- </div>
- <?php
- } else {
- ?>
- <div class="row">
- <div class="col-lg-12">
- >
- <div class="form-group">
- <select class="form-control" name="fsite" required>
- <option value="">Site</option>
- <?php
- foreach($siteler as $k=>$v) {
- echo "<option value='{$k}'".(isset($fsite) ? ($k == $fsite ? " selected" : null) : null).">{$k}</option>";
- }
- ?>
- </select>
- </div>
- <div class="form-group">
- >
- </div>
- <div class="form-group" align="right">
- <input type="hidden" name="submit" value="search">
- <button type="submit" class="btn btn-success">Ara</button> <button type="reset" class="btn btn-default">Temizle</button>
- </div>
- </form>
- <?php
- if(isset($submit)) {
- if($submit == "search" && isset($fsite) && isset($fsearch)) {
- if(in_array($fsite, array_keys($siteler)) && !empty($fsite) && !empty($fsearch)) {
- echo "<h3>{$fsite} için {$fsearch} arama sonuçları</h3>"; @ob_flush(); flush();
- $c = new cURL();
- $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "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"
- );
- switch($fsite) {
- case "hdfilmcehennemi.com":
- /*
- // patladı
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
- preg_match_all('@<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);
- echo count($content_out[1]);
- echo "<textarea>$content</textarea>";
- */
- $content = $c->get_content("https://cse.google.com/cse.js?cx=015716483505879080032:ixt5mjxgo3i");
- $content = json_decode(parse($content, '})(', ');'), true);
- $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");
- preg_match_all('@google.search.Search.(.*?)({(.*?)});@is', $content, $content_out, PREG_PATTERN_ORDER);
- $content = json_decode('{'.$content_out[2][0].'}', true);
- if(json_last_error() == JSON_ERROR_NONE) {
- if(count($content['results'])) {
- $j = 0;
- foreach($content['results'] as $result) {
- if(
- !isset($result['richSnippet']['cseImage']['src']) ||
- substr_count($result['url'], '/page/') ||
- substr_count($result['url'], '/tag/') ||
- in_array(str_replace(array("https://","http://","www."), null, $result['url']), array("hdfilmcehennemi.org/"))
- ) {
- continue;
- }
- $url = str_replace('hdfilmcehennemi.org', 'hdfilmcehennemi.com', $result['url']);
- $title = strip_tags($result['title']);
- if(substr_count($title, '- hdfilmcehennemi')) {
- $title = explode("- hdfilmcehennemi", $title)[0];
- }
- $image = str_replace('hdfilmcehennemi.org', 'hdfilmcehennemi.com', $result['richSnippet']['cseImage']['src']);
- if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$url}&ftitle;={$title}";
- echo "<div class='col-lg-2' 5px;'><p>{$title}</p><a href='{$furl}' target='_blank'><image border='0' src='{$image}'></a></div>";
- $j++;
- if($j % 5 == 0 || $result == end($content['results'])) { echo '</div>'; }
- @ob_flush(); flush();
- }
- } else {
- alert("warning", "Google Search API arama sonucu boş");
- }
- } else {
- alert("warning", "json hatası (Google Search API)");
- }
- break;
- case "indirmedenfilmizle1.com":
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
- preg_match_all('@<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);
- $j = 0;
- for($i=0;$i<count($content_out[1]);$i++) {
- if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[2][$i]}&ftitle;={$content_out[5][$i]}";
- 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>";
- $j++;
- if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
- @ob_flush(); flush();
- }
- break;
- case "filmakinesi.net":
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
- preg_match_all('@<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);
- $j = 0;
- echo "<textarea>$content</textarea>";
- for($i=0;$i<count($content_out[1]);$i++) {
- if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[2][$i]}&ftitle;={$content_out[3][$i]}";
- 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>";
- $j++;
- if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
- @ob_flush(); flush();
- }
- break;
- case "ilkfullfilmizle.org":
- case "hdfilmcehennemi2.org":
- case "netfullfilmizle.com":
- if($fsite == "ilkfullfilmizle.org") {
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
- preg_match_all('@<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);
- } else if($fsite == "hdfilmcehennemi2.org" || $fsite == "netfullfilmizle.com") {
- if($fsite == "hdfilmcehennemi2.org") {
- $content = mtrim($c->get_content($siteler[$fsite] . "/?arama=" . urlencode($fsearch)));
- } else if($fsite == "netfullfilmizle.com") {
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . str_replace('+', '+', urlencode($fsearch))));
- }
- preg_match_all('@<div class="moviefilm"><a href="(.*?)" src="(.*?)" alt="(.*?)" height="125px" width="119px"></a>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- }
- $j = 0;
- for($i=0;$i<count($content_out[1]);$i++) {
- if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
- if($fsite == "ilkfullfilmizle.org") {
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[4][$i]}&ftitle;={$content_out[5][$i]}";
- 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>";
- } else if($fsite == "hdfilmcehennemi2.org" || $fsite == "netfullfilmizle.com") {
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[1][$i]}&ftitle;={$content_out[4][$i]}";
- 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>";
- }
- $j++;
- if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
- @ob_flush(); flush();
- }
- break;
- case "filmizle.movie":
- $content = mtrim($c->get_content($siteler[$fsite] . "/?s=" . urlencode($fsearch)));
- preg_match_all('@<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);
- $j = 0;
- for($i=0;$i<count($content_out[1]);$i++) {
- if($j % 5 == 0) { echo '<div class="row" align="center" >'; }
- $furl = basename($_SERVER['PHP_SELF']) . "?submit=fetch&fsite;={$fsite}&fsearch;={$fsearch}&furl;={$content_out[1][$i]}&ftitle;={$content_out[2][$i]}";
- 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>";
- $j++;
- if($j % 5 == 0 || $content_out[1][$i] == end($content_out[1])) { echo '</div>'; }
- @ob_flush(); flush();
- }
- break;
- }
- }
- } else if($submit == "fetch" && isset($fsite) && isset($fsearch) && isset($furl) && isset($ftitle)) {
- if(in_array($fsite, array_keys($siteler)) && !empty($fsite) && !empty($fsearch) && !empty($furl) && !empty($ftitle)) {
- $parts = array();
- echo "<h3>{$fsite} için <a href='{$furl}' target='_blakn'>{$ftitle}</a> part sonuçları</h3>"; @ob_flush(); flush();
- $c = new cURL();
- $c->options = array(CURLOPT_ENCODING => 'gzip, deflate', CURLOPT_COOKIEJAR => __DIR__ . '/cookies.txt', CURLOPT_COOKIEFILE => __DIR__ . '/cookies.txt');
- $c->headers = array(
- "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
- "accept-encoding: gzip, deflate", // , br
- "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7,vi;q=0.6",
- "alexatoolbar-alx_ns_ph: AlexaToolbar/alx-4.0.3",
- "upgrade-insecure-requests: 1",
- "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"
- );
- $content = mtrim($c->get_content($furl));
- switch($fsite) {
- case "hdfilmcehennemi.com":
- preg_match_all('@<ul class="hdc-parts" >(.*?)</ul>@is', $content, $content_out, PREG_PATTERN_ORDER);
- @error_reporting(0);
- @ini_set("log_errors", 0);
- @ini_set("display_errors", "Off");
- $doc = new DOMDocument();
- if($doc->loadHTML($content_out[1][0])) {
- foreach($doc->getElementsByTagName('a') as $obj) {
- $parts[] = array(
- "title" => iconv2($obj->nodeValue),
- "url" => $obj->getAttribute('href')
- );
- }
- }
- error_reporting(E_ALL);
- ini_set("log_errors", 1);
- ini_set("display_errors", "On");
- if(count($parts)) {
- $iframeUrl = null;
- if(substr_count($content, '<div id="player">')) {
- preg_match_all('@<div id="player">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[1][0]);
- } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[2][0]);
- } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[2][0]);
- }
- if(!empty($iframeUrl)) {
- $parts[0]['url'] = $iframeUrl;
- } else {
- preg_match_all('@<div id="player" class="(.*?)">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- preg_match_all('@[removed](.*?)= '(.*?)';[removed]@is', $content_out[2][0], $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = str_replace(array("<",">"), null, findIframe(base64_decode($content_out[2][0])));
- if(!empty($iframeUrl)) {
- $parts[0]['url'] = $iframeUrl;
- }
- }
- $i = 0;
- foreach($parts as $part) {
- if($part != reset($parts)) {
- $content = mtrim($c->get_content($part['url']));
- $iframeUrl = null;
- if(substr_count($content, '<div id="player">')) {
- preg_match_all('@<div id="player">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[1][0]);
- } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[2][0]);
- } else if(substr_count($content, '>(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = findIframe($content_out[2][0]);
- }
- if(!empty($iframeUrl)) {
- $parts[$i]['url'] = $iframeUrl;
- } else {
- preg_match_all('@<div id="player" class="(.*?)">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- preg_match_all('@[removed](.*?)= '(.*?)';[removed]@is', $content_out[2][0], $content_out, PREG_PATTERN_ORDER);
- $iframeUrl = str_replace(array("<",">"), null, findIframe(base64_decode($content_out[2][0])));
- if(!empty($iframeUrl)) {
- $parts[$i]['url'] = $iframeUrl;
- }
- }
- }
- $i++;
- }
- generateParts($parts,0);
- echo '<div class="row"><div class="col-lg-12"><textarea class="txt">'.generateCode($parts).'</textarea></div></div>'; @ob_flush(); flush();
- } else {
- alert("warning", "Çekilecek herhangi bir part bulunamadı");
- }
- break;
- case "indirmedenfilmizle1.com":
- // ilk part
- preg_match_all('@<div class="keremiya_part">(.*?)<span>(.*?)</span>@is', $content, $content_out1, PREG_PATTERN_ORDER);
- $parts[] = array(
- "title" => $content_out1[2][0],
- "url" => findIframe($content)
- );
- // diğer partlar
- $content = parse($content, '<div class="keremiya_part">', '</div>');
- preg_match_all('@<a href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
- for($i=0;$i<count($content_out[1]);$i++) {
- $parts[] = array(
- "title" => $content_out[2][$i],
- "url" => $content_out[1][$i]
- );
- }
- if(count($parts)) {
- $i = 0;
- foreach($parts as $part) {
- if($part != reset($parts)) {
- $content = mtrim($c->get_content($part['url']));
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- $parts[$i]['url'] = $iframeUrl;
- } else {
- // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
- }
- }
- $i++;
- }
- generateParts($parts,0);
- echo '<div class="row"><div class="col-lg-12"><textarea class="txt">'.generateCode($parts).'</textarea></div></div>'; @ob_flush(); flush();
- } else {
- alert("warning", "Çekilecek herhangi bir part bulunamadı");
- }
- break;
- case "filmakinesi.net":
- break;
- case "ilkfullfilmizle.org":
- case "hdfilmcehennemi2.org":
- case "netfullfilmizle.com":
- preg_match_all('@<div class="keremiya_part">(.*?)<span>(.*?)</span>@is', $content, $content_out1, PREG_PATTERN_ORDER);
- $parts[] = array(
- "title" => $content_out1[2][0],
- "url" => findIframe($content)
- );
- // diğer partlar
- $content = parse($content, '<div class="keremiya_part">', '</div>');
- if($fsite == "ilkfullfilmizle.org" || $fsite == "netfullfilmizle.com") {
- preg_match_all('@<a href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
- } else if($fsite == "hdfilmcehennemi2.org") {
- preg_match_all('@<a rel="nofollow" href="(.*?)"><span>(.*?)</span></a>@is', $content, $content_out, PREG_PATTERN_ORDER);
- }
- for($i=0;$i<count($content_out[1]);$i++) {
- $parts[] = array(
- "title" => $content_out[2][$i],
- "url" => $content_out[1][$i]
- );
- }
- if(count($parts)) {
- $i = 0;
- foreach($parts as $part) {
- if($part != reset($parts)) {
- $content = mtrim($c->get_content($part['url']));
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- $parts[$i]['url'] = $iframeUrl;
- } else {
- // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
- }
- }
- $i++;
- }
- generateParts($parts,0);
- echo '<div class="row"><div class="col-lg-12"><textarea class="txt">'.generateCode($parts).'</textarea></div></div>'; @ob_flush(); flush();
- } else {
- alert("warning", "Çekilecek herhangi bir part bulunamadı");
- }
- // echo '<pre>'.print_r($parts,true).'</pre>';
- // echo "<textarea>$content</textarea>";
- break;
- case "filmizle.movie":
- $type = 0;
- if(substr_count($content, '<div class="ybolumler"><p><b>')) {
- $type = 2;
- 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);
- } else if(substr_count($content, '<div class="bolumler">')) {
- $type = 1;
- preg_match_all('@<div class="bolumler">(.*?)</div>@is', $content, $content_out, PREG_PATTERN_ORDER);
- }
- if(isset($content_out[1][0])) {
- if(!empty($content_out[1][0])) {
- @error_reporting(0);
- @ini_set("log_errors", 0);
- @ini_set("display_errors", "Off");
- if($type == 1) {
- $doc = new DOMDocument();
- if($doc->loadHTML($content_out[1][0])) {
- foreach($doc->getElementsByTagName('a') as $obj) {
- $parts[] = array(
- "title" => $obj->nodeValue,
- "url" => $obj->getAttribute('href')
- );
- }
- }
- } else if($type == 2) {
- $doc = new DOMDocument();
- if($doc->loadHTML($content_out[3][0])) {
- foreach($doc->getElementsByTagName('a') as $obj) {
- $parts[] = array(
- "title" => $obj->nodeValue,
- "url" => $obj->getAttribute('href')
- );
- }
- }
- $parts2 = array();
- $doc = new DOMDocument();
- if($doc->loadHTML($content_out[4][0])) {
- foreach($doc->getElementsByTagName('a') as $obj) {
- $parts2[] = array(
- "title" => $obj->nodeValue,
- "url" => $obj->getAttribute('href')
- );
- }
- }
- }
- error_reporting(E_ALL);
- ini_set("log_errors", 1);
- ini_set("display_errors", "On");
- }
- }
- if(count($parts)) {
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- $parts[0]['url'] = $iframeUrl;
- }
- $i = 0;
- foreach($parts as $part) {
- if($part != reset($parts)) {
- $content = mtrim($c->get_content($part['url']));
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- $parts[$i]['url'] = $iframeUrl;
- } else {
- // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
- }
- }
- $i++;
- }
- if($type == 2) {
- $i = 0;
- foreach($parts2 as $part) {
- $content = mtrim($c->get_content($part['url']));
- $iframeUrl = findIframe($content);
- if(!empty($iframeUrl)) {
- $parts2[$i]['url'] = $iframeUrl;
- } else {
- // echo "{$part['url']} iframesi verisi boş<br/>"; @ob_flush(); flush();
- }
- $i++;
- }
- echo "<h3>Türkçe Dublaj</h3>"; @ob_flush(); flush();
- }
- generateParts($parts,0);
- echo '<div class="row"><div class="col-lg-12"><textarea class="txt">'.generateCode($parts).'</textarea></div></div>'; @ob_flush(); flush();
- if($type == 2) {
- echo "<h3>Altyazılı</h3>"; @ob_flush(); flush();
- generateParts($parts2,0);
- echo '<div class="row"><div class="col-lg-12"><textarea class="txt">'.generateCode($parts2).'</textarea></div></div>'; @ob_flush(); flush();
- }
- } else {
- alert("warning", "Çekilecek herhangi bir part bulunamadı");
- }
- break;
- }
- } else {
- alert("warning", "Veriler boş veya yanlış girilmiş");
- }
- } else if($submit == "Giriş") {
- alert("info", "İşlem yapmak istediğiniz siteyi seçip aranacak kelimeyi girin", true);
- } else {
- alert("warning", "Veriler eksik veya yanlış girilmiş (1)");
- }
- } else {
- alert("info", "İşlem yapmak istediğiniz siteyi seçip aranacak kelimeyi girin", true);
- }
- ?>
- </div>
- </div>
- <?php
- }
- ?>
- <div class="row">
- <div class="col-lg-12">
- <div align="center">
- <a href="http://www.r10.net/members/79475-neron.html" target="_blank">R10 Neron</a> | <a href="skype:neronsilence?chat">Skype neronsilence</a>
- </div>
- ><i class="fa fa-sign-out" aria-hidden="true"></i> Çıkış yap</a>
- </div>
- </div>
- </div>
- <?php
- @ob_end_flush();
- ?>