前言:
站长购买源授权[Ynova]产品今日光荣牺牲(授权总站关闭)
特此分享几个好用的授权代码:
原生环境:
<?php
//【原生PHP】
//(开启授权码检测)
define('config_path', dirname(__FILE__).'/');
$auth = require_once config_path.'Auth.php';
$auth_url = @file_get_contents('http://auth.xiao9.cc/api/Index/check_auth?appid=1&url='.$_SERVER['HTTP_HOST'].'&authcode='.$auth['authcode']);
$data_url = json_decode($auth_url,true);
if ($data_url){
if ($data_url['code'] != 1){
exit($data_url['msg']); //未授权HTML页面可自行添加
}
}else{
exit('授权服务器拒绝连接!');
}
?>
THE END
暂无评论内容