Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function lisans()
- {
- include 'lisans.php';
- $domain = $_SERVER['HTTP_HOST'];
- $domain = str_replace('www.', '', $domain);
- $random = 'bir654tema321';
- $h = '' . $random . '_' . $domain . '';
- $hash = md5($h);
- if ($lisans != $hash) {
- echo 'Bu Tema Lisanssızdır. Lisansını almak için info@birtema.com mail adresinden iletişime geçebilirsiniz.';
- exit();
- }
- }
- function create_my_taxonomies()
- {
- register_taxonomy('blogetiket', 'post', ['hierarchical' => false, 'label' => 'Blog Etiket', 'query_var' => true, 'rewrite' => true]);
- }
- function kategori_id()
- {
- global $wp_query;
- if (is_category() || is_single()) {
- $cat_ID = get_query_var('cat');
- }
- return $cat_ID;
- }
- function SearchFilter($query)
- {
- if ($query->is_search && !$query->is_admin) {
- $query->set('post_type', 'post');
- }
- return $query;
- }
- function getPostViews($postID)
- {
- $count_key = 'post_views_count';
- $count = get_post_meta($postID, $count_key, true);
- if ($count == '') {
- delete_post_meta($postID, $count_key);
- add_post_meta($postID, $count_key, '0');
- return '0';
- }
- return $count . '';
- }
- function setPostViews($postID)
- {
- $count_key = 'post_views_count';
- $count = get_post_meta($postID, $count_key, true);
- if ($count == '') {
- $count = 0;
- delete_post_meta($postID, $count_key);
- add_post_meta($postID, $count_key, '0');
- }
- else {
- $count++;
- update_post_meta($postID, $count_key, $count);
- }
- }
- function sayfalama($pages = '', $range = 3)
- {
- $showitems = ($range * 2) + 1;
- global $paged;
- if (empty($paged)) {
- $paged = 1;
- }
- if ($pages == '') {
- global $wp_query;
- $pages = $wp_query->max_num_pages;
- if (!$pages) {
- $pages = 1;
- }
- }
- if (1 != $pages) {
- echo '<ul>';
- if ((2 < $paged) && (($range + 1) < $paged) && ($showitems < $pages)) {
- ..........................................................
- ...................................
- ..............
Add Comment
Please, Sign In to add comment