源码介绍:
One Nav 主题又称“一导航主题”,集网址、app、资源、书籍、影视等内容导航于一体,各模块可单独使用,互不影响。今天带来的是一个测试源码,我测试过了可以授权上,一款大多数导航网站使用且功能非常全面的导航主题,仅仅供测试使用,测试完建议支持正版。
使用教程:
- 宝塔搭建伪授权站
auth.iotheme.cn,网站目录下创建auth.php,粘贴以下代码保存

<?php
error_reporting(0);
function random($length, $numeric=false) {
$seed = base_convert(md5(microtime().$_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35);
$seed = $numeric ? (str_replace('0', '', $seed).'012340567890') : ($seed.'zZ'.strtoupper($seed));
$hash = '';
$max = strlen($seed) - 1;
for($i = 0; $i < $length; $i++) { $hash .= $seed[mt_rand(0, $max)]; } return $hash; } if($_POST['my'] == 'query'){ $domain = $_POST['h']; $version = $_POST['v']; $appsign = $_POST['appsign']; if(empty($domain) || empty($version) || empty($appsign)) exit(json_encode(['code'=>'no', 'success'=>'1', 'msg'=>'参数不能为空']));
$appsign = base64_decode($appsign);
$arr = explode('GzE/h', $appsign);
$authcode = base64_decode($arr[1]);
if(empty($authcode)) exit(json_encode(['code'=>'no', 'success'=>'1', 'msg'=>'授权码解析失败']));
$authkey = random(10);
$authmd5 = md5($authkey.$authcode);
$key = base64_encode($authmd5).$authkey.base64_encode(time()*3);
$authkey = base64_encode($authkey);
$key = base64_encode($key);
$result = ['code'=>'yes', 'success'=>'1', 'key'=>$key, 'authkey'=>$authkey, 'msg'=>'授权成功!请刷新页面。'];
echo json_encode($result);
}
- 修改VPS服务器
/etc/hosts文件,末尾添加:
127.0.0.1 auth.iotheme.cn 127.0.0.1 www.iotheme.cn
源码图片:


