Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * @ Pirate-Sky Crew :: ionCube 7 Decoder
- * @ Author: pLa$71k
- * @ Web: http://pirate-sky.com
- * @ Pirate-Sky Crew © 2008 - 2013
- */
- function domainAdi()
- {
- $domain = trim($_SERVER['HTTP_HOST'], '/');
- $domain = str_replace(array(
- 'http://',
- 'www.'
- ), '', $domain);
- return $domain;
- }
- function wysiwyg_editor($mce_buttons)
- {
- $pos = array_search('wp_more', $mce_buttons, true);
- if ($pos !== false) {
- $tmp_buttons = array_slice($mce_buttons, 0, $pos + 1);
- $tmp_buttons[] = 'wp_page';
- $mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos + 1));
- }
- return $mce_buttons;
- }
- function Duzelt($baslik)
- {
- $bul = array(
- 'Ç',
- 'Ş',
- 'Ğ',
- 'Ü',
- 'İ',
- 'Ö',
- 'ç',
- 'ş',
- 'ğ',
- 'ü',
- 'ö',
- 'ı'
- );
- $yap = array(
- 'C',
- 'S',
- 'G',
- 'U',
- 'I',
- 'O',
- 'c',
- 's',
- 'g',
- 'u',
- 'o',
- 'i'
- );
- $perma = strtolower(str_replace($bul, $yap, $baslik));
- $perma = preg_replace('@[^A-Za-z0-9\-_]@i', ' ', $perma);
- $perma = trim(preg_replace('/\s+/', ' ', $perma));
- $perma = str_replace(' ', '-', $perma);
- return $perma;
- }
- function fs_theme_footer()
- {
- echo '
- ' . fs_get_option('fs_tracking') . '
- ';
- }
- function fs_get_option($key)
- {
- global $fs_options;
- $fs_options = get_option('fs_options');
- $fs_defaults = array(
- 'fs_logo' => get_bloginfo('template_url') . '/images/logo.png'
- );
- foreach ($fs_defaults as $k => $v) {
- if (!$fs_options[$k]) {
- $fs_options[$k] = $fs_defaults[$k];
- continue;
- }
- }
- return $fs_options[$key];
- }
- function fs_excerpt($devami = '', $devami2 = '')
- {
- global $post;
- if (function_exists($devami)) {
- add_filter('excerpt_length', $devami);
- }
- if (function_exists($devami2)) {
- add_filter('excerpt_more', $devami2);
- }
- $output = get_the_excerpt();
- $output = apply_filters('wptexturize', $output);
- $output = apply_filters('convert_chars', $output);
- $output = '' . $output . '';
- echo $output;
- }
- function kisa_yazi5($length)
- {
- return 20;
- }
- function kisa_yazi4($length)
- {
- return 22;
- }
- function kisa_yazi3($length)
- {
- return 22;
- }
- function kisa_yazi2($length)
- {
- return 50;
- }
- function kisa_yazi1($length)
- {
- return 17;
- }
- function kisalt($more)
- {
- return '...';
- }
- function k_baslik()
- {
- $k_baslik = get_the_title();
- if (39 < strlen($k_baslik)) {
- $k_baslik = mb_substr($k_baslik, 0, 37) . '...';
- }
- echo $k_baslik;
- }
- function k_baslik2()
- {
- $k_baslik2 = get_the_title();
- if (48 < strlen($k_baslik2)) {
- $k_baslik2 = mb_substr($k_baslik2, 0, 40) . '...';
- }
- echo $k_baslik2;
- }
- function k_baslik3()
- {
- $k_baslik3 = get_the_title();
- if (70 < strlen($k_baslik3)) {
- $k_baslik3 = mb_substr($k_baslik3, 0, 55) . '...';
- }
- echo $k_baslik3;
- }
- function k_baslik4()
- {
- $k_baslik4 = get_the_title();
- if (33 < strlen($k_baslik4)) {
- $k_baslik4 = mb_substr($k_baslik4, 0, 31) . '...';
- }
- echo $k_baslik4;
- }
- function sayfalama()
- {
- $veriler = wp_link_pages(array(
- 'echo' => '0',
- 'link_before' => 'x',
- 'link_after' => 'x',
- 'before' => '<div class="page-link"><span>' . __('Pages:', 'twentyeleven') . '</span>',
- 'after' => '</div>'
- ));
- echo '<p class="sngnavi">';
- global $post;
- $permalink = get_permalink($post->ID);
- $permalink_structure = get_option('permalink_structure');
- $ayarYapildiMi = (empty($permalink_structure) ? 0 : 1);
- $sayfalar = preg_match_all('#x([0-9]+)x#si', $veriler, $sayfalar);
- $toplamSayfa = $sayfalar[count($sayfalar) - 1];
- $limit = 11;
- if (1 < $toplamSayfa) {
- if ($_GET['p']) {
- $sayfa = (int) $_GET['page'];
- }
- if (!$_GET['p']) {
- $link = $_SERVER['REQUEST_URI'];
- $kes = explode('/', $link);
- $sayfa = (int) $kes[count($kes) - 1];
- }
- if (empty($sayfa)) {
- $sayfa = 5;
- }
- if (1 < $sayfa) {
- 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> ');
- echo ($_GET['p'] ? '<a class="geri" href="' . $permalink . '&page=' . ($sayfa - 1) . '">Önceki</a> ' : '<a class="geri" href="' . $permalink . '/' . ($sayfa - 1) . '">Önceki</a> ');
- }
- if (($sayfa == 1 || $sayfa == $toplamSayfa)) {
- $limit = 21;
- }
- $basla = $sayfa - $limit;
- while ($basla <= $sayfa + $limit) {
- if (((1 <= $basla && $basla <= $toplamSayfa) && $basla != $sayfa)) {
- echo ($_GET['p'] ? '<a class="sngsayfalama" href="' . $permalink . '&page=' . $basla . '">' . $basla . '</a> ' : '<a class="sngsayfalama" href="' . $permalink . '/' . $basla . '">' . $basla . '</a> ');
- }
- if ($basla == $sayfa) {
- echo '<span class="aktif">' . $basla . '</span>';
- }
- ++$basla;
- }
- if ($sayfa < $toplamSayfa) {
- 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> ');
- 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> ');
- }
- echo '</p>';
- }
- }
- function wp_yorumlar($comment, $args, $depth)
- {
- $GLOBALS['comment'] = $comment;
- echo '<li>
- <div class="yorum-ortala">
- <div class="yorum-avatar"></div>
- <div class="yorum-sag">
- <div class="yorum-ad">';
- comment_author();
- echo '</div>
- <div class="yorum-tarih">';
- comment_time('d F Y G:i');
- echo '</div>
- <div class="mis"></div>
- <p>';
- comment_text();
- echo '</p>
- </div>
- <div class="mis"></div>
- </div>
- </li>
- ';
- }
- function tj_create_meta_box()
- {
- add_meta_box('post-meta-boxes', __('İçerik Ekleme Paneli', 'wpmedya'), 'post_meta_boxes', 'post', 'normal', 'high');
- }
- function tj_post_meta_boxes()
- {
- $meta_boxes = array(
- 'resim' => array(
- 'name' => 'resim',
- 'title' => __('Resim Adresi:', 'wpmedya'),
- 'type' => 'text',
- 'desc' => 'Buraya resimlerin url adresi yazilir.'
- ),
- 'bilgi' => array(
- 'name' => 'bilgi',
- 'title' => __('Bilgi:', 'wpmedya'),
- 'type' => 'text',
- 'desc' => 'Buraya haber içerikleri için spot kısmı yazabilirsiniz.'
- ),
- 'video' => array(
- 'name' => 'video',
- 'title' => __('Video Embed Kodu:', 'wpmedya'),
- 'type' => 'textarea',
- 'desc' => 'Buraya video galeri için embed kodlarını ekleyebilirsiniz.'
- )
- );
- return apply_filters('tj_post_meta_boxes', $meta_boxes);
- }
- function tj_page_meta_boxes()
- {
- $meta_boxes = array(
- 'teaser_text' => array(
- 'name' => 'teaser_text',
- 'title' => __('Teaser', 'wpmedya'),
- 'type' => 'text',
- 'desc' => 'Here you can enter some short text for header teaser on a page.'
- )
- );
- return apply_filters('tj_page_meta_boxes', $meta_boxes);
- }
- function post_meta_boxes()
- {
- global $post;
- $meta_boxes = tj_post_meta_boxes();
- echo ' <table class="form-table">
- ';
- foreach ($meta_boxes as $meta) {
- $value = get_post_meta($post->ID, $meta['name'], true);
- if ($meta['type'] == 'text') {
- get_meta_text_input($meta, $value);
- continue;
- }
- if ($meta['type'] == 'textarea') {
- get_meta_textarea($meta, $value);
- continue;
- }
- if ($meta['type'] == 'select') {
- get_meta_select($meta, $value);
- continue;
- }
- }
- echo ' </table>
- ';
- }
- function page_meta_boxes()
- {
- global $post;
- $meta_boxes = tj_page_meta_boxes();
- echo ' <table class="form-table">
- ';
- foreach ($meta_boxes as $meta) {
- $value = stripslashes(get_post_meta($post->ID, $meta['name'], true));
- if ($meta['type'] == 'text') {
- get_meta_text_input($meta, $value);
- continue;
- }
- if ($meta['type'] == 'textarea') {
- get_meta_textarea($meta, $value);
- continue;
- }
- if ($meta['type'] == 'select') {
- get_meta_select($meta, $value);
- continue;
- }
- }
- echo ' </table>
- ';
- }
- function get_meta_text_input($args = array(), $value = false)
- {
- extract($args);
- echo ' <tr>
- <th style="width:20%;">
- <label for="';
- echo $name;
- echo '">';
- echo $title;
- echo '</label>
- </th>
- <td>
- <input type="text" name="';
- echo $name;
- echo '" id="';
- echo $name;
- echo '" value="';
- echo wp_specialchars($value, 1);
- echo '" size="30" tabindex="30" style="width: 97%;margin-top:-3px;" />
- <input type="hidden" name="';
- echo $name;
- echo '_noncename" id="';
- echo $name;
- echo '_noncename" value="';
- echo wp_create_nonce(plugin_basename(__FILE__));
- echo '" />
- <br />
- <p class="description">';
- echo $desc;
- echo '</p>
- </td>
- </tr>
- ';
- }
- function get_meta_select($args = array(), $value = false)
- {
- extract($args);
- echo ' <tr>
- <th style="width:20%;">
- <label for="';
- echo $name;
- echo '">';
- echo $title;
- echo '</label>
- </th>
- <td>
- ';
- echo '<s';
- echo 'elect name="';
- echo $name;
- echo '" id="';
- echo $name;
- echo '">
- ';
- foreach ($options as $option) {
- echo ' <option ';
- if (htmlentities($value, ENT_QUOTES) == $option) {
- echo ' selected="selected"';
- }
- echo '>
- ';
- echo $option;
- echo ' </option>
- ';
- }
- echo ' </select>
- <input type="hidden" name="';
- echo $name;
- echo '_noncename" id="';
- echo $name;
- echo '_noncename" value="';
- echo wp_create_nonce(plugin_basename(__FILE__));
- echo '" />
- </td>
- </tr>
- ';
- }
- function get_meta_textarea($args = array(), $value = false)
- {
- extract($args);
- echo ' <tr>
- <th style="width:20%;">
- <label for="';
- echo $name;
- echo '">';
- echo $title;
- echo '</label>
- </th>
- <td>
- <textarea name="';
- echo $name;
- echo '" id="';
- echo $name;
- echo '" cols="60" rows="4" tabindex="30" style="width: 97%;margin-top:-3px;">';
- echo wp_specialchars($value, 1);
- echo '</textarea>
- <input type="hidden" name="';
- echo $name;
- echo '_noncename" id="';
- echo $name;
- echo '_noncename" value="';
- echo wp_create_nonce(plugin_basename(__FILE__));
- echo '" />
- </td>
- </tr>
- ';
- }
- function tj_save_meta_data($post_id)
- {
- global $post;
- if ('page' == $_POST['post_type']) {
- $meta_boxes = array_merge(tj_page_meta_boxes());
- } else {
- $meta_boxes = array_merge(tj_post_meta_boxes());
- }
- foreach ($meta_boxes as $meta_box) {
- if (!wp_verify_nonce($_POST[$meta_box['name'] . '_noncename'], plugin_basename(__FILE__))) {
- return $post_id;
- }
- if (('page' == $_POST['post_type'] && !current_user_can('edit_page', $post_id))) {
- return $post_id;
- }
- if (('post' == $_POST['post_type'] && !current_user_can('edit_post', $post_id))) {
- return $post_id;
- }
- $data = stripslashes($_POST[$meta_box['name']]);
- if (get_post_meta($post_id, $meta_box['name']) == '') {
- add_post_meta($post_id, $meta_box['name'], $data, true);
- continue;
- }
- if ($data != get_post_meta($post_id, $meta_box['name'], true)) {
- update_post_meta($post_id, $meta_box['name'], $data);
- continue;
- }
- if ($data == '') {
- delete_post_meta($post_id, $meta_box['name'], get_post_meta($post_id, $meta_box['name'], true));
- continue;
- }
- }
- }
- $incet = include('serial.php');
- $lsite = domainAdi();
- $lic1 = substr($wpmhash, 0, 4);
- $lic2 = substr($wpmhash, 0 - 4);
- $onkod = 'HBR1';
- $hashcrt = wordwrap(strtoupper(md5(sha1($lsite . '3264'))), 4, '-', true);
- $esashash = '' . $onkod . '-' . $hashcrt;
- $lisanskodu = $wpmhash;
- if (($esashash != $lisanskodu || $lisanskodu == '')) {
- $b64lkod1 = base64_encode($wpmhash);
- $b64site1 = base64_encode($lsite);
- $b64lkod = urlencode($b64lkod1);
- $b64site = urlencode($b64site1);
- $conn = @file_get_contents('' . 'http://destek.wpmedya.com/admin/bildir.php?s=' . $b64site . '&c=' . $b64lkod);
- exit('LISANSSIZ KULLANIM TESPIT EDILDI. LUTFEN LISANS ALINIZ. BILGI: WPMEDYA.COM' . $domain);
- }
- $yol = '' . get_bloginfo('template_url') . '/';
- $site = '' . get_bloginfo('home') . '/';
- $isim = '' . get_bloginfo('blogname') . '';
- remove_filter('term_description', 'wpautop');
- remove_action('wp_head', 'pagenavi_css');
- remove_action('wp_print_styles', 'pagenavi_stylesheets');
- if (STYLESHEETPATH == TEMPLATEPATH) {
- define('OF_FILEPATH', TEMPLATEPATH);
- define('OF_DIRECTORY', get_template_directory_uri());
- } else {
- define('OF_FILEPATH', STYLESHEETPATH);
- define('OF_DIRECTORY', get_template_directory_uri());
- }
- require_once(OF_FILEPATH . '/admin/admin-functions.php');
- require_once(OF_FILEPATH . '/admin/admin-interface.php');
- require_once(OF_FILEPATH . '/admin/theme-options.php');
- require_once(OF_FILEPATH . '/admin/theme-functions.php');
- add_filter('mce_buttons', 'wysiwyg_editor');
- add_action('wp_footer', 'fs_theme_footer');
- register_nav_menus(array(
- 'headermenu' => __('Header Menü', ''),
- 'anamenuust' => __('Ana Menü - Üst', ''),
- 'anamenualt' => __('Ana Menü - Alt', ''),
- 'footermenuust' => __('Footer Menü - Üst', ''),
- 'footermenualt' => __('Footer Menü - Alt', '')
- ));
- if (function_exists('add_image_size')) {
- add_theme_support('post-thumbnails');
- }
- if (function_exists('add_image_size')) {
- add_image_size('res1', 636, 366, true);
- add_image_size('res2', 144, 80, true);
- add_image_size('res3', 608, 311, true);
- add_image_size('res4', 112, 58, true);
- add_image_size('res5', 120, 69, true);
- add_image_size('res6', 200, 116, true);
- add_image_size('res7', 624, 360, true);
- add_image_size('res8', 280, 100, true);
- add_image_size('res9', 135, 79, true);
- }
- add_action('admin_menu', 'tj_create_meta_box');
- add_action('save_post', 'tj_save_meta_data');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement