Guest User

Untitled

a guest
Apr 3rd, 2021
26
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.1.0.1
  8. * @ Author : DeZender
  9. * @ Release on : 29.08.2020
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function url_filtered($fields)
  15. {
  16. if (isset($fields['url'])) {
  17. unset($fields['url']);
  18. }
  19.  
  20. return $fields;
  21. }
  22.  
  23. function haberadam_aktivasyon()
  24. {
  25. include __DIR__ . '/lisans.php';
  26. $domain = $_SERVER['HTTP_HOST'];
  27. $curl = curl_init('https://temadam.com/lisans_check/api.php?lisans=' . $lisans . '&domain=' . $domain . '&theme=HaberAdam');
  28. curl_setopt($curl, CURLOPT_TIMEOUT, '50');
  29. 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');
  30. curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
  31. curl_setopt($curl, CURLOPT_HEADER, 0);
  32. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  33. $curlResult = curl_exec($curl);
  34. curl_close($curl);
  35. add_option('haberadam_versiyon', '1.0');
  36. add_action('widgets_init', 'unregister_default_widgets', 11);
  37. require_once ABSPATH . 'wp-admin/includes/upgrade.php';
  38. $sql3 = 'CREATE TABLE `ta_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;';
  39. dbDelta($sql3);
  40. dbDelta('ALTER TABLE `ta_follower` ADD PRIMARY KEY (`system_id`);');
  41. dbDelta('ALTER TABLE `ta_follower` MODIFY `system_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;');
  42. $sql = 'CREATE TABLE `ta_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" . '`ip` varchar(255) NOT NULL' . "\n" . ') ENGINE=MyISAM DEFAULT CHARSET=utf8;';
  43. dbDelta($sql);
  44. dbDelta('ALTER TABLE `ta_contact` ADD PRIMARY KEY (`contact_id`);');
  45. dbDelta('ALTER TABLE `ta_contact` MODIFY `contact_id` int(11);');
  46. dbDelta('CREATE TABLE `ta_like` (' . "\n" . ' `like_id` int(11) NOT NULL,' . "\n" . ' `ip` varchar(255) NOT NULL,' . "\n" . ' `post_id` int(11) NOT NULL,' . "\n" . ' `user_id` int(11) NOT NULL,' . "\n" . ' `time` int(11) NOT NULL' . "\n" . ') ENGINE=InnoDB DEFAULT CHARSET=utf8;');
  47. dbDelta('ALTER TABLE `ta_like`' . "\n" . ' ADD PRIMARY KEY (`like_id`);' . "\n" . ' ALTER TABLE `ta_like`' . "\n" . ' MODIFY `like_id` int(11) NOT NULL AUTO_INCREMENT;');
  48. dbDelta('CREATE TABLE `ta_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;');
  49. dbDelta('ALTER TABLE `ta_emoji`' . "\n" . ' ADD PRIMARY KEY (`id`);');
  50. }
  51.  
  52. function unregister_default_widgets()
  53. {
  54. unregister_widget('WP_Widget_Pages');
  55. unregister_widget('WP_Widget_Calendar');
  56. unregister_widget('WP_Widget_Archives');
  57. unregister_widget('WP_Widget_Links');
  58. unregister_widget('WP_Widget_Media_Image');
  59. unregister_widget('WP_Widget_Media_Audio');
  60. unregister_widget('WP_Widget_Media_Video');
  61. unregister_widget('WP_Widget_Meta');
  62. unregister_widget('WP_Widget_Media_Gallery');
  63. unregister_widget('WP_Widget_Search');
  64. unregister_widget('WP_Widget_Text');
  65. unregister_widget('WP_Widget_Categories');
  66. unregister_widget('WP_Widget_Recent_Posts');
  67. unregister_widget('WP_Widget_Recent_Comments');
  68. unregister_widget('WP_Widget_RSS');
  69. unregister_widget('WP_Widget_Tag_Cloud');
  70. unregister_widget('WP_Nav_Menu_Widget');
  71. unregister_widget('Twenty_Eleven_Ephemera_Widget');
  72. $upload = wp_upload_dir();
  73. $upload_dir = $upload['basedir'];
  74. $upload_dir = $upload_dir . '/profile-photo';
  75.  
  76. if (!is_dir($upload_dir)) {
  77. mkdir($upload_dir, 493);
  78. }
  79.  
  80. haberadam_aktivasyon();
  81. }
  82.  
  83. function unregister_default_wp_widgets()
  84. {
  85. unregister_widget('WP_Widget_Pages');
  86. unregister_widget('WP_Widget_Calendar');
  87. unregister_widget('WP_Widget_Archives');
  88. unregister_widget('WP_Widget_Links');
  89. unregister_widget('WP_Widget_Meta');
  90. unregister_widget('WP_Widget_Search');
  91. unregister_widget('WP_Widget_Text');
  92. unregister_widget('WP_Widget_Categories');
  93. unregister_widget('WP_Widget_Recent_Posts');
  94. unregister_widget('WP_Widget_Recent_Comments');
  95. unregister_widget('WP_Widget_RSS');
  96. unregister_widget('WP_Widget_Tag_Cloud');
  97. }
  98.  
  99. function lisans()
  100. {
  101. include __DIR__ . '/lisans.php';
  102. $domain = $_SERVER['HTTP_HOST'];
  103. $domain = str_replace('www.', '', $domain);
  104. $random = 'TsqBeg23OTc_D6SRzAs3D5A3M2P';
  105. $h = '' . $random . '_' . $domain . '';
  106. $domainNew = str_replace('.tr', NULL, $domain);
  107. $subdomain = explode('.', $domainNew);
  108. $hash = md5($h);
  109.  
  110. if ($hash == $lisans) {
  111. }
  112. else if ($hash == $lisans2) {
  113. }
  114. else if ($hash == $lisans3) {
  115. }
  116. else if ($hash == $lisans4) {
  117. }
  118. else if ($hash == $lisans5) {
  119. }
  120. else {
  121. if (!empty($_POST[__FUNCTION__])) {
  122. $dt = fopen(__DIR__ . '/lisans.php', 'w+');
  123. fwrite($dt, '<?php $lisans = "' . $_POST[__FUNCTION__] . '";');
  124. fclose($dt);
  125.  
  126. if ($hash == $_POST[__FUNCTION__]) {
  127. 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('/') . '">';
  128. }
  129. else {
  130. echo '<center>Hatalı lisans kodu girdiniz. </center>';
  131. }
  132. }
  133.  
  134. if (count($subdomain) < 3) {
  135. echo ' <center>' . "\n" . ' <h3 style="font-family: Barlow;">Lisans Kodu</h3>' . "\n" . ' <form action="';
  136. echo $_SERVER['PHP_SELF'];
  137. echo '" method="post">' . "\n" . ' <input type="text" style="width: 300px; height: 35px; margin-bottom: 10px;font-size: 16px;border: 1px solid #ddd;border-radius: 0px;" name="lisans"/><br />' . "\n" . ' <input type="submit" style="width: 300px; color: #fff; border: none; background-color: #00b7ff; height: 35px;" value="Kaydet"/>' . "\n" . ' </form>' . "\n" . ' </center>' . "\n\n" . ' ';
  138. exit();
  139. }
  140. }
  141. }
  142.  
  143. function _is_curl_installed()
  144. {
  145. if (in_array('curl', get_loaded_extensions())) {
  146. return true;
  147. }
  148. else {
  149. return false;
  150. 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';
  151. }
  152. }
  153.  
  154. function prefix_wcount()
  155. {
  156. ob_start();
  157. the_content();
  158. $content = ob_get_clean();
  159. return sizeof(explode(' ', $content));
  160. }
  161.  
  162. function bb_ust_menu_register()
  163. {
  164. register_nav_menus(['bbUstMenu' => __('Üst Menu', 'theme_prefix')]);
  165. register_nav_menus(['bbMobilMenu' => __('Mobil Menu', 'theme_prefix'), 'bbMobilMenu2' => __('Mobil Menu 2', 'theme_prefix'), 'bbMobilMenu3' => __('Mobil Menu 3', 'theme_prefix')]);
  166. register_nav_menus(['bbFooterUst' => __('Footer Üst Menü', 'theme_prefix'), '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'), 'bbFooter6' => __('Footer Menü 6', 'theme_prefix'), 'bbFooter7' => __('Footer Menü 7', 'theme_prefix')]);
  167. 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'), 'bbHamburger6' => __('Hamburger Menü 6', 'theme_prefix'), 'bbHamburger7' => __('Hamburger Menü 7', 'theme_prefix')]);
  168. }
  169.  
  170. function get_category_options($type = 'normal')
  171. {
  172. $categories = get_categories(['orderby' => 'name', 'order' => 'ASC', 'hide_empty' => false]);
  173. global $bp_options;
  174.  
  175. if ($type == 'gallery') {
  176. foreach ($bp_options['kategoriAyarlar'] as $category2) {
  177. if ($category2['fotoGaleriSwitch'] == 1) {
  178. $category_data[$category2['kategoriId']] = get_cat_name($category2['kategoriId']);
  179. }
  180. }
  181. }
  182. else {
  183. foreach ($categories as $category) {
  184. $category_data[$category->term_id] = $category->name;
  185. }
  186. }
  187.  
  188. return $category_data;
  189. }
  190.  
  191. function month_eng_to_tr($str)
  192. {
  193. $ing_aylar = ['January', 'February', 'March', 'May', 'April', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  194. $tr_aylar = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'];
  195. return str_replace($ing_aylar, $tr_aylar, $str);
  196. }
  197.  
  198. function month_perma_to_text($str)
  199. {
  200. $ing_aylar = ['January', 'February', 'March', 'May', 'April', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
  201. $tr_aylar = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'];
  202. return str_replace($ing_aylar, $tr_aylar, $str);
  203. }
  204.  
  205. function getPostViews($postID)
  206. {
  207. $count_key = 'post_views_count';
  208. $count = get_post_meta($postID, $count_key, true);
  209.  
  210. if ($count == '') {
  211. .......................................................................
  212. .........................................
  213. ...................
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×