Размер файла: 1.41Kb
<?
require("config.php");
require("nusoap.php");
require("code.php");
$url = $_GET["url"];
if(isset($url)) {
$BadUrls = split("\|", $BadUrls);
foreach($BadUrls as $aBadUrls) {
if(stristr($url, $aBadUrls)) {
die("This website could possibly include sensitive content");
}
}
$soap = new soapclient($googleWSDL, true);
$soap->decodeUTF8(false);
$params = array(
'key' => $googleAPIKey,
'url' => $url
);
$res = $soap->call("doGetCachedPage", $params, "urn:GetCachedPage", "urn:GetCachedPage");
print($res);
}
else {
?>
<html>
<head>
<title><?=$Sitename?> RyanBridgers.com</title>
<meta http-equiv=Content-Type content="text/html; charset=gb2312">
<style type="text/css">
td{color:gray;font-size:12px}
a {color:gray;text-decoration:none}
a:visited {color:gray;text-decoration:none}
a:hover {color: blue;text-decoration:underline overline}
</style>
</head>
<body leftmargin="0" topmargin="0">
<table border=0 width=700 align=center>
<form method="get" action="<?=$_SERVER["PHP_SELF"]?>" target="cacheIframe" onSubmit="window.open('','cacheIframe')">
<tr>
<td align=center>
<input type="text" name="url" value="http://" size="30"><input type="submit" value="Gain homepage snapshot">
</td>
</tr>
</form>
</table>
<iframe name="cacheIframe" src="about:blank" style="width:100%;height:expression(document.body.clientHeight-this.offsetTop)"></iframe>
</body>
</HTML>
<?
}
?>