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';
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)