|
本帖最后由 hjvn2211445 于 2021-5-8 21:58 编辑
前面两个关于这个程序的帖子
photo.gallery X3图片在线预览更好的方案,相册显示文件夹
https://hostloc.com/thread-790620-1-1.html
最好的相册程序 Imagevue X3 photo gallery X 破解
https://hostloc.com/thread-839960-5-1.html
DEMO:https://shanliang.xyz/
-------------------------------------------------------------
前面最新版是3.30.1,以这个版本为例,
免费版也可用,差别是免费版不能修改前台页脚版权,另外有的功能不能使用,好像全景图、3d
方法:验证网址https://auth.photo.gallery/改成 /auth
1)前台 修改 /app/public/js/3.30.1/x3.min.js
搜索 aHR0cHM6Ly9hdXRoLg 替换为 Lw
搜索 cGhvdG8uZ2FsbGVyeQ 替换为 YXV0aA
2)后台 修改 /panel/filemanager_js/x3_panel.js
搜索 aHR0cHM6Ly9hdXRoLnBob3RvLmdhbGxlcnkv 替换为 L2F1dGgv
3)修改使用本地x3.min.js(默认是使用jsdelivr,无法加载再请求本地js)
修改/app/templates/cc/29/202264ab201d0d43a63882c31b1c06ae7e7992a5c371c52f885633d0acfa.php
大概第71行
$context["core_js"] = (("https://cdn.jsdelivr.net/npm/x3.photo.gallery@" . $this->getAttribute((isset($context["page"]) ? $context["page"] : null), "x3_version")) . "/js/x3.min.js");
修改为:
$context["core_js"] = ("/app/public/js/3.30.1/x3.min.js");
4)新建 验证文件/auth/index.php
- <?删除php
- header('Access-Control-Allow-Origin: *');
- header('content-type:application/json');
- echo '{"status":200,"message":"License is valid.","parameters":{"type":"1"}}';
- ?>
复制代码
或者这样,可以自定义域名验证
- <?删除php
- header('Access-Control-Allow-Origin: *');
- header('content-type:application/json');
- $allowed_hosts = array('shanliang.xyz', 'p2.btu.pp.ua');
- if (in_array($删除_SERVER['SERVER_NAME'], $allowed_hosts)) {
- echo '{"status":200,"message":"License is valid [btu.pp.ua]","parameters":{"type":"1"}}';
- }else{
- echo '{"status":301,"message":"License not Found"}';
- }
- ?>
复制代码
这样应该可以了
好像status不是301它就不跳转了,随便写
-------------------------------------------------------------------------------
目前个人使用遇到最大问题
文件夹不支持 #$%^&*()+=[]'"/\|{}`~!@.
Other disallowed characters
Other characters that are not allowed in folder names include #$%^&*()+=[]'"/\|{}`~!@. Most of these characters are simply not allowed in URL's, while some characters are disallowed because they break the functionality of X3. |
|