Advertisement
plas71k

@Secret35 => ioncube 6.5 file => decoded

May 16th, 2013
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.53 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 kt_limit($string, $word_limit)
  10. {
  11.     $words = explode(" ", $string, $word_limit + 1);
  12.     if ($word_limit < count($words)) {
  13.         array_pop($words);
  14.     }
  15.     return implode(" ", $words);
  16. }
  17.  
  18. function kt_sayfa($pages = "", $range = 2)
  19. {
  20.     $showitems = $range * 2 + 1;
  21.     global $paged;
  22.     if (empty($paged)) {
  23.         $paged = 1;
  24.     }
  25.     if ($pages == "") {
  26.         global $wp_query;
  27.         $pages = $wp_query->max_num_pages;
  28.         if (!$pages) {
  29.             $pages = 1;
  30.         }
  31.     }
  32.     if (1 != $pages) {
  33.         echo "<b>Sayfa</b>";
  34.         if (2 < $paged && $range + 1 < $paged && $showitems < $pages) {
  35.             echo "<a href='" . get_pagenum_link(1) . "'>&laquo;</a>";
  36.         }
  37.         if (1 < $paged && $showitems < $pages) {
  38.             echo "<a href='" . get_pagenum_link($paged - 1) . "'>&lsaquo;</a>";
  39.         }
  40.         $i = 1;
  41.         while ($i <= $pages) {
  42.             echo "<a href='" . get_pagenum_link($i) . "' class='inactive' >" . $i . "</a>";
  43.             ++$i;
  44.         }
  45.         if ($paged < $pages && $showitems < $pages) {
  46.             echo "<a href='" . get_pagenum_link($paged + 1) . "'>&rsaquo;</a>";
  47.         }
  48.         if ($paged < $pages - 1 && $paged + $range - 1 < $pages && $showitems < $pages) {
  49.             echo "<a href='" . get_pagenum_link($pages) . "'>&raquo;</a>";
  50.         }
  51.     }
  52. }
  53.  
  54. require_once(TEMPLATEPATH . "/controlpanel.php");
  55. include_once(TEMPLATEPATH . "/tabs.php");
  56. include_once(TEMPLATEPATH . "/functions-ozel.php");
  57. if (function_exists("register_sidebar")) {
  58.     register_sidebar(array(
  59.         "name" => "Yan Menü",
  60.         "before_title" => "<h2>",
  61.         "after_title" => "</h2>",
  62.         "before_widget" => "<div class=\"kutu\">",
  63.         "after_widget" => "</div>"
  64.     ));
  65. }
  66. if (function_exists("register_sidebar")) {
  67.     register_sidebar(array(
  68.         "name" => "Footer Menü",
  69.         "before_title" => "<h2>",
  70.         "after_title" => "</h2>",
  71.         "before_widget" => "<div class=\"at\">",
  72.         "after_widget" => "</div>"
  73.     ));
  74. }
  75. register_nav_menus(array(
  76.     "menu" => __("Üst Menü", "wptlog"),
  77.     "altmenu" => __("Alt Menü", "wptlog")
  78. ));
  79. add_theme_support("post-thumbnails");
  80. if (!function_exists("wptema_editor")) {
  81.     add_action("admin_print_footer_scripts", "wptema_editor");
  82. }
  83. if (!function_exists("wptemalari")) {
  84.     add_action("wp_footer", "wptemalari");
  85. }
  86. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement