PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

PageAdmin V2.1 20100101版本发布 [复制链接]

1#
新版本增加了以下功能
1、增加了自定义模型,方便用户可设计自己需要的功能
2、增加了数据采集功能(支持文章、产品和自定义表单采集)
3、整合了栏目管理功能,让操作更加便捷
4、增加了缩略图和水印功能
5、加强了会员中心的发布功能
6、增加了支持后台目录修改


升级方法(相对20090814版),为了安全:请先把您网站数据库做一个备份,有备无患!

1、首先登陆后台》》基本信息设置》数据库操作。
   在运行sql语句的输入框中中复制SQL语句运行,SQL版本和ACCESS版本的SQL语句略有不同,由于SQL语句比较长,具体代码见回复贴。
  

2、运行完以上SQL后,复制您当前网站正在使用的/images、/upload、/database(ACCESS数据库目录)、这三个目录覆盖最新版本对应目录即可。
分享 转发
pageadmin cms-网站建设高效解决之道
TOP
2#

以下为ACCESS版本的SQL
  1. alter table template drop constraint  prod1id;
  2. alter table template drop constraint prod2id;
  3. alter table template drop constraint infor1id;
  4. alter table template drop constraint infor2id;

  5. alter table lanmu2 drop constraint prod1id;
  6. alter table lanmu2 drop constraint prod2id;
  7. alter table lanmu2 drop constraint infor1id;
  8. alter table lanmu2 drop constraint infor2id;

  9. alter table lanmu3 drop constraint prod1id;
  10. alter table lanmu3 drop constraint prod2id;
  11. alter table lanmu3 drop constraint infor1id;
  12. alter table lanmu3 drop constraint infor2id;

  13. alter table product drop constraint prod1id;
  14. alter table product drop constraint prod2id;

  15. alter table [information] drop constraint inforid;
  16. alter table [information] drop constraint lanmu2id1;
  17. alter  table lanmu3   alter column prod_order int default 0;

  18.   create Table collection(id int identity(1,1) primary key,c_name  nvarchar(50),c_table varchar(50),c_tablename nvarchar(50),c_encode varchar(50),c_order int default 0,c_url varchar(250),c_url_startpage int default 1,c_url_endpage int default 1,c_urls text,c_list_starthtml ntext,c_list_endhtml ntext,c_list_domain varchar(250),c_list_urlcontains varchar(200),c_list_urlnotcontains varchar(200),c_saveimage int default 1,xuhao int default 0,thedate datetime);
  19.   create Table zdymodel(id int identity(1,1) primary key,planguage  varchar(50),name nvarchar(50),f_id int default 0,f_table varchar(50),nav_head_model ntext,nav_list_model ntext,nav_bottom_model ntext,template_head_model ntext,template_list_model ntext,template_bottom_model ntext,lanmu_head_model ntext,lanmu_list_model ntext,lanmu_bottom_model ntext,detail_head_model ntext,detail_model ntext,detail_bottom_model ntext,search_head_model ntext,search_list_model ntext,search_bottom_model ntext,xuhao int default 0);
  20.   create Table zdyform_sort(id int identity(1,1) primary key,planguage  varchar(50),fid  int default 0,ftable  varchar(50),parent_id  int default 0,sort_level  int default 1,sort_name nvarchar(50),allow_memtype varchar(250),xuhao int default 0);


  21.   alter  table lanmu1 alter column target varchar(50);
  22.   alter  table lanmu2 alter column target varchar(50);
  23.   alter  table lanmu3 alter column target varchar(50);
  24.   alter  table template alter column target nvarchar(50);

  25.   alter  table zdyform_field add  search int default 0,collection int default 0,fckeditor int default 0,field_js ntext;
  26.   alter  table lanmu2   add zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50);
  27.   alter  table template add zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50);
  28.   alter  table lanmu3   add lanmu3_target  varchar(50),zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50),zdymodel_show_num int default 20;
  29.   alter  table network add cprovince  nvarchar(50);
  30.   alter  table zdyform_field add value_type nvarchar(50);
  31.   alter  table product  add username varchar(50),show int default 0,list_order int default 0,price_unit nvarchar(50),thumbnail nvarchar(100),sort1id int default 0,sort2id int default 0,sort1 nvarchar(50),sort2 nvarchar(50);
  32.   alter  table information  add thumbnail nvarchar(100),sort1id int default 0,sort2id int default 0,sort1 nvarchar(50),sort2 nvarchar(50),clicks int default 0;
  33.   alter  table prod1 add allow_memtype varchar(200);
  34.   alter  table prod2 add allow_memtype varchar(200);
  35.   alter  table comments add planguage varchar(50);
  36.   alter table lanmu2 add show_tj int default 0;
  37.   alter table lanmu2 add list_order int default 0;
  38.   alter table template add list_order int default 0;
  39.   alter table template add show_tj int default 0;
  40.   alter table slide add list_order int default 0;

  41.   update lanmu1 set target='_self';
  42.   update lanmu2 set target='_self',zdymodel_id=0,sort1id=0,sort2id=0;
  43.   update lanmu3 set lanmu3_target='_self',target='_self',zdymodel_id=0,sort1id=0,sort2id=0,zdymodel_show_num=20;
  44.   update template set target='_self',zdymodel_id=0,sort1id=0,sort2id=0;
  45.   update template set sort1id=infor1id,sort2id=infor2id where thetype='article';
  46.   update template  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  47.   update lanmu2  set sort1id=infor1id,sort2id=infor2id where thetype='article';
  48.   update lanmu2  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  49.   update lanmu3  set sort1id=infor1id,sort2id=infor2id where thetype='article';
  50.   update lanmu3  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  51.   update lanmu3  set prod_order=0   where  prod_order is null;
  52.   update zdyform_field set  search=0,fckeditor=0;
  53.   update product set list_order=0,show=1,thumbnail=upload,sort1id=prod1id,sort2id=prod2id,sort1=prod1,sort2=prod2;
  54.   update information set thumbnail=upload,sort1id=infor1id,sort2id=infor2id,sort1=infor1,sort2=infor2,clicks=click;

  55.   update comments  set planguage='cn'   where  planguage is null;
  56.   update template set list_order=0;
  57.   update template set show_tj=0  where show_tj is null;
  58.   update lanmu2 set show_tj=0,list_order=0;
  59.   update slide set list_order=0;

  60.   alter  table template drop column prod1id;
  61.   alter  table template drop column prod2id;
  62.   alter  table template drop column infor1id;
  63.   alter  table template drop column infor2id;

  64.   alter  table lanmu2 drop column prod1id;
  65.   alter  table lanmu2 drop column prod2id;
  66.   alter  table lanmu2 drop column infor1id;
  67.   alter  table lanmu2 drop column infor2id;

  68.   alter  table lanmu3 drop column prod1id;
  69.   alter  table lanmu3 drop column prod2id;
  70.   alter  table lanmu3 drop column infor1id;
  71.   alter  table lanmu3 drop column infor2id;

  72.   alter  table product drop column prod1id;
  73.   alter  table product drop column prod2id;
  74.   alter  table product drop column prod1;
  75.   alter  table product drop column prod2;

  76.   alter  table information drop column click;
  77.   alter  table information drop column infor1;
  78.   alter  table information drop column infor2;
  79.   alter  table information drop column infor1id;
  80.   alter  table information drop column infor2id
复制代码
pageadmin cms-网站建设高效解决之道
TOP
3#

以下为mssql server版本的SQL
  1. declare   @name   varchar(100)  
  2. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu1')   and   b.id=a.cdefault   and   a.name='target'   and   b.name   like   'DF%'  
  3. exec('alter   table   lanmu1   drop   constraint   '+@name);

  4. declare   @name   varchar(100)  
  5. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu2')   and   b.id=a.cdefault   and   a.name='target'   and   b.name   like   'DF%'  
  6. exec('alter   table   lanmu2   drop   constraint   '+@name);

  7. declare   @name   varchar(100)  
  8. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='target'   and   b.name   like   'DF%'  
  9. exec('alter   table   lanmu3   drop   constraint   '+@name);

  10. declare   @name   varchar(100)  
  11. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='prod_order'   and   b.name   like   'DF%'  
  12. exec('alter   table   lanmu3  drop   constraint   '+@name);


  13. declare   @name   varchar(100)  
  14. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('template')   and   b.id=a.cdefault   and   a.name='target'   and   b.name   like   'DF%'  
  15. exec('alter   table   template  drop   constraint   '+@name);

  16. declare   @name   varchar(100)   declare   @name   varchar(100)  
  17. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('template')   and   b.id=a.cdefault   and   a.name='prod1id'   and   b.name   like   'DF%'  
  18. exec('alter   table   template  drop   constraint   '+@name);

  19. declare   @name   varchar(100)  
  20. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('template')   and   b.id=a.cdefault   and   a.name='prod2id'   and   b.name   like   'DF%'  
  21. exec('alter   table   template  drop   constraint   '+@name);

  22. declare   @name   varchar(100)  
  23. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('template')   and   b.id=a.cdefault   and   a.name='infor1id'   and   b.name   like   'DF%'  
  24. exec('alter   table   template  drop   constraint   '+@name);

  25. declare   @name   varchar(100)  
  26. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('template')   and   b.id=a.cdefault   and   a.name='infor2id'   and   b.name   like   'DF%'  
  27. exec('alter   table   template  drop   constraint   '+@name);

  28. declare   @name   varchar(100)  
  29. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu2')   and   b.id=a.cdefault   and   a.name='prod1id'   and   b.name   like   'DF%'  
  30. exec('alter   table   lanmu2  drop   constraint   '+@name);

  31. declare   @name   varchar(100)  
  32. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu2')   and   b.id=a.cdefault   and   a.name='prod2id'   and   b.name   like   'DF%'  
  33. exec('alter   table   lanmu2  drop   constraint   '+@name);

  34. declare   @name   varchar(100)  
  35. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu2')   and   b.id=a.cdefault   and   a.name='infor1id'   and   b.name   like   'DF%'  
  36. exec('alter   table   lanmu2  drop   constraint   '+@name);

  37. declare   @name   varchar(100)  
  38. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu2')   and   b.id=a.cdefault   and   a.name='infor2id'   and   b.name   like   'DF%'  
  39. exec('alter   table   lanmu2  drop   constraint   '+@name);


  40. declare   @name   varchar(100)  
  41. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='prod1id'   and   b.name   like   'DF%'  
  42. exec('alter   table   lanmu3  drop   constraint   '+@name);

  43. declare   @name   varchar(100)  
  44. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='prod2id'   and   b.name   like   'DF%'  
  45. exec('alter   table   lanmu3  drop   constraint   '+@name);

  46. declare   @name   varchar(100)  
  47. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='infor1id'   and   b.name   like   'DF%'  
  48. exec('alter   table   lanmu3  drop   constraint   '+@name);

  49. declare   @name   varchar(100)  
  50. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('lanmu3')   and   b.id=a.cdefault   and   a.name='infor2id'   and   b.name   like   'DF%'  
  51. exec('alter   table   lanmu3  drop   constraint   '+@name);


  52. declare   @name   varchar(100)  
  53. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('product')   and   b.id=a.cdefault   and   a.name='prod1id'   and   b.name   like   'DF%'  
  54. exec('alter   table   product  drop   constraint   '+@name);

  55. declare   @name   varchar(100)  
  56. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('product')   and   b.id=a.cdefault   and   a.name='prod2id'   and   b.name   like   'DF%'  
  57. exec('alter   table   product  drop   constraint   '+@name);


  58. declare   @name   varchar(100)  
  59. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('information')   and   b.id=a.cdefault   and   a.name='infor1id'   and   b.name   like   'DF%'  
  60. exec('alter   table   information  drop   constraint   '+@name);


  61. declare   @name   varchar(100)  
  62. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('information')   and   b.id=a.cdefault   and   a.name='infor2id'   and   b.name   like   'DF%'  
  63. exec('alter   table   information  drop   constraint   '+@name);

  64. declare   @name   varchar(100)  
  65. select   @name=b.name   from   syscolumns   a,sysobjects   b   where   a.id=object_id('information')   and   b.id=a.cdefault   and   a.name='click'   and   b.name   like   'DF%'  
  66. exec('alter   table   information  drop   constraint   '+@name);

  67. alter table   lanmu3  add  constraint   defaultname   default  0  for  prod_order;

  68.   create Table collection(id int identity(1,1) primary key,c_name  nvarchar(50),c_table varchar(50),c_tablename nvarchar(50),c_encode varchar(50),c_order int default 0,c_url varchar(250),c_url_startpage int default 1,c_url_endpage int default 1,c_urls text,c_list_starthtml ntext,c_list_endhtml ntext,c_list_domain varchar(250),c_list_urlcontains varchar(200),c_list_urlnotcontains varchar(200),c_saveimage int default 1,xuhao int default 0,thedate datetime);
  69.   create Table zdymodel(id int identity(1,1) primary key,planguage  varchar(50),name nvarchar(50),f_id int default 0,f_table varchar(50),nav_head_model ntext,nav_list_model ntext,nav_bottom_model ntext,template_head_model ntext,template_list_model ntext,template_bottom_model ntext,lanmu_head_model ntext,lanmu_list_model ntext,lanmu_bottom_model ntext,detail_head_model ntext,detail_model ntext,detail_bottom_model ntext,search_head_model ntext,search_list_model ntext,search_bottom_model ntext,xuhao int default 0);
  70.   create Table zdyform_sort(id int identity(1,1) primary key,planguage  varchar(50),fid  int default 0,ftable  varchar(50),parent_id  int default 0,sort_level  int default 1,sort_name nvarchar(50),allow_memtype varchar(250),xuhao int default 0);


  71.   alter  table lanmu1 alter column target varchar(50);
  72.   alter  table lanmu2 alter column target varchar(50);
  73.   alter  table lanmu3 alter column target varchar(50);
  74.   alter  table template alter column target nvarchar(50);

  75.   alter  table zdyform_field add  search int default 0,collection int default 0,fckeditor int default 0,field_js ntext;
  76.   alter  table lanmu2   add zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50);
  77.   alter  table template add zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50);
  78.   alter  table lanmu3   add lanmu3_target  varchar(50),zdymodel_id int default 0,zdymodel_table varchar(50),sort1id int default 0,sort2id int default 0,zdymodel_order varchar(50),zdymodel_condition varchar(50),zdymodel_show_num int default 20;
  79.   alter  table network add cprovince  nvarchar(50);
  80.   alter  table zdyform_field add value_type nvarchar(50);
  81.   alter  table product  add username varchar(50),show int default 0,list_order int default 0,price_unit nvarchar(50),thumbnail nvarchar(100),sort1id int default 0,sort2id int default 0,sort1 nvarchar(50),sort2 nvarchar(50);
  82.   alter  table information  add thumbnail nvarchar(100),sort1id int default 0,sort2id int default 0,sort1 nvarchar(50),sort2 nvarchar(50),clicks int default 0;
  83.   alter  table prod1 add allow_memtype varchar(200);
  84.   alter  table prod2 add allow_memtype varchar(200);
  85.   alter  table comments add planguage varchar(50);
  86.   alter table lanmu2 add show_tj int default 0;
  87.   alter table lanmu2 add list_order int default 0;
  88.   alter table template add list_order int default 0;
  89.   alter table template add show_tj int default 0;
  90.   alter table slide add list_order int default 0;

  91.   update lanmu1 set target='_self';
  92.   update lanmu2 set target='_self',zdymodel_id=0,sort1id=0,sort2id=0;
  93.   update lanmu3 set lanmu3_target='_self',target='_self',zdymodel_id=0,sort1id=0,sort2id=0,zdymodel_show_num=20;
  94.   update template set target='_self',zdymodel_id=0,sort1id=0,sort2id=0;
  95.   update template set sort1id=infor1id,sort2id=infor2id where thetype='article';
  96.   update template  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  97.   update lanmu2  set sort1id=infor1id,sort2id=infor2id where thetype='article';
  98.   update lanmu2  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  99.   update lanmu3  set sort1id=infor1id,sort2id=infor2id where thetype='article';
  100.   update lanmu3  set sort1id=prod1id,sort2id=prod2id   where  thetype='product';
  101.   update lanmu3  set prod_order=0   where  prod_order is null;
  102.   update zdyform_field set  search=0,fckeditor=0;
  103.   update product set list_order=0,show=1,thumbnail=upload,sort1id=prod1id,sort2id=prod2id,sort1=prod1,sort2=prod2;
  104.   update information set thumbnail=upload,sort1id=infor1id,sort2id=infor2id,sort1=infor1,sort2=infor2,clicks=click;

  105.   update comments  set planguage='cn'   where  planguage is null;
  106.   update template set list_order=0;
  107.   update template set show_tj=0  where show_tj is null;
  108.   update lanmu2 set show_tj=0,list_order=0;
  109.   update slide set list_order=0;

  110.   alter  table template drop column prod1id;
  111.   alter  table template drop column prod2id;
  112.   alter  table template drop column infor1id;
  113.   alter  table template drop column infor2id;

  114.   alter  table lanmu2 drop column prod1id;
  115.   alter  table lanmu2 drop column prod2id;
  116.   alter  table lanmu2 drop column infor1id;
  117.   alter  table lanmu2 drop column infor2id;

  118.   alter  table lanmu3 drop column prod1id;
  119.   alter  table lanmu3 drop column prod2id;
  120.   alter  table lanmu3 drop column infor1id;
  121.   alter  table lanmu3 drop column infor2id;

  122.   alter  table product drop column prod1id;
  123.   alter  table product drop column prod2id;
  124.   alter  table product drop column prod1;
  125.   alter  table product drop column prod2;

  126.   alter  table information drop column click;
  127.   alter  table information drop column infor1;
  128.   alter  table information drop column infor2;
  129.   alter  table information drop column infor1id;
  130.   alter  table information drop column infor2id
复制代码
pageadmin cms-网站建设高效解决之道
TOP
发新话题 回复该主题