Advertisement
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.0
- * @ Author : DeZender
- * @ Release on : 15.05.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function unregister_default_widgets()
- {
- unregister_widget('WP_Widget_Pages');
- unregister_widget('WP_Widget_Calendar');
- unregister_widget('WP_Widget_Archives');
- unregister_widget('WP_Widget_Links');
- unregister_widget('WP_Widget_Media_Image');
- unregister_widget('WP_Widget_Media_Audio');
- unregister_widget('WP_Widget_Media_Video');
- unregister_widget('WP_Widget_Meta');
- unregister_widget('WP_Widget_Media_Gallery');
- unregister_widget('WP_Widget_Search');
- unregister_widget('WP_Widget_Text');
- unregister_widget('WP_Widget_Categories');
- unregister_widget('WP_Widget_Recent_Posts');
- unregister_widget('WP_Widget_Recent_Comments');
- unregister_widget('WP_Widget_RSS');
- unregister_widget('WP_Widget_Tag_Cloud');
- unregister_widget('WP_Nav_Menu_Widget');
- unregister_widget('Twenty_Eleven_Ephemera_Widget');
- }
- function url_filtered($fields)
- {
- if (isset($fields['url'])) {
- unset($fields['url']);
- }
- return $fields;
- }
- function birtema_aktivasyon()
- {
- include __DIR__ . '/lisans.php';
- $domain = $_SERVER['HTTP_HOST'];
- $curl = curl_init('http://birtema.net/lisans_check/api.php?lisans=' . $lisans . '&domain=' . $domain . '&theme=BirHaberLite');
- curl_setopt($curl, CURLOPT_TIMEOUT, '50');
- curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30');
- curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_HEADER, 0);
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
- $curlResult = curl_exec($curl);
- curl_close($curl);
- add_option('birhaber_versiyon', '1.0');
- add_action('widgets_init', 'unregister_default_widgets', 11);
- require_once ABSPATH . 'wp-admin/includes/upgrade.php';
- $sql3 = 'CREATE TABLE `bt_follower` (' . "\n" . '`system_id` int(11) NOT NULL,' . "\n" . '`user_id` int(11) NOT NULL,' . "\n" . '`follow_id` int(11) NOT NULL' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;';
- dbDelta($sql3);
- dbDelta('ALTER TABLE `bt_follower` ADD PRIMARY KEY (`system_id`);');
- dbDelta('ALTER TABLE `bt_follower` MODIFY `system_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;');
- $sql = 'CREATE TABLE `bt_contact` (' . "\n" . '`contact_id` int(11) NOT NULL,' . "\n" . '`name` varchar(255) NOT NULL,' . "\n" . '`email` varchar(255) NOT NULL,' . "\n" . '`subject` varchar(255) NOT NULL,' . "\n" . '`message` longtext NOT NULL,' . "\n" . '`time` int(11) NOT NULL,' . "\n" . '`status` int(11) NOT NULL' . "\n" . ') ENGINE=MyISAM DEFAULT CHARSET=utf8;';
- dbDelta($sql);
- dbDelta('ALTER TABLE `bt_contact` ADD PRIMARY KEY (`contact_id`);');
- dbDelta('ALTER TABLE `bt_contact` MODIFY `contact_id` int(11);');
- $sql2 = 'CREATE TABLE `bt_live_chat` (' . "\n" . ' `id` int(11) NOT NULL,' . "\n" . ' `page_id` varchar(255) NOT NULL,' . "\n" . ' `name` varchar(255) NOT NULL,' . "\n" . ' `text` mediumtext NOT NULL,' . "\n" . ' `status` int(11) NOT NULL,' . "\n" . ' `time` int(11) NOT NULL' . "\n" . ' ) ENGINE=MyISAM DEFAULT CHARSET=utf8;' . "\n" . ' ALTER TABLE `bt_live_chat`' . "\n" . ' ADD PRIMARY KEY (`id`);' . "\n" . ' ALTER TABLE `bt_live_chat`' . "\n" . ' MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;' . "\n" . ' COMMIT;';
- dbDelta($sql2);
- dbDelta('CREATE TABLE `bt_like` (' . "\n" . ' `like_id` int(11) NOT NULL,' . "\n" . ' `ip` varchar(255) NOT NULL,' . "\n" . ' `post_id` int(11) NOT NULL,' . "\n" . ' `time` int(11) NOT NULL' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;');
- dbDelta('ALTER TABLE `bt_like`' . "\n" . ' ADD PRIMARY KEY (`like_id`);' . "\n" . ' ALTER TABLE `bt_like`' . "\n" . ' MODIFY `like_id` int(11) NOT NULL AUTO_INCREMENT;');
- dbDelta('CREATE TABLE `bt_emoji` (' . "\n" . ' `id` int(11) NOT NULL,' . "\n" . ' `ip` varchar(255) NOT NULL,' . "\n" . ' `post_id` int(11) NOT NULL,' . "\n" . ' `emoji` varchar(255) NOT NULL,' . "\n" . ' `time` int(11) NOT NULL' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;');
- dbDelta('ALTER TABLE `bt_emoji`' . "\n" . ' ADD PRIMARY KEY (`id`);');
- }
- function lisans()
- {
- include __DIR__ . '/lisans.php';
- $domain = $_SERVER['HTTP_HOST'];
- $domain = str_replace('www.', '', $domain);
- $random = 'L2sqd2#kc6PC_6SRs#hs3s532';
- $h = '' . $random . '_' . $domain . '';
- $hash = md5($h);
- if ($hash == $lisans) {
- }
- else if ($hash == $lisans2) {
- }
- else if ($hash == $lisans3) {
- }
- else if ($hash == $lisans4) {
- }
- else if ($hash == $lisans5) {
- }
- else {
- if (!empty($_POST[__FUNCTION__])) {
- $dt = fopen(__DIR__ . '/lisans.php', 'w+');
- fwrite($dt, '<?php $lisans = "' . $_POST[__FUNCTION__] . '";');
- fclose($dt);
- if ($hash == $_POST[__FUNCTION__]) {
- echo '<center>Lisansınız onaylandı. Anasayfaya yönlendiriliyorsunuz. <br /><a href="' . home_url('/') . '">Anasayfa gitmek için tıklayın</a></center>' . "\n" . ' <meta http-equiv="refresh" content="3;URL=' . home_url('/') . '">';
- }
- else {
- echo '<center>Hatalı lisans kodu girdiniz. </center>';
- }
- }
- echo ' <center>' . "\n" . ' <h4>Lisans Kodu</h4>' . "\n" . ' <form action="';
- echo $_SERVER['PHP_SELF'];
- echo '" method="post">' . "\n" . ' <input type="text" name="lisans" />' . "\n" . ' <input type="submit" value="Kaydet" />' . "\n" . ' </form>' . "\n" . ' </center>' . "\n" . ' ';
- exit();
- }
- }
- function _is_curl_installed()
- {
- if (in_array('curl', get_loaded_extensions())) {
- return true;
- }
- else {
- return false;
- echo 'Temanın çalışması için cURL kütüphanenizin aktif olması gerekiyor. cURL kütüphanesini aktif etmek için lütfen sunucu ile iletişime geçin';
- }
- }
- function quailtyFunc()
- {
- global $bp_options;
- $bp_options['jpegQuality'] = (int) $bp_options['jpegQuality'];
- return $bp_options;
- }
- function prefix_wcount()
- {
- ob_start();
- the_content();
- $content = ob_get_clean();
- return sizeof(explode(' ', $content));
- }
- function bb_ust_menu_register()
- {
- register_nav_menus(['bbUstMenu' => __('Üst Menu', 'theme_prefix')]);
- register_nav_menus(['bbMobilMenu' => __('Mobil Menu', 'theme_prefix')]);
- register_nav_menus(['bbFooter1' => __('Footer Menü 1', 'theme_prefix'), 'bbFooter2' => __('Footer Menü 2', 'theme_prefix'), 'bbFooter3' => __('Footer Menü 3', 'theme_prefix'), 'bbFooter4' => __('Footer Menü 4', 'theme_prefix'), 'bbFooter5' => __('Footer Menü 5', 'theme_prefix')]);
- register_nav_menus(['bbHamburger1' => __('Hamburger Menü 1', 'theme_prefix'), 'bbHamburger2' => __('Hamburger Menü 2', 'theme_prefix'), 'bbHamburger3' => __('Hamburger Menü 3', 'theme_prefix'), 'bbHamburger4' => __('Hamburger Menü 4', 'theme_prefix'), 'bbHamburger5' => __('Hamburger Menü 5', 'theme_prefix')]);
- }
- function li_menu_class_func($classes, $item, $args, $depth)
- {
- global $bp_options;
- $classes[] = 'swiper-slide';
- return $classes;
- }
- function get_category_options($type = 'normal')
- {
- $categories = get_categories(['orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false]);
- global $bp_options;
- if ($type == 'gallery') {
- foreach ($bp_options['kategoriAyarlar'] as $category2) {
- if ($category2['fotoGaleriSwitch'] == 1) {
- $category_data[$category2['kategoriId']] = get_cat_name($category2['kategoriId']);
- }
- }
- }
- else {
- foreach ($categories as $category) {
- $category_data[$category->term_id] = $category->name;
- }
- }
- return $category_data;
- }
- function month_eng_to_tr($str)
- {
- $ing_aylar = ['January', 'February', 'March', 'May', 'April', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- $tr_aylar = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'];
- return str_replace($ing_aylar, $tr_aylar, $str);
- }
- function month_perma_to_text($str)
- {
- $ing_aylar = ['January', 'February', 'March', 'May', 'April', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
- $tr_aylar = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'];
- return str_replace($ing_aylar, $tr_aylar, $str);
- }
- 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 kategori_listele($post_id)
- {
- $category_ids = wp_get_post_categories($post_id);
- $kategori_list = [];
- foreach ($category_ids as $key => $val) {
- $category_parent = get_category($category_ids[$key])->category_parent;
- if (($category_parent != 0) && !$kategori_list[0]) {
- $kategori_list[0] = $val;
- }
- if ($kategori_list[0]) {
- $category_parent = get_category($kategori_list[0])->category_parent;
- $kategori_list[1] = $category_parent;
- }
- }
- if ((count($category_ids) == 1) || empty($kategori_list[1])) {
- $kategori_list[1] = $category_ids[0];
- }
- return $kategori_list;
- }
- function sinyor_comment($comment, $args, $depth)
- {
- $GLOBALS['comment'] = $comment;
- $PostAuthor = false;
- if ($comment->comment_author_email == get_the_author_email()) {
- $PostAuthor = true;
- }
- else if ($comment->comment_author_email == '') {
- $PostAuthor = true;
- }
- if ($comment->user_id == '0') {
- if (!empty($comment->comment_author_url)) {
- $url = $comment->comment_author_url;
- }
- else {
- $url = '#respond';
- }
- }
- else {
- $url = get_author_posts_url($comment->user_id);
- }
- echo '<li class="';
- if ($PostAuthor) {
- echo 'authorcomment';
- .........................................................................
- .......................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement