Advertisement
plas71k

@roxside => ioncube 7 file => decoded

May 30th, 2013
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 15.66 KB | None | 0 0
  1. <?php
  2. /*
  3. * @ Pirate-Sky Crew :: ionCube 7 Decoder
  4. * @ Author: pLa$71k
  5. * @ Web: http://pirate-sky.com
  6. * @ Pirate-Sky Crew © 2008 - 2013
  7. */
  8.  
  9. function domainAdi()
  10. {
  11.     $domain = trim($_SERVER['HTTP_HOST'], '/');
  12.     $domain = str_replace(array(
  13.         'http://',
  14.         'www.'
  15.     ), '', $domain);
  16.     return $domain;
  17. }
  18.  
  19. function wysiwyg_editor($mce_buttons)
  20. {
  21.     $pos = array_search('wp_more', $mce_buttons, true);
  22.    
  23.     if ($pos !== false) {
  24.         $tmp_buttons   = array_slice($mce_buttons, 0, $pos + 1);
  25.         $tmp_buttons[] = 'wp_page';
  26.         $mce_buttons   = array_merge($tmp_buttons, array_slice($mce_buttons, $pos + 1));
  27.     }
  28.    
  29.     return $mce_buttons;
  30. }
  31.  
  32. function Duzelt($baslik)
  33. {
  34.     $bul   = array(
  35.         'Ç',
  36.         'Ş',
  37.         'Ğ',
  38.         'Ü',
  39.         'İ',
  40.         'Ö',
  41.         'ç',
  42.         'ş',
  43.         'ğ',
  44.         'ü',
  45.         'ö',
  46.         'ı'
  47.     );
  48.     $yap   = array(
  49.         'C',
  50.         'S',
  51.         'G',
  52.         'U',
  53.         'I',
  54.         'O',
  55.         'c',
  56.         's',
  57.         'g',
  58.         'u',
  59.         'o',
  60.         'i'
  61.     );
  62.     $perma = strtolower(str_replace($bul, $yap, $baslik));
  63.     $perma = preg_replace('@[^A-Za-z0-9\-_]@i', ' ', $perma);
  64.     $perma = trim(preg_replace('/\s+/', ' ', $perma));
  65.     $perma = str_replace(' ', '-', $perma);
  66.     return $perma;
  67. }
  68.  
  69. function fs_theme_footer()
  70. {
  71.     echo '
  72. ' . fs_get_option('fs_tracking') . '
  73. ';
  74. }
  75.  
  76. function fs_get_option($key)
  77. {
  78.     global $fs_options;
  79.    
  80.     $fs_options  = get_option('fs_options');
  81.     $fs_defaults = array(
  82.         'fs_logo' => get_bloginfo('template_url') . '/images/logo.png'
  83.     );
  84.     foreach ($fs_defaults as $k => $v) {
  85.        
  86.         if (!$fs_options[$k]) {
  87.             $fs_options[$k] = $fs_defaults[$k];
  88.             continue;
  89.         }
  90.     }
  91.    
  92.     return $fs_options[$key];
  93. }
  94.  
  95. function fs_excerpt($devami = '', $devami2 = '')
  96. {
  97.     global $post;
  98.    
  99.     if (function_exists($devami)) {
  100.         add_filter('excerpt_length', $devami);
  101.     }
  102.    
  103.    
  104.     if (function_exists($devami2)) {
  105.         add_filter('excerpt_more', $devami2);
  106.     }
  107.    
  108.     $output = get_the_excerpt();
  109.     $output = apply_filters('wptexturize', $output);
  110.     $output = apply_filters('convert_chars', $output);
  111.     $output = '' . $output . '';
  112.     echo $output;
  113. }
  114.  
  115. function kisa_yazi5($length)
  116. {
  117.     return 20;
  118. }
  119.  
  120. function kisa_yazi4($length)
  121. {
  122.     return 22;
  123. }
  124.  
  125. function kisa_yazi3($length)
  126. {
  127.     return 22;
  128. }
  129.  
  130. function kisa_yazi2($length)
  131. {
  132.     return 50;
  133. }
  134.  
  135. function kisa_yazi1($length)
  136. {
  137.     return 17;
  138. }
  139.  
  140. function kisalt($more)
  141. {
  142.     return '...';
  143. }
  144.  
  145. function k_baslik()
  146. {
  147.     $k_baslik = get_the_title();
  148.    
  149.     if (39 < strlen($k_baslik)) {
  150.         $k_baslik = mb_substr($k_baslik, 0, 37) . '...';
  151.     }
  152.    
  153.     echo $k_baslik;
  154. }
  155.  
  156. function k_baslik2()
  157. {
  158.     $k_baslik2 = get_the_title();
  159.    
  160.     if (48 < strlen($k_baslik2)) {
  161.         $k_baslik2 = mb_substr($k_baslik2, 0, 40) . '...';
  162.     }
  163.    
  164.     echo $k_baslik2;
  165. }
  166.  
  167. function k_baslik3()
  168. {
  169.     $k_baslik3 = get_the_title();
  170.    
  171.     if (70 < strlen($k_baslik3)) {
  172.         $k_baslik3 = mb_substr($k_baslik3, 0, 55) . '...';
  173.     }
  174.    
  175.     echo $k_baslik3;
  176. }
  177.  
  178. function k_baslik4()
  179. {
  180.     $k_baslik4 = get_the_title();
  181.    
  182.     if (33 < strlen($k_baslik4)) {
  183.         $k_baslik4 = mb_substr($k_baslik4, 0, 31) . '...';
  184.     }
  185.    
  186.     echo $k_baslik4;
  187. }
  188.  
  189. function sayfalama()
  190. {
  191.     $veriler = wp_link_pages(array(
  192.         'echo' => '0',
  193.         'link_before' => 'x',
  194.         'link_after' => 'x',
  195.         'before' => '<div class="page-link"><span>' . __('Pages:', 'twentyeleven') . '</span>',
  196.         'after' => '</div>'
  197.     ));
  198.     echo '<p class="sngnavi">';
  199.     global $post;
  200.    
  201.     $permalink           = get_permalink($post->ID);
  202.     $permalink_structure = get_option('permalink_structure');
  203.     $ayarYapildiMi       = (empty($permalink_structure) ? 0 : 1);
  204.     $sayfalar            = preg_match_all('#x([0-9]+)x#si', $veriler, $sayfalar);
  205.     $toplamSayfa         = $sayfalar[count($sayfalar) - 1];
  206.     $limit               = 11;
  207.    
  208.     if (1 < $toplamSayfa) {
  209.         if ($_GET['p']) {
  210.             $sayfa = (int) $_GET['page'];
  211.         }
  212.        
  213.        
  214.         if (!$_GET['p']) {
  215.             $link  = $_SERVER['REQUEST_URI'];
  216.             $kes   = explode('/', $link);
  217.             $sayfa = (int) $kes[count($kes) - 1];
  218.         }
  219.        
  220.        
  221.         if (empty($sayfa)) {
  222.             $sayfa = 5;
  223.         }
  224.        
  225.        
  226.         if (1 < $sayfa) {
  227.             echo ($_GET['p'] ? '<a style="display:none" class="sngsayfalama" href="' . $permalink . '&page=1">İlk</a> ' : '<a style="display:none" class="sngsayfalama" href="' . $permalink . '/1">İlk</a> ');
  228.             echo ($_GET['p'] ? '<a class="geri" href="' . $permalink . '&page=' . ($sayfa - 1) . '">Önceki</a> ' : '<a class="geri" href="' . $permalink . '/' . ($sayfa - 1) . '">Önceki</a> ');
  229.         }
  230.        
  231.        
  232.         if (($sayfa == 1 || $sayfa == $toplamSayfa)) {
  233.             $limit = 21;
  234.         }
  235.        
  236.         $basla = $sayfa - $limit;
  237.        
  238.         while ($basla <= $sayfa + $limit) {
  239.             if (((1 <= $basla && $basla <= $toplamSayfa) && $basla != $sayfa)) {
  240.                 echo ($_GET['p'] ? '<a class="sngsayfalama" href="' . $permalink . '&page=' . $basla . '">' . $basla . '</a> ' : '<a class="sngsayfalama" href="' . $permalink . '/' . $basla . '">' . $basla . '</a> ');
  241.             }
  242.            
  243.            
  244.             if ($basla == $sayfa) {
  245.                 echo '<span class="aktif">' . $basla . '</span>';
  246.             }
  247.            
  248.             ++$basla;
  249.         }
  250.        
  251.        
  252.         if ($sayfa < $toplamSayfa) {
  253.             echo ($_GET['p'] ? '<a style="background:none" class="sngsayfalama" href="' . $permalink . '&page=' . ($sayfa + 1) . '">Sonraki</a> ' : '<a style="background:none" class="sngsayfalama" href="' . $permalink . '/' . ($sayfa + 1) . '">Sonraki</a> ');
  254.             echo ($_GET['p'] ? '<a style="display:none" class="sngsayfalama" href="' . $permalink . '&page=' . $toplamSayfa . '">Son</a> ' : '<a style="display:none" class="sngsayfalama" href="' . $permalink . '/' . $toplamSayfa . '">Son</a> ');
  255.         }
  256.        
  257.         echo '</p>';
  258.     }
  259.    
  260. }
  261.  
  262. function wp_yorumlar($comment, $args, $depth)
  263. {
  264.     $GLOBALS['comment'] = $comment;
  265.     echo '<li>
  266. <div class="yorum-ortala">
  267. <div class="yorum-avatar"></div>
  268. <div class="yorum-sag">
  269. <div class="yorum-ad">';
  270.     comment_author();
  271.     echo '</div>
  272. <div class="yorum-tarih">';
  273.     comment_time('d F Y G:i');
  274.     echo '</div>
  275. <div class="mis"></div>
  276. <p>';
  277.     comment_text();
  278.     echo '</p>
  279. </div>
  280. <div class="mis"></div>
  281. </div>
  282. </li>
  283. ';
  284. }
  285.  
  286. function tj_create_meta_box()
  287. {
  288.     add_meta_box('post-meta-boxes', __('İçerik Ekleme Paneli', 'wpmedya'), 'post_meta_boxes', 'post', 'normal', 'high');
  289. }
  290.  
  291. function tj_post_meta_boxes()
  292. {
  293.     $meta_boxes = array(
  294.         'resim' => array(
  295.             'name' => 'resim',
  296.             'title' => __('Resim Adresi:', 'wpmedya'),
  297.             'type' => 'text',
  298.             'desc' => 'Buraya resimlerin url adresi yazilir.'
  299.         ),
  300.         'bilgi' => array(
  301.             'name' => 'bilgi',
  302.             'title' => __('Bilgi:', 'wpmedya'),
  303.             'type' => 'text',
  304.             'desc' => 'Buraya haber içerikleri için spot kısmı yazabilirsiniz.'
  305.         ),
  306.         'video' => array(
  307.             'name' => 'video',
  308.             'title' => __('Video Embed Kodu:', 'wpmedya'),
  309.             'type' => 'textarea',
  310.             'desc' => 'Buraya video galeri için embed kodlarını ekleyebilirsiniz.'
  311.         )
  312.     );
  313.     return apply_filters('tj_post_meta_boxes', $meta_boxes);
  314. }
  315.  
  316. function tj_page_meta_boxes()
  317. {
  318.     $meta_boxes = array(
  319.         'teaser_text' => array(
  320.             'name' => 'teaser_text',
  321.             'title' => __('Teaser', 'wpmedya'),
  322.             'type' => 'text',
  323.             'desc' => 'Here you can enter some short text for header teaser on a page.'
  324.         )
  325.     );
  326.     return apply_filters('tj_page_meta_boxes', $meta_boxes);
  327. }
  328.  
  329. function post_meta_boxes()
  330. {
  331.     global $post;
  332.    
  333.     $meta_boxes = tj_post_meta_boxes();
  334.     echo '  <table class="form-table">
  335.     ';
  336.     foreach ($meta_boxes as $meta) {
  337.         $value = get_post_meta($post->ID, $meta['name'], true);
  338.        
  339.         if ($meta['type'] == 'text') {
  340.             get_meta_text_input($meta, $value);
  341.             continue;
  342.         }
  343.        
  344.        
  345.         if ($meta['type'] == 'textarea') {
  346.             get_meta_textarea($meta, $value);
  347.             continue;
  348.         }
  349.        
  350.        
  351.         if ($meta['type'] == 'select') {
  352.             get_meta_select($meta, $value);
  353.             continue;
  354.         }
  355.     }
  356.    
  357.     echo '  </table>
  358. ';
  359. }
  360.  
  361. function page_meta_boxes()
  362. {
  363.     global $post;
  364.    
  365.     $meta_boxes = tj_page_meta_boxes();
  366.     echo '  <table class="form-table">
  367.     ';
  368.     foreach ($meta_boxes as $meta) {
  369.         $value = stripslashes(get_post_meta($post->ID, $meta['name'], true));
  370.        
  371.         if ($meta['type'] == 'text') {
  372.             get_meta_text_input($meta, $value);
  373.             continue;
  374.         }
  375.        
  376.        
  377.         if ($meta['type'] == 'textarea') {
  378.             get_meta_textarea($meta, $value);
  379.             continue;
  380.         }
  381.        
  382.        
  383.         if ($meta['type'] == 'select') {
  384.             get_meta_select($meta, $value);
  385.             continue;
  386.         }
  387.     }
  388.    
  389.     echo '  </table>
  390. ';
  391. }
  392.  
  393. function get_meta_text_input($args = array(), $value = false)
  394. {
  395.     extract($args);
  396.     echo '  <tr>
  397.         <th style="width:20%;">
  398.             <label for="';
  399.     echo $name;
  400.     echo '">';
  401.     echo $title;
  402.     echo '</label>
  403.         </th>
  404.         <td>
  405.             <input type="text" name="';
  406.     echo $name;
  407.     echo '" id="';
  408.     echo $name;
  409.     echo '" value="';
  410.     echo wp_specialchars($value, 1);
  411.     echo '" size="30" tabindex="30" style="width: 97%;margin-top:-3px;" />
  412.             <input type="hidden" name="';
  413.     echo $name;
  414.     echo '_noncename" id="';
  415.     echo $name;
  416.     echo '_noncename" value="';
  417.     echo wp_create_nonce(plugin_basename(__FILE__));
  418.     echo '" />
  419.             <br />
  420.             <p class="description">';
  421.     echo $desc;
  422.     echo '</p>
  423.         </td>
  424.     </tr>
  425.     ';
  426. }
  427.  
  428. function get_meta_select($args = array(), $value = false)
  429. {
  430.     extract($args);
  431.     echo '  <tr>
  432.         <th style="width:20%;">
  433.             <label for="';
  434.     echo $name;
  435.     echo '">';
  436.     echo $title;
  437.     echo '</label>
  438.         </th>
  439.         <td>
  440.             ';
  441.     echo '<s';
  442.     echo 'elect name="';
  443.     echo $name;
  444.     echo '" id="';
  445.     echo $name;
  446.     echo '">
  447.             ';
  448.     foreach ($options as $option) {
  449.         echo '              <option ';
  450.        
  451.         if (htmlentities($value, ENT_QUOTES) == $option) {
  452.             echo ' selected="selected"';
  453.         }
  454.        
  455.         echo '>
  456.                     ';
  457.         echo $option;
  458.         echo '              </option>
  459.             ';
  460.     }
  461.    
  462.     echo '          </select>
  463.             <input type="hidden" name="';
  464.     echo $name;
  465.     echo '_noncename" id="';
  466.     echo $name;
  467.     echo '_noncename" value="';
  468.     echo wp_create_nonce(plugin_basename(__FILE__));
  469.     echo '" />
  470.         </td>
  471.     </tr>
  472.     ';
  473. }
  474.  
  475. function get_meta_textarea($args = array(), $value = false)
  476. {
  477.     extract($args);
  478.     echo '  <tr>
  479.         <th style="width:20%;">
  480.             <label for="';
  481.     echo $name;
  482.     echo '">';
  483.     echo $title;
  484.     echo '</label>
  485.         </th>
  486.         <td>
  487.             <textarea name="';
  488.     echo $name;
  489.     echo '" id="';
  490.     echo $name;
  491.     echo '" cols="60" rows="4" tabindex="30" style="width: 97%;margin-top:-3px;">';
  492.     echo wp_specialchars($value, 1);
  493.     echo '</textarea>
  494.             <input type="hidden" name="';
  495.     echo $name;
  496.     echo '_noncename" id="';
  497.     echo $name;
  498.     echo '_noncename" value="';
  499.     echo wp_create_nonce(plugin_basename(__FILE__));
  500.     echo '" />
  501.         </td>
  502.     </tr>
  503.     ';
  504. }
  505.  
  506. function tj_save_meta_data($post_id)
  507. {
  508.     global $post;
  509.    
  510.     if ('page' == $_POST['post_type']) {
  511.         $meta_boxes = array_merge(tj_page_meta_boxes());
  512.     } else {
  513.         $meta_boxes = array_merge(tj_post_meta_boxes());
  514.     }
  515.    
  516.     foreach ($meta_boxes as $meta_box) {
  517.        
  518.         if (!wp_verify_nonce($_POST[$meta_box['name'] . '_noncename'], plugin_basename(__FILE__))) {
  519.             return $post_id;
  520.         }
  521.        
  522.        
  523.         if (('page' == $_POST['post_type'] && !current_user_can('edit_page', $post_id))) {
  524.             return $post_id;
  525.         }
  526.        
  527.        
  528.         if (('post' == $_POST['post_type'] && !current_user_can('edit_post', $post_id))) {
  529.             return $post_id;
  530.         }
  531.        
  532.         $data = stripslashes($_POST[$meta_box['name']]);
  533.        
  534.         if (get_post_meta($post_id, $meta_box['name']) == '') {
  535.             add_post_meta($post_id, $meta_box['name'], $data, true);
  536.             continue;
  537.         }
  538.        
  539.        
  540.         if ($data != get_post_meta($post_id, $meta_box['name'], true)) {
  541.             update_post_meta($post_id, $meta_box['name'], $data);
  542.             continue;
  543.         }
  544.        
  545.        
  546.         if ($data == '') {
  547.             delete_post_meta($post_id, $meta_box['name'], get_post_meta($post_id, $meta_box['name'], true));
  548.             continue;
  549.         }
  550.     }
  551.    
  552. }
  553.  
  554. $incet      = include('serial.php');
  555. $lsite      = domainAdi();
  556. $lic1       = substr($wpmhash, 0, 4);
  557. $lic2       = substr($wpmhash, 0 - 4);
  558. $onkod      = 'HBR1';
  559. $hashcrt    = wordwrap(strtoupper(md5(sha1($lsite . '3264'))), 4, '-', true);
  560. $esashash   = '' . $onkod . '-' . $hashcrt;
  561. $lisanskodu = $wpmhash;
  562.  
  563. if (($esashash != $lisanskodu || $lisanskodu == '')) {
  564.     $b64lkod1 = base64_encode($wpmhash);
  565.     $b64site1 = base64_encode($lsite);
  566.     $b64lkod  = urlencode($b64lkod1);
  567.     $b64site  = urlencode($b64site1);
  568.     $conn     = @file_get_contents('' . 'http://destek.wpmedya.com/admin/bildir.php?s=' . $b64site . '&c=' . $b64lkod);
  569.     exit('LISANSSIZ KULLANIM TESPIT EDILDI. LUTFEN LISANS ALINIZ. BILGI: WPMEDYA.COM' . $domain);
  570. }
  571.  
  572. $yol  = '' . get_bloginfo('template_url') . '/';
  573. $site = '' . get_bloginfo('home') . '/';
  574. $isim = '' . get_bloginfo('blogname') . '';
  575. remove_filter('term_description', 'wpautop');
  576. remove_action('wp_head', 'pagenavi_css');
  577. remove_action('wp_print_styles', 'pagenavi_stylesheets');
  578.  
  579. if (STYLESHEETPATH == TEMPLATEPATH) {
  580.     define('OF_FILEPATH', TEMPLATEPATH);
  581.     define('OF_DIRECTORY', get_template_directory_uri());
  582. } else {
  583.     define('OF_FILEPATH', STYLESHEETPATH);
  584.     define('OF_DIRECTORY', get_template_directory_uri());
  585. }
  586.  
  587. require_once(OF_FILEPATH . '/admin/admin-functions.php');
  588. require_once(OF_FILEPATH . '/admin/admin-interface.php');
  589. require_once(OF_FILEPATH . '/admin/theme-options.php');
  590. require_once(OF_FILEPATH . '/admin/theme-functions.php');
  591. add_filter('mce_buttons', 'wysiwyg_editor');
  592. add_action('wp_footer', 'fs_theme_footer');
  593. register_nav_menus(array(
  594.     'headermenu' => __('Header Menü', ''),
  595.     'anamenuust' => __('Ana Menü - Üst', ''),
  596.     'anamenualt' => __('Ana Menü - Alt', ''),
  597.     'footermenuust' => __('Footer Menü - Üst', ''),
  598.     'footermenualt' => __('Footer Menü - Alt', '')
  599. ));
  600.  
  601. if (function_exists('add_image_size')) {
  602.     add_theme_support('post-thumbnails');
  603. }
  604.  
  605.  
  606. if (function_exists('add_image_size')) {
  607.     add_image_size('res1', 636, 366, true);
  608.     add_image_size('res2', 144, 80, true);
  609.     add_image_size('res3', 608, 311, true);
  610.     add_image_size('res4', 112, 58, true);
  611.     add_image_size('res5', 120, 69, true);
  612.     add_image_size('res6', 200, 116, true);
  613.     add_image_size('res7', 624, 360, true);
  614.     add_image_size('res8', 280, 100, true);
  615.     add_image_size('res9', 135, 79, true);
  616. }
  617.  
  618. add_action('admin_menu', 'tj_create_meta_box');
  619. add_action('save_post', 'tj_save_meta_data');
  620. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement