Advertisement
Guest User

Untitled

a guest
Dec 8th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.47 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Loader)
  6. *
  7. * @ Version : 2.0.0.4
  8. * @ Author : DeZender
  9. * @ Release on : 21.10.2015
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function fakeip() {
  15.  
  16. $z = rand(0, 255);
  17. $i = 0;
  18. while ($i < 3)
  19. {
  20. $z .= "." . rand(0, 255);
  21. ++$i;
  22. continue;
  23. }
  24. return $z;
  25. }
  26.  
  27. function curl_cek($url) {
  28.  
  29. global $wpdb;
  30. $querys = $wpdb->get_results("select * from bot_ayarlar");
  31. $data = array();
  32. foreach ($querys as $query)
  33. {
  34. $data[$query->ifadesi] = $query->ayari;
  35. continue;
  36. }
  37. $ch = curl_init();
  38. curl_setopt($ch, CURLOPT_URL, $url);
  39. curl_setopt($ch, CURLOPT_HTTPHEADER, array("Client-IP:" . fakeip(), "HTTP_X_FORWARDED_FOR:" . fakeip()));
  40. curl_setopt($ch, CURLOPT_NOBODY, false);
  41. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  42. curl_setopt($ch, CURLOPT_REFERER, $url);
  43. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0");
  44. curl_setopt($ch, CURLOPT_ENCODING, "");
  45. if ($data["proxy_aktif"] == 1)
  46. {
  47. curl_setopt($ch, CURLOPT_PROXY, $data["proxy_ip"]);
  48. curl_setopt($ch, CURLOPT_PROXYPORT, $data["proxy_port"]);
  49. curl_setopt($ch, CURLOPT_PROXYUSERPWD, $data["proxy_kullanici"] . ":" . $data["proxy_sifre"]);
  50. }
  51. curl_setopt($ch, CURLOPT_AUTOREFERER, 1);
  52. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  53. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  54. curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  55. $rmx = curl_exec($ch);
  56. curl_close($ch);
  57. return $rmx;
  58. }
  59.  
  60. function arama_ydi_cek($url) {
  61.  
  62. $ch = curl_init();
  63. curl_setopt($ch, CURLOPT_URL, $url);
  64. curl_setopt($ch, CURLOPT_HEADER, false);
  65. curl_setopt($ch, CURLOPT_NOBODY, false);
  66. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  67. curl_setopt($ch, CURLOPT_REFERER, "http://www.yabancidizihdizle.com");
  68. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0");
  69. curl_setopt($ch, CURLOPT_ENCODING, "");
  70. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
  71. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  72. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  73. curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  74. $rmx = curl_exec($ch);
  75. curl_close($ch);
  76. return $rmx;
  77. }
  78.  
  79. function goldVideo($id, $s = null, $dil) {
  80.  
  81. if ($s != null)
  82. {
  83. $data = array("id" => $id, "s" => $s, "dil" => $dil, "tip" => "view");
  84. }
  85. else
  86. {
  87. $data = array("id" => $id, "dil" => $dil, "tip" => "view");
  88. }
  89. $string = http_build_query($data);
  90. $ch = curl_init();
  91. curl_setopt($ch, CURLOPT_URL, "http://www.dizigold.net/sistem/ajax.php");
  92. curl_setopt($ch, CURLOPT_HTTPHEADER, array("Origin: http://www.dizigold.net", "Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4", "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36", "Content-Type: application/x-www-form-urlencoded; charset=UTF-8", "Accept: application/json, text/javascript, */*; q=0.01", "Referer: http://www.dizigold.net/the-simpsons/26-sezon/19-bolum", "X-Requested-With: XMLHttpRequest", "Connection: keep-alive"));
  93. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  94. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  95. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  96. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  97. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  98. curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  99. curl_setopt($ch, CURLOPT_REFERER, $_SERVER["REQUEST_URI"]);
  100. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  101. curl_setopt($ch, CURLOPT_POST, 1);
  102. curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
  103. $data = curl_exec($ch);
  104. curl_close($ch);
  105. return json_decode(json_encode($data));
  106. }
  107.  
  108. function goldSezon($sezon_id, $dizi_id) {
  109.  
  110. $data = array("sezon_id" => $sezon_id, "dizi_id" => $dizi_id, "tip" => "sezon");
  111. $string = http_build_query($data);
  112. $ch = curl_init();
  113. curl_setopt($ch, CURLOPT_URL, "http://www.dizigold.net/sistem/ajax.php");
  114. curl_setopt($ch, CURLOPT_HTTPHEADER, array("Origin: http://www.dizigold.net", "Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4", "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36", "Content-Type: application/x-www-form-urlencoded; charset=UTF-8", "Accept: application/json, text/javascript, */*; q=0.01", "Referer: http://www.dizigold.net/the-simpsons/26-sezon/19-bolum", "X-Requested-With: XMLHttpRequest", "Connection: keep-alive"));
  115. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  116. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  117. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  118. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  119. curl_setopt($ch, CURLOPT_TIMEOUT, 30);
  120. curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  121. curl_setopt($ch, CURLOPT_REFERER, $_SERVER["REQUEST_URI"]);
  122. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  123. curl_setopt($ch, CURLOPT_POST, 1);
  124. curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
  125. $data = curl_exec($ch);
  126. curl_close($ch);
  127. return json_decode(json_encode($data));
  128. }
  129.  
  130. function getVideo($video_id, $part_name, $page) {
  131.  
  132. $data = array("video_id" => $video_id, "part_name" => $part_name, "page" => $page);
  133. $string = http_build_query($data);
  134. $ch = curl_init();
  135. curl_setopt($ch, CURLOPT_URL, "http://www.dizinus.com/service/get_video_part");
  136. curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept:application/json, text/javascript, */*; q=0.01", "Origin: http://www.dizinus.com", "Accept-Encoding: gzip, deflate", "Accept-Language: tr-TR,tr;q=0.8,en-US;q=0.6,en;q=0.4", "User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36", "Content-Type: application/x-www-form-urlencoded; charset=UTF-8", "Accept: application/json, text/javascript, */*; q=0.01", "X-Requested-With: XMLHttpRequest", "Connection: keep-alive", "Host:www.dizinus.com", "Pragma: no-cache", "Cache-Control: no-cache", "X-Requested-With:XMLHttpRequest"));
  137. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  138. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  139. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  140. curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
  141. curl_setopt($ch, CURLOPT_TIMEOUT, 5);
  142. curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
  143. curl_setopt($ch, CURLOPT_REFERER, $_SERVER["REQUEST_URI"]);
  144. curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  145. curl_setopt($ch, CURLOPT_POST, 1);
  146. curl_setopt($ch, CURLOPT_POSTFIELDS, $string);
  147. $data = curl_exec($ch);
  148. curl_close($ch);
  149. return json_decode(json_encode($data));
  150. }
  151.  
  152. function partIsimi($partIsim) {
  153.  
  154. $partIsim = trim($partIsim);
  155. if (preg_match("~tr~i", $partIsim))
  156. {
  157. $partIsim = "Türkçe";
  158. }
  159. else
  160. {
  161. if (preg_match("~subtitle~is", $partIsim))
  162. {
  163. $partIsim = "İngilizce";
  164. }
  165. else
  166. {
  167. if (preg_match("~İng~is", $partIsim))
  168. {
  169. $partIsim = "İngilizce";
  170. }
  171. else
  172. {
  173. if (preg_match("~nosubtitle~is", $partIsim))
  174. {
  175. $partIsim = "Altyazısız";
  176. }
  177. else
  178. {
  179. if (preg_match("~nosub.png~is", $partIsim))
  180. {
  181. $partIsim = "Altyazısız";
  182. }
  183. else
  184. {
  185. if (preg_match("~en.png~is", $partIsim))
  186. {
  187. $partIsim = "İngilizce";
  188. }
  189. else
  190. {
  191. if (preg_match("~tr.png~is", $partIsim))
  192. {
  193. $partIsim = "İngilizce";
  194. }
  195. }
  196. }
  197. }
  198. }
  199. }
  200. }
  201. return $partIsim;
  202. }
  203.  
  204. function episodeinfo($category_name, $season, $episode) {
  205.  
  206. global $wpdb;
  207. $querys = $wpdb->get_results("select * from bot_ayarlar");
  208. ........................................................................
  209. ..................................
  210. .............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement