DedeCms2007rc1/DedeCms V5.01 到DedeCms V5.1 升级程序
DedeCms2007rc1/DedeCms V5.01 到DedeCms V5.1 升级程序
下载后请按照说明执行
升级有风险,请做好数据和原程序的备份
假如你的数据表和官方原版的不一致有可能会造成升级失败,请先确认数据表
Quote:致歉:于2008年3月31日前下载的下面两个升级补丁,因模板编码问题而出现乱码的,请重新下载后覆盖 templets/default 目录下的所有文件
dedecms V5.01 gbk 到 dedecms V5.1 gbk升级程序
http://www.dedecms.com/upimg/soft/2008/dedecmsv51-501up.rardedecms2007 rc1gbk 到 dedecms V5.1 gbk升级程序
http://www.dedecms.com/upimg/soft/2008/dedecms2007rc1-v51-gbk.rar
如果已经升级到V5.1但后台系统设置混乱的话,请再后台 sql 命令器 运行下面的语句
Copy code update `#@__sysconfig` set `aid`=’2′, `group`=’8′ where varname=’cfg_basehost’;
update `#@__sysconfig` set `aid`=’3′, `group`=’8′ where varname=’cfg_cmspath’;
update `#@__sysconfig` set `aid`=’5′, `group`=’8′ where varname=’cfg_cookie_encode’;
update `#@__sysconfig` set `aid`=’4′, `group`=’8′ where varname=’cfg_indexurl’;
update `#@__sysconfig` set `aid`=’1′, `group`=’8′ where varname=’cfg_webname’;
update `#@__sysconfig` set `aid`=’8′, `group`=’8′ where varname=’cfg_adminemail’;
update `#@__sysconfig` set `aid`=’4′, `group`=’8′ where varname=’cfg_indexname’;
update `#@__sysconfig` set `aid`=’9′, `group`=’5′ where varname=’cfg_backup_dir’;
update `#@__sysconfig` set `aid`=’13’, `group`=’5′ where varname=’cfg_html_editor’;
update `#@__sysconfig` set `aid`=’5′, `group`=’8′ where varname=’cfg_arcdir’;
update `#@__sysconfig` set `aid`=’11’, `group`=’2′ where varname=’cfg_medias_dir’;
update `#@__sysconfig` set `aid`=’12’, `group`=’2′ where varname=’cfg_ddimg_width’;
update `#@__sysconfig` set `aid`=’13’, `group`=’2′ where varname=’cfg_ddimg_height’;
update `#@__sysconfig` set `aid`=’14’, `group`=’2′ where varname=’cfg_album_width’;
update `#@__sysconfig` set `aid`=’15’, `group`=’2′ where varname=’cfg_imgtype’;
update `#@__sysconfig` set `aid`=’16’, `group`=’2′ where varname=’cfg_softtype’;
update `#@__sysconfig` set `aid`=’17’, `group`=’2′ where varname=’cfg_mediatype’;
update `#@__sysconfig` set `aid`=’9′, `group`=’5′ where varname=’cfg_specnote’;
update `#@__sysconfig` set `aid`=’12’, `group`=’8′ where varname=’cfg_list_symbol’;
update `#@__sysconfig` set `aid`=’20’, `group`=’4′ where varname=’cfg_notallowstr’;
update `#@__sysconfig` set `aid`=’14’, `group`=’8′ where varname=’cfg_album_width’;
update `#@__sysconfig` set `aid`=’14’, `group`=’8′ where varname=’cfg_album_width’;REPLACE INTO `#@__sysconfig` (`aid`, `varname`, `info`, `value`, `type`, `group`) VALUES
(21, ‘cfg_feedbackcheck’, ‘评论及留言(是/否)需审核’, ‘Y’, ‘bool’, 4),
(22, ‘cfg_keyword_replace’, ‘关键字替换(是/否)
使用本功能会影响HTML生成速度’, ‘Y’, ‘bool’, 4),
(5, ‘cfg_fck_xhtml’, ‘编辑器(是/否)使用XHTML’, ‘N’, ‘bool’, 5),
(11, ‘cfg_df_style’, ‘模板默认风格’, ‘default’, ‘string’, 8),
(25, ‘cfg_multi_site’, ‘是/否支持多站点\r\n
开启此项后附件、栏目连接、arclist内容启用绝对网址’, ‘N’, ‘bool’, 8),
(1, ‘cfg_dede_cache’, ‘是/否开启Dede模块引擎的缓存功能’, ‘Y’, ‘bool’, 1),
(1, ‘cfg_dede_log’, ‘是/否开启管理日志’, ‘N’, ‘bool’, 5),
(7, ‘cfg_powerby’, ‘网站版权信息’, ‘网站版权信息’, ‘string’, 8),
(709, ‘cfg_safeurl’, ‘安全的引用地址(外部JS调用时可用到,多个用回车区别)’, ‘dedecms.com’, ‘string’, 4),
(5, ‘cfg_keywords’, ‘Meta 关键词’, ‘织梦内容管理系统’, ‘string’, 8),
(5, ‘cfg_arcsptitle’, ‘(是/否)开启分页标题,开启会影响HTML生成速度’, ‘N’, ‘bool’, 1),
(6, ‘cfg_arcautosp’, ‘(是/否)开启长文章自动分页’, ‘N’, ‘bool’, 1),
(7, ‘cfg_arcautosp_size’, ‘文章自动分页大小(单位: K)’, ‘5’, ‘string’, 1),
(6, ‘cfg_auot_description’, ‘自动摘要长度(0-250,0表示不启用)’, ‘255’, ‘string’, 5),
(3, ‘cfg_ftp_host’, ‘FTP主机’, ”, ‘string’, 9),
(4, ‘cfg_ftp_port’, ‘FTP端口’, ’21’, ‘string’, 9),
(5, ‘cfg_ftp_user’, ‘FTP用户名’, ”, ‘string’, 9),
(6, ‘cfg_ftp_pwd’, ‘FTP密码’, ”, ‘string’, 9),
(2, ‘cfg_ftp_root’, ‘网站根在FTP中的目录’, ‘/’, ‘string’, 9),
(1, ‘cfg_ftp_mkdir’, ‘是否强制用FTP创建目录’, ‘N’, ‘bool’, 9),
(39, ‘cfg_feedback_ck’, ‘评论加验证码重确认’, ‘N’, ‘bool’, 4),
(0, ‘cfg_list_son’, ‘上级列表是否包含子类内容’, ‘Y’, ‘bool’, 1),
(1, ‘cfg_mb_open’, ‘是否开启会员功能’, ‘Y’, ‘bool’, 3),
(12, ‘cfg_mb_album’, ‘是否开启会员图集功能’, ‘Y’, ‘bool’, 3),
(10, ‘cfg_mb_upload’, ‘是否允许会员上传非图片附件’, ‘Y’, ‘bool’, 3),
(9, ‘cfg_mb_upload_size’, ‘会员上传文件大小(K)’, ‘1024’, ‘string’, 3),
(6, ‘cfg_mb_sendall’, ‘是否开放会员对自定义模型投稿’, ‘Y’, ‘bool’, 3),
(11, ‘cfg_mb_rmdown’, ‘是否把会员指定的远程文档下载到本地’, ‘Y’, ‘bool’, 3),
(47, ‘cfg_cli_time’, ‘时区设置(默认+8)’, ‘+8’, ‘string’, 8),
(8, ‘cfg_mb_mediatype’, ‘会员附件许可的类型’, ‘jpg|gif|png|bmp|swf|mp3|rmvb|wma|zip|rar|’, ‘string’, 3),
(8, ‘cfg_mb_max’, ‘会员附件总大小限制(MB)’, ’10’, ‘string’, 3),
(20, ‘cfg_replacestr’, ‘替换词语(词语会被替换成***)’, ‘她妈|它妈|他妈|你妈|fuck|去死|贱人|老母’, ‘string’, 4),
(10, ‘cfg_makeindex’, ‘发布文档后自动更新网站主页’, ‘Y’, ‘bool’, 1),
(8, ‘cfg_keyword_like’, ‘使用关键词关连文章’, ‘Y’, ‘bool’, 1),
(14, ‘cfg_online_type’, ‘在线支付网关类型’, ‘nps’, ‘string’, 1),
(53, ‘cfg_jpeg_query’, ‘JPEG缩略图质量’, ‘100’, ‘string’, 2),
(3, ‘cfg_pwdtype’, ‘会员密码类型:none/md5/dd(织梦加密)’, ‘md5’, ‘string’, 3),
(4, ‘cfg_md5len’, ‘MD5密码位数’, ’32’, ‘string’, 3),
(5, ‘cfg_ddsign’, ‘织梦加密算法密码(6-12位)\r\n
\r\n会员密码类型为dd时输入’, ”, ‘string’, 3),
(58, ‘cfg_use_vdcode’, ‘是否开启后台登录的验证码’, ‘N’, ‘bool’, 8),
(7, ‘cfg_send_score’, ‘会员投稿增加积分’, ‘2’, ‘string’, 3),
(7, ‘cfg_guest_send’, ‘是否允许游客投稿’, ‘N’, ‘bool’, 3),
(2, ‘cfg_al_cachetime’, ‘arclist标记缓存时间(小时)’, ‘1’, ‘string’, 1),
(6, ‘cfg_df_score’, ‘注册会员默认积分’, ‘1000’, ‘string’, 3),
(2, ‘cfg_member_regsta’, ‘新注册会员是否需要审核’, ‘N’, ‘bool’, 3),
(9, ‘cfg_up_prenext’, ‘更新单个文档时是否同时更新上一篇和下一篇’, ‘N’, ‘bool’, 1),
(18, ‘cfg_mb_exiturl’, ‘会员退出后默认跳转页’, ‘/’, ‘string’, 3),
(8, ‘cfg_ct_mode’, ‘内容管理模式(0-传统,1-分表)’, ‘1’, ‘string’, 5),
(15, ‘cfg_mb_score2money’, ‘是否开启积分和金币兑换功能’, ‘Y’, ‘bool’, 3),
(16, ‘cfg_score2money’, ‘多少积分兑换一个金币’, ‘3’, ‘string’, 3),
(17, ‘cfg_money2score’, ‘一个金币购买多少积分’, ‘3’, ‘string’, 3),
(0, ‘cfg_websafe_open’, ‘关闭站点(仅允许访问后台及前台部份程序)’, ‘Y’, ‘bool’, 8),
(7, ‘cfg_cat_seltype’, ‘栏目选择类型(0-弹窗、1-select列表)’, ‘1’, ‘string’, 5),
(3, ‘cfg_arc_all’, ‘是否在arclist标记中包含附加表指定的字段’, ‘N’, ‘bool’, 1),
(101, ‘cfg_gif_wartermark’, ‘gif图片是否增加水印’, ‘N’, ‘bool’, 2),
(11, ‘cfg_allsearch_limit’, ‘网站全局搜索时间限制’, ‘1’, ‘string’, 1),
(12, ‘cfg_search_maxlimit’, ‘搜索结果最大数限制’, ‘500’, ‘string’, 1),
(13, ‘cfg_search_cachetime’, ‘搜索缓存有效期(单位:小时)’, ‘1’, ‘string’, 1),
(14, ‘cfg_locked_day’, ‘会员文章加锁时间(天)审核后多少天不能再修改’, ‘7’, ‘string’, 3),
(107, ‘cfg_sendmail_bysmtp’, ‘是否启用smtp方式发送邮件’, ‘Y’, ‘bool’, 10),
(108, ‘cfg_smtp_server’, ‘smtp服务器’, ‘smtp.xinhuanet.com’, ‘string’, 10),
(109, ‘cfg_smtp_port’, ‘smtp服务器端口’, ’25’, ‘string’, 10),
(110, ‘cfg_smtp_usermail’, ‘SMTP服务器的用户邮箱’, ‘[email]rong112@xinhuanet.com[/email]’, ‘string’, 10),
(111, ‘cfg_smtp_user’, ‘SMTP服务器的用户帐号’, ‘rong112’, ‘string’, 10),
(112, ‘cfg_smtp_password’, ‘SMTP服务器的用户密码’, ‘123456’, ‘string’, 10),
(114, ‘cfg_feedback_make’, ‘评论后是否更新文档’, ‘Y’, ‘bool’, 4),
(200, ‘cfg_ask’, ‘是否启用问答模块’, ‘Y’, ‘bool’, 6),
(201, ‘cfg_ask_ifcheck’, ‘问答模块提问是否需要审核’, ‘N’, ‘bool’, 6),
(202, ‘cfg_ask_dateformat’, ‘问答模块日期格式’, ‘Y-n-j’, ‘string’, 6),
(203, ‘cfg_ask_timeformat’, ‘问答模块时间格式’, ‘H:i’, ‘string’, 6),
(204, ‘cfg_ask_timeoffset’, ‘问答模块时区设定’, ‘8’, ‘string’, 6),
(205, ‘cfg_ask_gzipcompress’, ‘是否启用gzip压缩’, ‘1’, ‘string’, 6),
(206, ‘cfg_ask_authkey’, ‘问答模块会员key’, ‘AeN896fG’, ‘string’, 6),
(207, ‘cfg_ask_cookiepre’, ‘问答模块cookie前缀’, ‘deask_’, ‘string’, 6),
(208, ‘cfg_answer_ifcheck’, ‘问答模块回答问题是否需要审核’, ‘N’, ‘bool’, 6),
(209, ‘cfg_ask_expiredtime’, ‘问答模块问题有效期(天)’, ’20’, ‘string’, 6),
(210, ‘cfg_ask_tpp’, ‘问答模块列表显示问题数’, ’14’, ‘string’, 6),
(211, ‘cfg_ask_sitename’, ‘问答系统名称’, ‘织梦问答’, ‘string’, 6),
(212, ‘cfg_ask_symbols’, ‘问答模块导航间隔符’, ‘>’, ‘string’, 6),
(213, ‘cfg_ask_answerscore’, ‘ 会员回答问题就增加积分’, ‘2’, ‘string’, 6),
(214, ‘cfg_ask_bestanswer’, ‘最佳答案系统奖励积分’, ’20’, ‘string’, 6),
(215, ‘cfg_ask_subtypenum’, ‘首页显示子类数据’, ’10’, ‘string’, 6),
(92, ‘cfg_siteid’, ‘PW营销系统密钥一’, ‘adb62f3fc9f26e0d’, ‘string’, 5),
(93, ‘cfg_siteownerid’, ‘PW营销系统密钥二’, ’83f91a7c840ee7c0d3′, ‘string’, 5),
(91, ‘cfg_sitehash’, ‘PW营销唯一识别码’, ’12X1JdVlZQVgQBVgQHUVoHVV0MVAlQUwVTBlAOXgIGAFI’, ‘string’, 5),
(6, ‘cfg_description’, ‘Meta 描述’, ‘织梦内容管理系统是不错的系统’, ‘string’, 8),
(9, ‘cfg_beian’, ‘备案号’, ‘粤ICP备05010852号’, ‘string’, 8),
(10, ‘cfg_updateperi’, ‘百度新闻xml更新时间 (单位:分钟)’, ’15’, ‘string’, 5),
(11, ‘cfg_baidunews_limit’, ‘百度新闻xml更新新闻数量 最大100’, ‘100’, ‘string’, 5);