Guest User

Untitled

a guest
Jun 12th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $YASAL_UYARI = '
  4. Firmamız vergi levhasına sahip ve faturalı olarak satış yapan bir firmadır.
  5. Safir Rehber Wordpress Teması Niğde 3.Noterliği tarafından adımıza tescillenmiş olup, ilgili dijital ürünün
  6. kopyalanması, lisanssız kullanılması ve dağıtılması halinde hakkınızda yasal işlem başlatılacaktır.
  7. ';
  8.  
  9. function get_domain($url) {
  10. $pieces = parse_url($url);
  11. $domain = isset($pieces['host']) ? $pieces['host'] : '';
  12. if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
  13. return $regs['domain'];
  14. }
  15. }
  16.  
  17. function __gc() {
  18. $site = $_SERVER['SERVER_NAME'];
  19. $site = 'http://' . $_SERVER['SERVER_NAME'];
  20. $site = get_domain($site);
  21. $key = 's+a+f+i+r+r+e+h+b+e+r';
  22. return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $site, MCRYPT_MODE_CBC, md5(md5($key))));
  23. }
  24.  
  25. include('settings.php');
  26.  
  27. // category rel thing for w3c:
  28. add_filter( 'the_category', 'add_nofollow_cat' ); function add_nofollow_cat( $text ) { $text = str_replace('rel="category tag"', "", $text); return $text; }
  29. ajax_sl_init();
  30.  
  31. // Adminbar menu
  32. function adminBarMenu() {
  33. global $wp_admin_bar;
  34. if ( !is_super_admin() || !is_admin_bar_showing() )
  35. return;
  36. $wp_admin_bar->add_menu( array(
  37. 'id' => 'safir_link',
  38. 'title' => __( 'Safir Panel - Tema Ayarları'),
  39. 'href' => __(get_bloginfo('url') . '/wp-admin/admin.php?page=safirpanel.php'),
  40. ) );
  41. }
  42. add_action('admin_bar_menu', 'adminBarMenu',400);
  43.  
  44. // Stripslashes:
  45. function xoption($option){
  46. $options = unserialize(get_option("safirrehber_options"));
  47. if(is_string($options[get_option(substr('slcidingWidget',0,2) . substr('corelation',0,2) . substr('destination',0,2)) . $option])) {
  48. return stripslashes($options[get_option(substr('slcidingWidget',0,2) . substr('corelation',0,2) . substr('destination',0,2)) . $option]);
  49. } else {
  50. .....................................................................
  51. ........................................
  52. .................
Advertisement
Add Comment
Please, Sign In to add comment