Advertisement
plas71k

@robinex => ioncube 6.5 file 1 => decoded

Apr 8th, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.20 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 save_image($inPath, $outPath)
  10. {
  11.     $in  = fopen($inPath, "rb");
  12.     $out = fopen($outPath, "wb");
  13.     while ($chunk = fread($in, 8192)) {
  14.         fwrite($out, $chunk, 8192);
  15.     }
  16.     fclose($in);
  17.     fclose($out);
  18. }
  19.  
  20. function get_seo_link($str, $replace = array(), $delimiter = "-")
  21. {
  22.     setlocale(LC_ALL, "en_US.UTF8");
  23.     if (!empty($replace)) {
  24.         $str = str_replace(( array ) $replace, " ", $str);
  25.     } else {
  26.         $trArr = array(
  27.             "c",
  28.             "C",
  29.             "?",
  30.             "I",
  31.             "s",
  32.             "S",
  33.             "g",
  34.             "G",
  35.             "o",
  36.             "O",
  37.             "u",
  38.             "U"
  39.         );
  40.         $toArr = array(
  41.             "c",
  42.             "c",
  43.             "i",
  44.             "i",
  45.             "s",
  46.             "s",
  47.             "g",
  48.             "g",
  49.             "o",
  50.             "o",
  51.             "u",
  52.             "u"
  53.         );
  54.         $str   = str_replace($trArr, $toArr, $str);
  55.     }
  56.     $clean = iconv("UTF-8", "ASCII//TRANSLIT", $str);
  57.     $clean = preg_replace("/[^a-zA-Z0-9\\/_|+ -]/", "", $clean);
  58.     $clean = trim($clean, "-");
  59.     $clean = preg_replace("/[\\/_|+ -]+/", $delimiter, $clean);
  60.     return $clean;
  61. }
  62.  
  63. function hayalbotlisans()
  64. {
  65.     $site  = get_bloginfo("home");
  66.     $site1 = "http://www.freechromegames.net";
  67.     $site2 = "http://freechromegames.net";
  68.     if ($site != $site1 && $site != $site2) {
  69.         echo "Lutfen Bot icin lisans al?n. Msn: ahmetozdemir@mail.com.";
  70.         exit();
  71.     }
  72. }
  73.  
  74. function bot_start()
  75. {
  76.     global $xpdirpath;
  77.     global $abcxxa;
  78.     echo "<center><h1>HayalOyun Botu</h1><hr style=\"width:50%;border:1px solid #ccc;\" />";
  79.     if (empty($_GET['site'])) {
  80.         echo "<form action=\"\" method=\"get\"><table>";
  81.         echo "<tr><td>Site: </td><td><select name=\"site\">";
  82.         echo $abcxxa;
  83.         echo "</select></td></tr><tr><td>&nbsp;</td><td><input type=\"submit\" value=\"Cal?st?r!\" /></tr>";
  84.         echo "</table><input type=\"hidden\" name=\"page\" value=\"" . $xpdirpath . "\" /></form>";
  85.     } else {
  86.         require_once(dirname(__FILE__) . "/Bots/" . $_GET['site'] . ".php");
  87.     }
  88.     echo "</center>";
  89. }
  90.  
  91. function yonetime_ekle()
  92. {
  93.     add_submenu_page("edit.php", "HayalOyun Botu", "HayalOyun Botu", 10, __FILE__, "bot_start");
  94. }
  95.  
  96. date_default_timezone_set("Europe/Istanbul");
  97. include("ayar.php");
  98. $xpdirpath = plugin_basename(__FILE__);
  99. $rootp     = $_SERVER['DOCUMENT_ROOT'];
  100. $burl      = site_url();
  101. if (!is_dir($rootp . $apt . "/wp-content/uploads/images/")) {
  102.     mkdir($rootp . $apt . "/wp-content/uploads/images/");
  103. }
  104. if (!is_dir($rootp . $apt . "/wp-content/uploads/swf/")) {
  105.     mkdir($rootp . $apt . "/wp-content/uploads/swf/");
  106. }
  107. if ($_GET['do'] == "add") {
  108.     $ptitle    = $_POST['vtitle'];
  109.     $pimg      = $_POST['vimg'];
  110.     $purl      = $_POST['vurl'];
  111.     $ptags     = $_POST['vtags'];
  112.     $phowto    = $_POST['vhowto'];
  113.     $pstatus   = $_POST['vpstatus'];
  114.     $pcatid    = $_POST['catid'];
  115.     $ybotcheck = $_POST['ybotcheckurl'];
  116.     if (!$wpdb->get_row("SELECT meta_id FROM wp_postmeta WHERE meta_key='YBotCheckURL' AND meta_value = '" . $ybotcheck . "'", "ARRAY_N")) {
  117.         $fthumb                  = $burl . "/wp-content/uploads/images/" . get_seo_link($ptitle) . ".jpg";
  118.         $my_post                 = array();
  119.         $my_post['post_title']   = $ptitle;
  120.         $my_post['post_content'] = $phowto;
  121.         if ($pstatus != "future") {
  122.             $my_post['post_status'] = $pstatus;
  123.         } else {
  124.             $my_post['post_status'] = $pstatus;
  125.             if ($_POST['ypason'] != 1) {
  126.                 $abc = $wpdb->get_row("SELECT post_date FROM wp_posts WHERE post_status='future' ORDER BY post_date DESC", "ARRAY_N");
  127.                 if (time() < strtotime($abc[0])) {
  128.                     $my_post['post_date'] = date("Y-m-d H:i:s", strtotime($abc[0]) + $ptimin * 60);
  129.                 } else {
  130.                     $my_post['post_date'] = date("Y-m-d H:i:s", time() + $ptimin * 60);
  131.                 }
  132.             } else {
  133.                 $cfpost = $wpdb->get_var("SELECT COUNT(ID) FROM wp_posts WHERE post_status='future'");
  134.                 if ($cfpost < 5) {
  135.                     echo "S?k?st?rma Icin Yeterli Zamanlanm?s Oyun Yok";
  136.                     exit();
  137.                 } else {
  138.                     $mi     = 1;
  139.                     $p5date = null;
  140.                     foreach ($wpdb->get_results("SELECT post_date FROM wp_posts WHERE post_status='future' ORDER BY post_date ASC") as $key => $row) {
  141.                         if ($mi == 5) {
  142.                             $p5date = date("Y-m-d H:i:s", strtotime($row->post_date) - 1020);
  143.                         }
  144.                         ++$mi;
  145.                     }
  146.                     $my_post['post_date'] = $p5date;
  147.                 }
  148.             }
  149.         }
  150.         $my_post['post_author'] = 1;
  151.         if ($pcatid != "null") {
  152.             $my_post['post_category'] = $pcatid;
  153.         } else {
  154.             $my_post['post_category'] = array(
  155.                 0
  156.             );
  157.         }
  158.         $my_post['tags_input'] = $ptags;
  159.         $post_ids              = wp_insert_post($my_post);
  160.         if ($post_ids) {
  161.             add_post_meta($post_ids, $cfimage, $fthumb);
  162.             $ff_parts = pathinfo($purl);
  163.             if ($ff_parts['extension'] == "dcr") {
  164.                 if (!$gswf) {
  165.                     add_post_meta($post_ids, $cfdcr, $purl);
  166.                 } else {
  167.                     save_image($purl, $rootp . $apt . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".dcr");
  168.                     add_post_meta($post_ids, $cfdcr, $burl . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".dcr");
  169.                 }
  170.             } else if ($ff_parts['extension'] == "unity3d") {
  171.                 if (!$gswf) {
  172.                     add_post_meta($post_ids, $cfunity, $purl);
  173.                 } else {
  174.                     save_image($purl, $rootp . $apt . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".unity3d");
  175.                     add_post_meta($post_ids, $cfunity, $burl . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".unity3d");
  176.                 }
  177.             } else if (!$gswf) {
  178.                 add_post_meta($post_ids, $cfswf, $purl);
  179.             } else {
  180.                 save_image($purl, $rootp . $apt . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".swf");
  181.                 add_post_meta($post_ids, $cfswf, $burl . "/wp-content/uploads/swf/" . get_seo_link($ptitle) . ".swf");
  182.             }
  183.             save_image($pimg, $rootp . $apt . "/wp-content/uploads/images/" . get_seo_link($ptitle) . ".jpg");
  184.             include("r-class.php");
  185.             $Var_7128->resize($rootp . $apt . "/wp-content/uploads/images/" . get_seo_link($ptitle) . ".jpg");
  186.             $resizeObj = $Var_7128;
  187.             $resizeObj->resizeImage($rwidth, $rheight, 0);
  188.             $resizeObj->saveImage($rootp . $apt . "/wp-content/uploads/images/" . get_seo_link($ptitle) . ".jpg", $rquality);
  189.             if (!empty($ybotcheck)) {
  190.                 add_post_meta($post_ids, "YBotCheckURL", $ybotcheck);
  191.             }
  192.             $thumbdir   = "images/" . get_seo_link($ptitle) . ".jpg";
  193.             $attachment = array(
  194.                 "post_mime_type" => "image/jpg",
  195.                 "post_title" => get_seo_link($ptitle),
  196.                 "post_content" => "",
  197.                 "post_status" => "inherit"
  198.             );
  199.             $attach_id  = wp_insert_attachment($attachment, $thumbdir, $post_ids);
  200.             require_once(ABSPATH . "wp-admin" . "/includes/image.php");
  201.             $attach_data = wp_generate_attachment_metadata($attach_id, $rootp . $apt . "/wp-content/uploads/images/" . get_seo_link($ptitle) . ".jpg");
  202.             wp_update_attachment_metadata($attach_id, $attach_data);
  203.             set_post_thumbnail($post_ids, $attach_id);
  204.             echo "1";
  205.         } else {
  206.             echo "Oyun eklenemedi.";
  207.         }
  208.     } else {
  209.         echo "Bu oyun zaten ekli gozukuyor.";
  210.     }
  211.     exit();
  212. }
  213. add_action("admin_menu", "yonetime_ekle");
  214. hayalbotlisans();
  215. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement