Guest User

Untitled

a guest
May 24th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1. <?php
  2. /*
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 3.5.0.0
  8. * @ Author : DeZender
  9. * @ Release on : 22.06.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. class TLDExtractResult implements ArrayAccess
  15. {
  16. private $fields = null;
  17.  
  18. public function __construct($subdomain, $domain, $tld)
  19. {
  20. $this->fields = array('subdomain' => $subdomain, 'domain' => $domain, 'tld' => $tld);
  21. }
  22.  
  23. public function __get($name)
  24. {
  25. if (array_key_exists($name, $this->fields)) {
  26. return $this->fields[$name];
  27. }
  28.  
  29. throw new OutOfRangeException(sprintf('Unknown field "%s"', $name));
  30. }
  31.  
  32. public function __isset($name)
  33. {
  34. return array_key_exists($name, $this->fields);
  35. }
  36.  
  37. public function __set($name, $value)
  38. {
  39. throw new LogicException("Can't modify an immutable object.");
  40. }
  41.  
  42. public function __toString()
  43. {
  44. return sprintf("%s(subdomain='%s', domain='%s', tld='%s')", 'TLDExtractResult', $this->subdomain, $this->domain, $this->tld);
  45. }
  46.  
  47. public function offsetExists($offset)
  48. {
  49. return array_key_exists($offset, $this->fields);
  50. }
  51.  
  52. public function offsetGet($offset)
  53. {
  54. return $this->__get($offset);
  55. }
  56.  
  57. public function offsetSet($offset, $value)
  58. {
  59. throw new LogicException(sprintf("Can't modify an immutable object. You tried to set \"%s\".", $offset));
  60. }
  61.  
  62. public function offsetUnset($offset)
  63. {
  64. throw new LogicException(sprintf("Can't modify an immutable object. You tried to unset \"%s\".", $offset));
  65. }
  66.  
  67. public function toArray()
  68. {
  69. return $this->fields;
  70. }
  71. }
  72.  
  73. $domainparcalar = tldextract('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
  74. $domain = $domainparcalar['domain'] . '.' . $domainparcalar['tld'];
  75. $domainpaket = 60;
  76. $temaanahtari = 'emr50408c736cbe93674486kdrknr50a6f8an462701e';
  77. $temaslug = 'haberv5';
  78. require_once get_template_directory() . '/lisans.php';
  79. $keyler = keyolustur($domain, $temaanahtari);
  80.  
  81. if ($keyler['key1'] == $key1 && $keyler['key2'] == $key2 && $keyler['key3'] == $key3) {
  82. $gelendurum = json_decode('{"durum":"ok"}');
  83. } else {
  84. wp_die('Lisans anahtarınız geçersizdir. Lütfen tema yapımcısı ile iletişime geçiniz. : <b>[email protected]</b> veya <b><a href="http://www.thewp.com.tr/iletisim">www.thewp.com.tr/iletisim</a></b>');
  85. }
  86.  
  87. if ($gelendurum->durum == 'ok') {
  88. } else {
  89. unlink(get_template_directory() . '/functions.php');
  90. unlink(get_template_directory() . '/admin/admin-interface.php');
  91. $fh = fopen(get_template_directory() . '/functions.php', 'a');
  92. fwrite($fh, "<?php wp_die('Lisans hakkında sorun yaşamaktasınız. Lütfen tema yapımcısı ile iletişime geçiniz. : <b>[email protected]</b> veya <b><a href=\"http://www.thewp.com.tr/iletisim\">www.thewp.com.tr/iletisim</a></b>'); ?>");
  93. fclose($fh);
  94. $fh = fopen(get_template_directory() . '/admin/admin-interface.php', 'a');
  95. fwrite($fh, "<?php wp_die('Lisans hakkında sorun yaşamaktasınız. Lütfen tema yapımcısı ile iletişime geçiniz. : <b>[email protected]</b> veya <b><a href=\"http://www.thewp.com.tr/iletisim\">www.thewp.com.tr/iletisim</a></b>'); ?>");
  96. fclose($fh);
  97. wp_die('Lisans hakkında sorun yaşamaktasınız. Lütfen tema yapımcısı ile iletişime geçiniz. : <b>[email protected]</b> veya <b><a href="http://www.thewp.com.tr/iletisim">www.thewp.com.tr/iletisim</a></b>');
  98. }
  99.  
  100. include_once 'functions-ek.php';
  101. include_once 'dosyalar/acf/acf.php';
  102. define('ACF_LITE', true);
  103. include_once 'metabox.php';
  104. $tag_base = get_option('tag_base');
  105. add_action('admin_menu', 'Menu_ekleme_theWP');
  106. $orta = 'orta';
  107. $ymenu = 'ymenu';
  108. $galeri = 'galeri';
  109. $kate = 'kate';
  110. $temayolu = get_bloginfo('template_url');
  111. $siteyolu = get_bloginfo('home');
  112. add_filter('pre_get_posts', 'SearchFilter');
  113.  
  114. if (function_exists('wp_nav_menu') && function_exists('add_theme_support')) {
  115. add_theme_support('nav-menus');
  116. add_action('init', 'register_my_menus');
  117. function register_my_menus()
  118. {
  119. register_nav_menus(array('header-menu' => __('Header Menü'), 'footer-menu' => __('Footer Menü Kategoriler'), 'footer-menu2' => __('Footer Menü Sayfalar'), 'mobile-menu' => __('Mobile Menü'), 'mobile-menu2' => __('Mobile Menü Sayfa Ortası')));
  120. }
  121. }
  122.  
  123. add_action('wp_ajax_nopriv_eczane_detayla', 'eczane_detayla');
  124. add_action('wp_ajax_eczane_detayla', 'eczane_detayla');
  125. add_action('wp_ajax_nopriv_burclar', 'burclar');
  126. add_action('wp_ajax_burclar', 'burclar');
  127. add_filter('mce_buttons', 'my_add_page_break_button', 1, 2);
  128. add_theme_support('post-thumbnails');
  129. add_filter('the_content', 'kod_degistir');
  130. add_filter('the_content', 'kod_degistir');
  131. add_filter('wp_link_pages_args', 'add_next_and_number');
  132.  
  133. if (!function_exists('amk')) {
  134. function amk($cats, $_post = null)
  135. {
  136. foreach ((array) $cats as $cat) {
  137. $descendants = get_term_children((int) $cat, 'category');
  138.  
  139. if ($descendants && in_category($descendants, $_post) || in_category($cat, $_post)) {
  140. return true;
  141. }
  142. }
  143.  
  144. return false;
  145. }
  146. }
  147.  
  148. require_once dirname(__FILE__) . '/admin/admin-functions.php';
  149. require_once dirname(__FILE__) . '/admin/admin-interface.php';
  150. require_once dirname(__FILE__) . '/admin/theme-settings.php';
  151. add_theme_support('post-thumbnails');
  152.  
  153. if (get_option('firmarehberidurum') == 'true') {
  154. function show_pending_number($menu)
  155. {
  156. $types = array('post', 'page', 'thewpfirmarehberi', 'gelenhaber', 'iletisimformu');
  157. $status = 'pending';
  158.  
  159. foreach ($types as $type) {
  160. .................................................................................
  161. ...............................................
  162. .............
Advertisement
Add Comment
Please, Sign In to add comment