php授权

      发布在:未分类      评论:0 条评论
<?php
$servername = $_SERVER[’SERVER_NAME’];//取得域名
!empty( file_get_contents(’ysgj.ml/sq.php?dome=’ . $servername)) or die(’未授权’);
?>
ysgj.ml/sq.php
<?php
$dome = $_GET[’dome’]; //接受域名
$Array = array(’域名一’, ’域名二’);
echo in_array( $dome, $Array) ? ’yes’ : ’’;
?>

Responses