Discuz!论坛 转换远程附件为本地附件的方法

Discuz!论坛 转换远程附件为本地附件的方法

找到论坛程序文件config/config_global.php,
用记事本打开该文件,
然后查找$_config[‘security’][‘querysafe’][‘status’]将其设置为0,
继续查找$_config[‘admincp’][‘runquery’]将其设置为1即可。(出于安全考虑,建议执行SQL语句完毕后将这两个参数的值再改回来)

把附件放回来 然后 后台 站长 数据库 升级里 运行 下面代码

update pre_forum_attachment_0 set remote = '0' ;
update pre_forum_attachment_1 set remote = '0' ;
update pre_forum_attachment_2 set remote = '0' ;
update pre_forum_attachment_3 set remote = '0' ;
update pre_forum_attachment_4 set remote = '0' ;
update pre_forum_attachment_5 set remote = '0' ;
update pre_forum_attachment_6 set remote = '0' ;
update pre_forum_attachment_7 set remote = '0' ;
update pre_forum_attachment_8 set remote = '0' ;
update pre_forum_attachment_9 set remote = '0' ;

好了转换完毕

下面说一下本地附件转远程附件的方法:

update pre_forum_attachment_0 set remote = '1';
update pre_forum_attachment_1 set remote = '1';
update pre_forum_attachment_2 set remote = '1';
update pre_forum_attachment_3 set remote = '1';
update pre_forum_attachment_4 set remote = '1';
update pre_forum_attachment_5 set remote = '1';
update pre_forum_attachment_6 set remote = '1';
update pre_forum_attachment_7 set remote = '1';
update pre_forum_attachment_8 set remote = '1';
update pre_forum_attachment_9 set remote = '1';

可能对你有帮助的内容:金币获取 | v7a,v8a,all等APK版本怎么选? | 下载帮助 | 阿里云代金券

文章名称:Discuz!论坛 转换远程附件为本地附件的方法

文章链接:https://www.jipinsoft.com/1832.html

免责声明:根据《计算机软件保护条例》第十七条规定“为了学习和研究软件内含的设计思想和原理,通过安装、显示、传输或者存储软件等方式使用软件的,可以不经软件著作权人许可,不向其支付报酬。”您需知晓本站所有内容资源均来源于网络,仅供用户交流学习与研究使用,版权归属原版权方所有,版权争议与本站无关,用户本人下载后不能用作商业或非法用途,需在24个小时之内从您的电脑中彻底删除上述内容,否则后果均由用户承担责任;如果您访问和下载此文件,表示您同意只将此文件用于参考、学习而非其他用途,否则一切后果请您自行承担,如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。

(0)
打赏
番茄小子的头像番茄小子盟友
上一篇 2019年11月2日
下一篇 2019年11月2日

相关推荐

发表回复

登录后才能评论