Advertisement
plas71k

@mizrakbo => IonCube7 file => decoded

Mar 24th, 2013
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 13.98 KB | None | 0 0
  1. <?php
  2. function add_custom_taxonomies()
  3. {
  4.     register_taxonomy('imdb', 'post', array(
  5.         'hierarchical' => false,
  6.         'labels' => array(
  7.             'name' => _x('IMDB', 'taxonomy general name'),
  8.             'singular_name' => _x('IMDB Puanı', 'taxonomy singular name'),
  9.             'search_items' => __('IMDB Puanı ara'),
  10.             'all_items' => __('Tüm IMDB Puanları'),
  11.             'edit_item' => __('IMDB Puanı düzenle'),
  12.             'update_item' => __('IMDB Puanı güncelle'),
  13.             'add_new_item' => __('Yeni IMDB Puanı ekle'),
  14.             'new_item_name' => __('Yeni IMDB Puanı'),
  15.             'menu_name' => __('IMDB Puanlary')
  16.         ),
  17.         'rewrite' => array(
  18.             'slug' => 'imdb',
  19.             'with_front' => false,
  20.             'hierarchical' => false
  21.         )
  22.     ));
  23.     register_taxonomy('oyuncu', 'post', array(
  24.         'hierarchical' => false,
  25.         'labels' => array(
  26.             'name' => _x('Oyuncu', 'taxonomy general name'),
  27.             'singular_name' => _x('Oyuncu', 'taxonomy singular name'),
  28.             'search_items' => __('Oyuncu ara'),
  29.             'all_items' => __('Tüm oyuncular'),
  30.             'edit_item' => __('Oyuncu düzenle'),
  31.             'update_item' => __('Oyuncu güncelle'),
  32.             'add_new_item' => __('Yeni oyuncu ekle'),
  33.             'new_item_name' => __('Yeni oyuncu adı'),
  34.             'menu_name' => __('Oyuncular')
  35.         ),
  36.         'rewrite' => array(
  37.             'slug' => 'oyuncu',
  38.             'with_front' => false,
  39.             'hierarchical' => false
  40.         )
  41.     ));
  42.     register_taxonomy('yapim', 'post', array(
  43.         'hierarchical' => false,
  44.         'labels' => array(
  45.             'name' => _x('Yapım Yılı', 'taxonomy general name'),
  46.             'singular_name' => _x('Yapım Yılı', 'taxonomy singular name'),
  47.             'search_items' => __('Yapım Yılı ara'),
  48.             'all_items' => __('Tüm yıllar'),
  49.             'edit_item' => __('Yapım Yılı düzenle'),
  50.             'update_item' => __('Yapım Yılı güncelle'),
  51.             'add_new_item' => __('Yeni Yapım Yılı ekle'),
  52.             'new_item_name' => __('Yeni Yapım Yılı'),
  53.             'menu_name' => __('Yapım Yılı')
  54.         ),
  55.         'rewrite' => array(
  56.             'slug' => 'yapim',
  57.             'with_front' => false,
  58.             'hierarchical' => false
  59.         )
  60.     ));
  61.     register_taxonomy('yonetmen', 'post', array(
  62.         'hierarchical' => false,
  63.         'labels' => array(
  64.             'name' => _x('Yönetmen', 'taxonomy general name'),
  65.             'singular_name' => _x('Yönetmen', 'taxonomy singular name'),
  66.             'search_items' => __('Yönetmen ara'),
  67.             'all_items' => __('Tüm yönetmenler'),
  68.             'edit_item' => __('Yönetmen düzenle'),
  69.             'update_item' => __('Yönetmen güncelle'),
  70.             'add_new_item' => __('Yeni yönetmen ekle'),
  71.             'new_item_name' => __('Yeni yönetmen adı'),
  72.             'menu_name' => __('Yönetmenler')
  73.         ),
  74.         'rewrite' => array(
  75.             'slug' => 'yonetmen',
  76.             'with_front' => false,
  77.             'hierarchical' => false
  78.         )
  79.     ));
  80.     register_taxonomy('senaryo', 'post', array(
  81.         'hierarchical' => false,
  82.         'labels' => array(
  83.             'name' => _x('Senaryo', 'taxonomy general name'),
  84.             'singular_name' => _x('Senaryo', 'taxonomy singular name'),
  85.             'search_items' => __('Senarist ara'),
  86.             'all_items' => __('Tüm Senaristler'),
  87.             'edit_item' => __('Senarist düzenle'),
  88.             'update_item' => __('Senarist güncelle'),
  89.             'add_new_item' => __('Yeni Senarist Ekle'),
  90.             'new_item_name' => __('Yeni Senarist Adı'),
  91.             'menu_name' => __('Senaristler')
  92.         ),
  93.         'rewrite' => array(
  94.             'slug' => 'yonetmen',
  95.             'with_front' => false,
  96.             'hierarchical' => false
  97.         )
  98.     ));
  99. }
  100.  
  101. function yazi_yonlendir()
  102. {
  103.     global $wpdb;
  104.    
  105.     $query = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'post\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
  106.    
  107.     if (isset($_GET['random_cat_id'])) {
  108.         $random_cat_id = (int) $_GET['random_cat_id'];
  109.         $query         = '' . 'SELECT DISTINCT ID FROM ' . $wpdb->posts . ' AS p INNER JOIN ' . $wpdb->term_relationships . ' AS tr ON (p.ID = tr.object_id AND tr.term_taxonomy_id = ' . $random_cat_id . ') INNER JOIN  ' . $wpdb->term_taxonomy . ' AS tt ON(tr.term_taxonomy_id = tt.term_taxonomy_id AND taxonomy = \'category\') WHERE post_type = \'post\' AND post_password = \'\' AND     post_status = \'publish\' ORDER BY RAND() LIMIT 1';
  110.     }
  111.    
  112.    
  113.     if (isset($_GET['random_post_type'])) {
  114.         $post_type = preg_replace('|[^a-z]|i', '', $_GET['random_post_type']);
  115.         $query     = '' . 'SELECT ID FROM ' . $wpdb->posts . ' WHERE post_type = \'' . $post_type . '\' AND post_password = \'\' AND post_status = \'publish\' ORDER BY RAND() LIMIT 1';
  116.     }
  117.    
  118.     $random_id = $wpdb->get_var($query);
  119.     wp_redirect(get_permalink($random_id));
  120.     exit();
  121. }
  122.  
  123. function author()
  124. {
  125.     global $authordata;
  126.    
  127.     $nick              = get_the_author();
  128.     $mail              = get_the_author_email();
  129.     $gravatar          = 'http://www.gravatar.com/avatar.php?gravatar_id=' . md5($mail);
  130.     $div_id            = 'a' . get_the_ID();
  131.     $author_posts_link = get_author_posts_url($authordata->ID, $authordata->user_nicename);
  132.     $hidden_div        = '<span id="' . $div_id . '" class="mydiv" style="display:none;"><img src="' . $gravatar . '" alt="gravatar" /><span class="ae_close"><a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">Kapat</a></span><span class="ae_top"><b>Yazar: ' . get_the_author() . '</b></span>
  133.         <span class="ae_body"><b>Adı</b>: ' . get_the_author_firstname() . ' ' . get_the_author_lastname() . '<br /><b>Email:</b> ' . get_the_author_email() . '<br /><b>Site:</b> <a href="' . get_the_author_url() . '">' . get_the_author_url() . '</a><br /></span><span class="ae_about"><b>Hakkında:</b> ' . get_the_author_description() . '</span><span class="ae_body"><a href="' . $author_posts_link . '">Tüm yazılarını göster</a> (' . get_the_author_posts() . ')</span></span>';
  134.     echo '<a href="javascript:;" onmousedown="toggleDiv(\'' . $div_id . '\');">' . $nick . '</a>' . $hidden_div;
  135. }
  136.  
  137. function ballon_setcontent($contenido_post)
  138. {
  139.     preg_match_all('/\[(.*?)\|(.*?)\]/', $contenido_post, $ToolTiposIDs);
  140.     foreach ($ToolTiposIDs[0] as $Instancia) {
  141.         strpos($Instancia, '|');
  142.         $palabrasubrayada = substr($Instancia, 1, $palillo - 1);
  143.         $tooltip          = substr($Instancia, $palillo + 1);
  144.         $tooltip          = substr($tooltip, 0, strlen($tooltip) - 1);
  145.         $SpanToolTipo     = '<span class="ballon" onmouseover="tooltip.show(' . '\'' . $tooltip . '\'' . ');" onmouseout="tooltip.hide();">' . $palabrasubrayada . '</span>&nbsp;';
  146.         $contenido_post   = str_replace($Instancia, $SpanToolTipo, $contenido_post);
  147.         $palillo          = $contenido_post;
  148.     }
  149.    
  150.     return $contenido_post;
  151. }
  152.  
  153. function wpbx_comment($comment, $args, $depth)
  154. {
  155.     $GLOBALS['comment'] = $comment;
  156.     $commenter          = get_comment_author_link();
  157.    
  158.     if (ereg('<a[^>]* class=[^>]+>', $commenter)) {
  159.         $commenter = ereg_replace('(<a[^>]* class=[\'"]?)', '\1url ', $commenter);
  160.     } else {
  161.         $commenter = ereg_replace('(<a )/', '\1class="url "', $commenter);
  162.     }
  163.    
  164.     $avatar_email = get_comment_author_email();
  165.     $avatarURL    = get_bloginfo('template_directory');
  166.     $avatar       = str_replace('class=\'avatar', 'class=\'avatar', get_avatar($avatar_email, 40, $default = $avatarURL . '/images/avatar.jpg'));
  167.     echo '  <li ';
  168.     comment_class();
  169.     echo ' id="comment-';
  170.     comment_ID();
  171.     echo '">
  172.         <div id="div-comment-';
  173.     comment_ID();
  174.     echo '">
  175.             <div class="comment-author vcard">
  176.                 ';
  177.     echo $avatar . ' <span class="fn n">' . $commenter . '</span>';
  178.     echo '          </div>
  179.  
  180.             <div class="comment-meta">
  181.                 ';
  182.     printf(__('%1$s'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
  183.     echo '              ';
  184.     echo '<s';
  185.     echo 'pan class="reply-link">
  186.                     ';
  187.     echo '<s';
  188.     echo 'pan class="meta-sep">|</span> ';
  189.     comment_reply_link(array_merge($args, array(
  190.         'add_below' => 'div-comment',
  191.         'depth' => $depth,
  192.         'max_depth' => $args['max_depth']
  193.     )));
  194.     echo '              </span>    ';
  195.     echo '<s';
  196.     echo 'pan class="ratings">  ';
  197.    
  198.     if (function_exists(ckrating_display_karma)) {
  199.         ckrating_display_karma();
  200.     }
  201.    
  202.     echo '</span>
  203.             </div>
  204.  
  205.             ';
  206.    
  207.     if ($comment->comment_approved == '0') {
  208.         _e('                    <span class=\'unapproved\'>Yorumunuz onay bekliyor.</span>
  209. ', 'wpbx');
  210.     }
  211.    
  212.     echo '
  213.             <div class="comment-content">';
  214.     comment_text();
  215.     echo '</div>
  216.  
  217.         </div>
  218. ';
  219. }
  220.  
  221. function wpbx_comments($file)
  222. {
  223.     if (!function_exists('wp_list_comments')) {
  224.         $file = TEMPLATEPATH . '/comments.old.php';
  225.     }
  226.    
  227.     return $file;
  228. }
  229.  
  230. function comment_add_microid($classes)
  231. {
  232.     $c_email = get_comment_author_email();
  233.     $c_url   = get_comment_author_url();
  234.    
  235.     if ((!empty($c_email) && !empty($c_url))) {
  236.         $microid   = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:' . $c_email) . sha1($c_url));
  237.         $classes[] = $microid;
  238.     }
  239.    
  240.     return $classes;
  241. }
  242.  
  243. function rel_nofollow($icerik)
  244. {
  245.     return $icerik;
  246. }
  247.  
  248. function cevir($string)
  249. {
  250.     $eng    = array(
  251.         'ÅŸ',
  252.         'ÅŸ',
  253.         'ÄŸ',
  254.         'ÄŸ',
  255.         'ı',
  256.         'Ä°',
  257.         'ç',
  258.         'Ç',
  259.         'ö',
  260.         'Ö',
  261.         'ü',
  262.         'Ãœ',
  263.         '’',
  264.         '‘    '
  265.     );
  266.     $tr     = array(
  267.         'ş',
  268.         'Ş',
  269.         'ğ',
  270.         'Ğ',
  271.         'ı',
  272.         'İ',
  273.         'ç',
  274.         'Ç',
  275.         'ö',
  276.         'Ö',
  277.         'ü',
  278.         'Ğ',
  279.         '\'',
  280.         '\''
  281.     );
  282.     $string = str_replace($eng, $tr, $string);
  283.     return $string;
  284. }
  285.  
  286. function istatistik()
  287. {
  288.     global $wpdb;
  289.    
  290.     $args       = array(
  291.         'orderby' => 'name',
  292.         'order' => 'ASC'
  293.     );
  294.     $categories = get_categories($args);
  295.     $cat_count  = 10;
  296.     foreach ($categories as $c) {
  297.         ++$cat_count;
  298.     }
  299.    
  300.     $count_posts = wp_count_posts();
  301.     $published   = $count_posts->publish;
  302.     return 'Sitemizde <span style="font-weight:bold;">' . $cat_count . '</span> kategori\'de <span style="font-weight:bold;">' . $published . '</span> film ve <span style="font-weight:bold;">' . $wpdb->get_var('' . 'SELECT COUNT(*) FROM ' . $wpdb->comments . ' WHERE comment_approved = \'1\'') . '</span> yorum bulunmaktadır.';
  303. }
  304.  
  305. function wp_link_pages_titled($args = '')
  306. {
  307.     $defaults = array(
  308.         'tur' => '360',
  309.         'before' => '<div>',
  310.         'after' => '</div>',
  311.         'link_before' => '<span>',
  312.         'link_after' => '</span>',
  313.         'echo' => 1
  314.     );
  315.     $r        = wp_parse_args($args, $defaults);
  316.     extract($r, EXTR_SKIP);
  317.     global $page;
  318.     global $numpages;
  319.     global $multipage;
  320.     global $more;
  321.     global $pagenow;
  322.     global $pages;
  323.    
  324.     $output = '';
  325.    
  326.     if ($multipage) {
  327.         $output .= $before;
  328.        
  329.         if (($tur == '720' || $tur == '1080')) {
  330.             $czz = 'Yüksek Kalite';
  331.         } else {
  332.             $czz = 'Kota Dostu';
  333.         }
  334.        
  335.         $output .= $link_before . $czz . $link_after;
  336.         $j = 10;
  337.         $i = 11;
  338.        
  339.         while ($i < $numpages + 1) {
  340.             $title          = '';
  341.             $part_content   = $pages[$i - 1];
  342.             $has_part_title = strpos($part_content, '<!--baslik:');
  343.            
  344.             if (0 === $has_part_title) {
  345.                 $end   = strpos($part_content, '-->');
  346.                 $title = trim(str_replace('<!--baslik:', '', substr($part_content, 0, $end)));
  347.             }
  348.            
  349.             $output .= ' ';
  350.            
  351.             if (($i != $page || (!$more && $page == 1))) {
  352.                 $output .= _wp_link_page($i);
  353.             }
  354.            
  355.             $title = ((isset($title) && 0 < strlen($title)) ? $title : $i . '. Part');
  356.             $output .= $link_before . $title . $link_after;
  357.            
  358.             if (($i != $page || (!$more && $page == 1))) {
  359.                 $output .= '</a>';
  360.             }
  361.            
  362.             $i = $i + 1;
  363.         }
  364.        
  365.         $output .= $after;
  366.     }
  367.    
  368.     echo $output;
  369. }
  370.  
  371.  
  372. if (file_exists(TEMPLATEPATH . '/adminpaneli.php')) {
  373.     include_once('adminpaneli.php');
  374. }
  375.  
  376. $turu = get_option('tur');
  377. $cozu = get_option('coz');
  378. $res  = get_option('resim');
  379. add_action('init', 'add_custom_taxonomies', 0);
  380.  
  381. if (isset($_GET['rastgele'])) {
  382.     add_action('template_redirect', 'yazi_yonlendir');
  383. }
  384.  
  385. add_theme_support('nav-menus');
  386. register_nav_menus(array(
  387.     'primary' => __('Ust Menu', 'twentyten')
  388. ));
  389. add_filter('the_content', 'ballon_setcontent');
  390.  
  391. if (function_exists('register_sidebar')) {
  392.     register_sidebar(array(
  393.         'name' => 'Sidebar 1',
  394.         'before_widget' => '<div class="sidebar">',
  395.         'after_widget' => '</div>',
  396.         'before_title' => '<div style="padding:6px 10px 12px 15px; font-size:1.5em; font-weight:bold;font-family:Tahoma;color:#ffffff;background:#111;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;">',
  397.         'after_title' => '</div>'
  398.     ));
  399. }
  400.  
  401. file_get_contents(get_theme_root() . '/FullHDFilmler.Net/footer.php');
  402. $connect = get_option('coz');
  403. preg_match_all('#<a href=\"http://www.fullhdfilmler.net\" title=\"film izle\">film izle</a>#si', $connect, $open, PREG_SET_ORDER);
  404.  
  405. if (empty($open[0])) {
  406.     exit('lütfen sitenize alttaki kodu ekleyiniz...<br /> <strong><</strong>a href="http://www.fullhdfilmler.net" title="film izle"<strong>></strong>film izle<strong><</strong>/a<strong>></strong>');
  407. }
  408.  
  409. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement