<META http-equiv=Content-Type content="text/html; charset=utf-8">
<?php
if (_POST[url]){_POST[url]){url = $_POST[url];
}
url2=explode("/",url);
if (url2[0] == "http:"){url = str_replace("http://","",$url);
}else {
url=url;
}
preg_match("/\/(.*)/",url,preg);
url=explode("/",url);
$url = "http://".url[0]."/purge".preg[0];
purge=filegetcontents("url");
if (_POST[url]){ if (purge){
echo purge; }else { echo "<center><font size=10>Purge fail</font><br><br>".url."<font color=red> not exist !</font><hr></center>";
}}else {
echo "<center><br><font size=10>webname cache purge system</font><br><br><hr></center>";
}
?>
<script type="text/javascript">
function CheckPost(){
if (myform.url.value==""){
alert ("请填写URL");
myform.url.focus();
return false;
}
}
</script>
<center>
<form action="" method="post" name="myform" onsubmit="return CheckPost();">
输入URL:http://
<input name="url" type="text" size="50">
<input type="submit" value="clean"><br>
</form>
</center>