Discuz!論壇 轉(zhuǎn)換遠(yuǎn)程附件為本地附件的方法
找到論壇程序文件config/config_global.php,
用記事本打開該文件,
然后查找$_config[‘security’][‘querysafe’][‘status’]將其設(shè)置為0,
繼續(xù)查找$_config[‘admincp’][‘runquery’]將其設(shè)置為1即可。(出于安全考慮,建議執(zhí)行SQL語句完畢后將這兩個參數(shù)的值再改回來)
把附件放回來 然后 后臺 站長 數(shù)據(jù)庫 升級里 運(yùn)行 下面代碼
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' ;
好了轉(zhuǎn)換完畢
下面說一下本地附件轉(zhuǎn)遠(yuǎn)程附件的方法:
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';