工会web
This commit is contained in:
15
GonghuiWeb/inc/cache.php
Normal file
15
GonghuiWeb/inc/cache.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
//½ûÖ¹»º´æ
|
||||
header("expires:mon,26jul199705:00:00gmt");
|
||||
header("cache-control:no-cache,must-revalidate");
|
||||
header("pragma:no-cache");
|
||||
//·ÀÖ¹ÍⲿÌá½»
|
||||
$servername=$_SERVER ['SERVER_NAME'];
|
||||
$sub_from=$_SERVER ["HTTP_REFERER"];
|
||||
$sub_len=strlen($servername);
|
||||
$checkfrom=substr($sub_from,7,$sub_len);
|
||||
if($checkfrom!=$servername){
|
||||
echo("Design:jxboy");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user