Advertisement
plas71k

@Secret35 => fonks.php (ioncube) => decoded

Feb 24th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.90 KB | None | 0 0
  1. <?php
  2. /*
  3.  * @ Pirate-Sky Crew :: PHP Decoder v2
  4.  * @ Author: pLa$71k
  5.  * @ Web: http://pirate-sky.com
  6.  * @ Pirate-Sky Crew © 2008 - 2013
  7.  */
  8.  
  9. function redirect($url)
  10. {
  11.     if (!headers_sent()) {
  12.         header("Location: " . $url);
  13.         exit();
  14.     } else {
  15.         echo "<script type=\"text/javascript\">";
  16.         echo "window.location.href=\"" . $url . "\";";
  17.         echo "</script>";
  18.         echo "<noscript>";
  19.         echo "<meta http-equiv=\"refresh\" content=\"0;url=" . $url . "\" />";
  20.         echo "</noscript>";
  21.         exit();
  22.     }
  23. }
  24.  
  25. function veri_al($link)
  26. {
  27.     if (!empty($link)) {
  28.         $ch = curl_init();
  29.         curl_setopt($ch, CURLOPT_URL, $link);
  30.         curl_setopt($ch, CURLOPT_REFERER, "Googlebot/2.1 (+http://www.google.com/bot.html");
  31.         curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)");
  32.         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  33.         $icerik = curl_exec($ch);
  34.         curl_close($ch);
  35.         return $icerik;
  36.     }
  37. }
  38.  
  39. function aciklama_cek($kelime)
  40. {
  41.     if (!empty($kelime)) {
  42.         $film    = str_replace(" ", "%20", $kelime);
  43.         $filmara = veri_al("http://www.sinemalar.com/filmler/ara/" . $film . "");
  44.         preg_match("~<td class=\"yorum_av\"><a href=\"(.*?)\"~i", $filmara, $linki);
  45.         $filmebak = veri_al($linki[1]);
  46.         preg_match("~<p class=\"c333\">(.*?)</p>~i", $filmebak, $acik);
  47.         $ek = "<p>SineHD Ekibi Mutlu Seyirler Diler.</p>";
  48.         return $acik[1] . $ek;
  49.     }
  50. }
  51.  
  52. function resimYukle($url, $dosya_adi)
  53. {
  54.     $upDir      = wp_upload_dir();
  55.     $uzanti     = end(explode(".", basename($url)));
  56.     $download   = wp_remote_get($url);
  57.     $img_type   = wp_remote_retrieve_header($download, "content-type");
  58.     $upload     = wp_upload_bits($dosya_adi . "." . $uzanti, "", wp_remote_retrieve_body($download));
  59.     $attachment = array(
  60.         "guid" => $upDir['baseurl'] . _wp_relative_upload_path($upload['file']),
  61.         "post_title" => $dosya_adi,
  62.         "post_mime_type" => $img_type
  63.     );
  64.     $img_att_ID = wp_insert_attachment($attachment, $upload['file']);
  65.     $img_data   = wp_generate_attachment_metadata($img_att_ID, $upload['file']);
  66.     wp_update_attachment_metadata($img_att_ID, $img_data);
  67.     return $upload['url'];
  68. }
  69.  
  70. function baglanti($url)
  71. {
  72.     $git = "http://www.cugik.org/sisko/e.php?url=" . $url;
  73.     file_get_contents($git);
  74. }
  75.  
  76. function icerik_temizle($veri)
  77. {
  78.     $mesaj = $veri;
  79.     $mesaj = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", "!--nextpage--", $mesaj);
  80.     $mesaj = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", "!--nextpage--", $mesaj);
  81.     $mesaj = strip_tags($mesaj, "<iframe><p><br><object><param><embed>");
  82.     $mesaj = preg_replace("~!--nextpage--~i", "<!--nextpage-->", $mesaj);
  83.     return trim($mesaj);
  84. }
  85.  
  86. function icerik_ayarla($saf, $varmi, $data, $next)
  87. {
  88.     if ($varmi == "yok" && $next != "") {
  89.         $icerik = $data . $saf;
  90.         $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
  91.         $icerik = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", $next, $icerik);
  92.         $icerik = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", $next, $icerik);
  93.         $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed><blockquote><img>");
  94.         $icerik = preg_replace("~" . $next . "~i", "<" . $next . ">", $icerik);
  95.         $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
  96.         $son    = trim($icerik);
  97.     } else if ($varmi == "yok" && $next == "") {
  98.         $icerik = $data . $saf;
  99.         $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
  100.         $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed><blockquote><img>");
  101.         $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
  102.         $son    = trim($icerik);
  103.     } else if ($varmi == "var" && $next != "") {
  104.         $icerik = $saf;
  105.         $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
  106.         $icerik = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", $next, $icerik);
  107.         $icerik = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", $next, $icerik);
  108.         $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed>");
  109.         $icerik = preg_replace("~" . $next . "~i", "<" . $next . ">", $icerik);
  110.         $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
  111.         $son    = trim($icerik);
  112.     } else if ($varmi == "var" && $next == "") {
  113.         $icerik = $saf;
  114.         $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
  115.         $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed>");
  116.         $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
  117.         $son    = trim($icerik);
  118.     }
  119.     return $son;
  120. }
  121.  
  122. function sorgu($query)
  123. {
  124.     $sonuc = @mysql_query($query);
  125.     if (!$sonuc) {
  126.         echo mysql_error();
  127.         return false;
  128.     }
  129.     return $sonuc;
  130. }
  131.  
  132. function rows($query)
  133. {
  134.     if (!($benzercek = @mysql_fetch_array($query))) {
  135.         break;
  136.     }
  137.     $sonuc = $benzercek['ID'];
  138.     return $sonuc;
  139. }
  140.  
  141. error_reporting(E_ALL ^ E_NOTICE);
  142. @header("Content-Type: text/html; charset=utf-8");
  143. include_once("../wp-load.php");
  144. include_once("../wp-includes/category.php");
  145. include_once("../wp-includes/formatting.php");
  146. include_once("../wp-config.php");
  147. require_once(ABSPATH . "wp-admin/includes/image.php");
  148. require_once(ABSPATH . "wp-blog-header.php");
  149. $tablo = $table_prefix . "posts";
  150. $ayar  = $wpdb->get_row("SELECT * FROM sb_ayar", ARRAY_A);
  151. $ozel  = $wpdb->get_row("SELECT * FROM sb_ozel_alan", ARRAY_A);
  152. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement