Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

教你解决5.5后台恢复数据和道具权限的问题

[复制链接]
fengxiaochun 发表于 2007-3-13 22:47:15 | 显示全部楼层 |阅读模式
前言:这两天DZ5.5出来了,了却了大家的心愿,我们官方也在第一时间升级了,呵呵
  但这两天有不少用户问我,说5.5后台没有恢复数据的功能,这个问题的答案不用我回答就知道错了,DZ不会越开发越后退吧,呵呵,只是5.5这次在安全上做了保障,隐藏了恢复数据的功能,现在我教大家如何将恢复数据的功能显示出来


  首先用FTP把config.inc.php这个文件下载下来,用记事本打开,找到

QUOTE:
$admincp['forcesecques'] = 0;  // 管理人员必须设置安全提问才能进入系统设置, 0=否, 1=是[安全]
$admincp['checkip'] = 1;  // 后台管理操作是否验证管理员的 IP, 1=是[安全], 0=否。仅在管理员无法登陆后台时设置 0。
$admincp['tpledit'] = 0;  // 是否允许在线编辑论坛模板 1=是 0=否[安全]
$admincp['runquery'] = 0;  // 是否允许后台运行 SQL 语句 1=是 0=否[安全]
$admincp['dbimport'] =0;  // 是否允许后台恢复论坛数据  1=是 0=否[安全]




其中这句话就是默认不开启数据恢复功能,呵呵,改成1就可以了,大家试试吧


QUOTE:
$admincp['dbimport'] =0;  // 是否允许后台恢复论坛数据  1=是 0=否[安全]




顺便还说两个问题:
1.有很多朋友想用5.0的数据直接在5.5后台恢复,哪是不可能的,因为5.5的数据库跟5.0的不一样,呵呵,升级吧
2。道具功能,很多用户说没有权限,这个要在用户组设置的,自己去看吧!
还不明白的,可以Q我,不过我有点忙哟,但我会尽力帮你,大家都是网络爱好都嘛

觉得好呢,到我论坛支持一把:http://www.01zz.cn第一站长,中国最大的站长交流平台

评分

1

查看全部评分

 楼主| fengxiaochun 发表于 2007-3-13 22:54:33 | 显示全部楼层
没人看,汗
自己顶一下
回复

使用道具 举报

摄部落 发表于 2007-3-13 22:57:08 | 显示全部楼层
回复

使用道具 举报

冰之心 发表于 2007-3-14 13:42:51 | 显示全部楼层
我顶你个肺
:)
回复

使用道具 举报

wbkjiang 发表于 2007-3-14 17:16:32 | 显示全部楼层
顶......请教一下..我升级出了点问题.部分论坛功能没有了..
我可以先在后台先备份数据.再重新安装5.5.
再恢复数据进去吗?
谢谢.麻烦你解答一下....郁闷两天了...
回复

使用道具 举报

农夫③拳 发表于 2007-3-14 17:29:28 | 显示全部楼层
本帖子已经收录于:
【非常实用】Discuz! 5.5 新 手 问 题 集 中 回 答 收 集 专 帖
更多问题解答请点击
回复

使用道具 举报

yayaa51888 发表于 2007-3-14 19:50:45 | 显示全部楼层
<?php

/*
        [Discuz!] (C)2001-2006 Comsenz Inc.
        This is NOT a freeware, use is subject to license terms

        $RCSfile: config.inc.php,v $
        $Revision: 1.14.2.1 $
        $Date: 2006/07/17 07:50:17 $
*/

// [EN]        Set below parameters according to your account information provided by your hosting
// [CH] 以下变量请根据空间商提供的账号参数修改,如有疑问,请联系服务器提供商

        $dbhost = 'localhost';                        // database server
                                                // 数据库服务器

        $dbuser = 'dbuser';                        // database username
                                                // 数据库用户名

        $dbpw = 'dbpasswd';                        // database password
                                                // 数据库密码

        $dbname = 'dbname';                        // database name
                                                // 数据库名

        $adminemail = 'admin@your.com';                // admin email
                                                // 论坛系统 Email

        $dbreport = 0;                                // send db error report? 1=yes
                                                // 是否发送数据库错误报告? 0=否, 1=是


// [EN] If you have problems logging in Discuz!, then modify the following parameters, else please leave default
// [CH] 如您对 cookie 作用范围有特殊要求,或论坛登录不正常,请修改下面变量,否则请保持默认

        $cookiedomain = '';                         // cookie domain
                                                // cookie 作用域

        $cookiepath = '/';                        // cookie path
                                                // cookie 作用路径


// [EN] Special parameters, DO NOT modify these unless you are an expert in Discuz!
// [CH] 以下变量为特别选项,一般情况下没有必要修改

        $headercharset = 0;                        // force outputing charset header
                                                // 强制设置字符集,只乱码时使用

        $errorreport = 1;                        // reporting php error, 0=only report to admins(safer), 1=report to all
                                                // 是否报告 PHP 错误, 0=只报告给管理员和版主(更安全),不报告钩子错误, 1=报告给任何人并报告钩子错误

        $forcesecques = 0;                        // require security question for administrators' control panel, 0=off, 1=on
                                                // 管理人员必须设置安全提问才能进入系统设置, 0=否, 1=是

        $onlinehold = 900;                        // time span of online recording
                                                // 在线保持时间

        $pconnect = 0;                                // persistent database connection, 0=off, 1=on
                                                // 数据库持久连接 0=关闭, 1=打开

        $forumfounders = '';                        // super administrator's UID
                                                // 论坛创始人 UID, 可以支持多个创始人,之间使用 “,” 分隔。
                                                // 如果不设置论坛创始人,则管理员之间可以相互编辑,具体权力差别请见论坛使用文档


// [EN] !ATTENTION! Do NOT modify following after your board was settle down
// [CH] 论坛投入使用后不能修改的变量

        $tablepre = 'cdb_';                           // 表名前缀, 同一数据库安装多个论坛请修改此处
                                                // table prefix, modify this when you are installingmore than 1 Discuz! in the same database.

        $attachdir = './attachments';                // 附件保存位置 (服务器路径, 属性 777, 必须为 web 可访问到的目录, 不加 "/", 相对目录务必以 "./" 开头)
                                                // attachments saving dir. (chmod to 777, visual web dir only, ending without slash

        $attachurl = 'attachments';                // 附件路径 URL 地址 (可为当前 URL 下的相对地址或 http:// 开头的绝对地址, 不加 "/")


// [EN] !ATTENTION! Preservation or debugging for developing
// [CH] 切勿修改以下变量,仅供程序开发调试用!

        $database = 'mysql';                        // 'mysql' for MySQL version and 'pgsql' for PostgreSQL version
                                                // MySQL 版本请设置 'mysql', PgSQL 版本请设置 'pgsql'

        $charset = 'gbk';                        // default character set, 'gbk', 'big5', 'utf-8' are available
                                                // 论坛默认字符集, 可选 'gbk', 'big5', 'utf-8'

        $dbcharset = '';                        // default database character set, 'gbk', 'big5', 'utf8', 'latin1' and blank are available
                                                // MySQL 字符集, 可选 'gbk', 'big5', 'utf8', 'latin1', 留空为按照论坛字符集设定

        $attackevasive = 0;                        // protect against attacks via common request, 0=off, 1=cookie refresh limitation, 2=deny proxy request, 3=both
                                                // 防护大量正常请求造成的拒绝服务攻击, 0=关闭, 1=cookie 刷新限制, 2=限制代理访问, 3=cookie+代理限制

        $tplrefresh = 1;                        // auto check validation of templates, 0=off, 1=on
                                                // 模板自动刷新开关 0=关闭, 1=打开

// ============================================================================
回复

使用道具 举报

yayaa51888 发表于 2007-3-14 19:51:23 | 显示全部楼层
$admincp['dbimport'] =0;  // 是否允许后台恢复论坛数据  1=是 0=否[安全]
没有找到呀?????
回复

使用道具 举报

xingqing03 发表于 2007-3-15 05:12:32 | 显示全部楼层
谢谢楼主
正好遇到这个问题
回复

使用道具 举报

zgsjzml 发表于 2007-5-28 22:39:28 | 显示全部楼层
谢谢你啊,我也正在找这个。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-21 15:29 , Processed in 0.216938 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表