加入ipv6判断

This commit is contained in:
wlx 2012-06-28 07:12:52 +00:00
parent 8501d5771a
commit a65487989d
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@
}else{ }else{
$onlineip=$_SERVER['REMOTE_ADDR']; $onlineip=$_SERVER['REMOTE_ADDR'];
} }
if ($onlineip!='210.77.68.241') if ($onlineip!='210.77.68.241' && $onlineip!='2002:d248:5070:4:214:22ff:fe08:d277')
die("error! You are not permitted to visit this page."); die("error! You are not permitted to visit this page.".$onlineip);
//文件生成 //文件生成
$onlineappid=(int)@$_GET['onlineappid']; $onlineappid=(int)@$_GET['onlineappid'];
$offlineappid=(int)@$_GET['offlineappid']; $offlineappid=(int)@$_GET['offlineappid'];