全解密的php开发的授权系统源码,开发者必备
全解密的php开发的授权系统源码,开发者必备。这授权系统全解密 经过作者同意才发的 授权代码
授权代码(一般不用这个):
if(!isset($_SESSION[‘authcode’])){
$data[“host”]=$_SERVER[“HTTP_HOST”];
$data[“auth”]=authcode;
$query_en = curl_get(“http://地址/query.php?data=”.base64_encode(des_enjson(json_encode($data))));
$query=json_decode(des_dejson($query_en),true);
if (is_array($query)) {
if ($query[“code”] == 1) {
$_SESSION[“authcode”] = authcode;
}else{
sysmsg(“<h3>”.$query[“msg”].”</h3>”, true);
}
}else{
sysmsg(“<h3>检测到客户端环境异常,授权服务器拒绝连接!</h3>”, true);
}
}
授权代码+更新代码:
if(!isset($_SESSION[‘authcode’])){
$query = curl_get(“http://域名/check.php?url=”.$_SERVER[“HTTP_HOST”].”&authcode=”.authcode);
if ($query = json_decode($query, true)) {
if ($query[“code”] == 1) {
$_SESSION[“authcode”] = authcode;
}else{
sysmsg(“<h3>”.$query[“msg”].”</h3>”, true);
}
}
}
function update_version()
{
$query = curl_get(“http://域名/check.php?url=”.$_SERVER[“HTTP_HOST”].”&authcode=”.authcode.”&ver=”.VERSION);
if ($query = json_decode($query,true)) {
return $query;
}
return false;
}
图片:
常见问题FAQ
- 关于资源售价和售后服务的说明?