最新版授权系统源码,1.config.php配置数据库2.版本要求php5.63.install.sql导入数据库
if(!isset($_SESSION['authcode'])) {
$query=file_get_contents('http://auth.cccyun.cn/check.php?url='.$_SERVER['HTTP_HOST'].'&authcode='.$authcode);
if($query=json_decode($query,true)) {
if($query['code']==1)$_SESSION['authcode']=$authcode;
else exit('<h3>'.$query['msg'].'</h3>');
}
}
把这串代码放到源码全局的PHP文件即可
install.php安装
导入数据库
就这么简单
|