Browse Source

优化数据

tags/6.2.0
xushubieli 1 year ago
parent
commit
c8f1d524c7
14 changed files with 72 additions and 116 deletions
  1. +12
    -35
      src/admin/templets/cards_type.htm
  2. +10
    -12
      src/admin/templets/content_att.htm
  3. +1
    -3
      src/admin/templets/freelist_add.htm
  4. +1
    -3
      src/admin/templets/freelist_edit.htm
  5. +1
    -3
      src/admin/templets/sys_admin_user_add.htm
  6. +1
    -3
      src/admin/templets/sys_group_add.htm
  7. +6
    -12
      src/admin/templets/sys_sql_query.htm
  8. +1
    -1
      src/admin/templets/tags_main.htm
  9. +5
    -5
      src/admin/templets/templets_one_edit.htm
  10. +1
    -2
      src/admin/templets/tpl_newfile.htm
  11. +3
    -3
      src/install/config.cache.inc.php
  12. +23
    -24
      src/install/sql-dfdata.txt
  13. +1
    -2
      src/install/templates/step-1.html
  14. +6
    -8
      src/install/v57sp2_to_v6.txt

+ 12
- 35
src/admin/templets/cards_type.htm View File

@@ -31,49 +31,26 @@
?>
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>">
<tr align="center">
<td height="26">
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%">
</td>
<td height="26">
<input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" class='pubinputs' style="width:80%">
</td>
<td>
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class='pubinputs' style="width:80%">
(元)
</td>
<td>
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1'
class='np'>
保留
</td>
<td height="26"><input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%"></td>
<td height="26"><input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" class='pubinputs' style="width:80%"></td>
<td><input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class='pubinputs' style="width:80%">(元)</td>
<td><input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class='np'> 保留</td>
</tr>
<?php
}
?>
}
?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr bgcolor="#F8FCF1">
<td height="26" colspan="4" bgcolor="#f8f8f8" style="padding-left:10px">
新增一个点卡产品类型:</td>
<td height="26" colspan="4" bgcolor="#f8f8f8" style="padding-left:10px">新增一个点卡产品类型:</td>
</tr>
<tr height="26" align="center">
<td>
<input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%">
</td>
<td>
<input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%">
</td>
<td>
<input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30">
(元)
</td>
<td align="center">
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np'>
新增 </td>
<td><input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%"></td>
<td><input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%"></td>
<td><input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30">(元)</td>
<td align="center"><input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np'> 新增</td>
</tr>
<tr>
<td colspan="4" align="center" bgcolor="#f8f8f8" class="py-3">
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
<td colspan="4" align="center" bgcolor="#f8f8f8" class="py-3"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
</tr>
</form>
</table>


+ 10
- 12
src/admin/templets/content_att.htm View File

@@ -29,13 +29,13 @@
<td width="70%">属性名称</td>
</tr>
<?php
$dsql->SetQuery(" Select * From `#@__arcatt` order by sortid asc ");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
$dsql->SetQuery(" Select * From `#@__arcatt` order by sortid asc ");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<input type="hidden" name="att_<?php echo $k?>" value="<?php echo $row->att?>">
<tr>
<td align="center"><?php echo $row->att; ?></td>
@@ -43,13 +43,11 @@
<td><input name="attname_<?php echo $k?>" value="<?php echo $row->attname; ?>" type="text" id="attname_<?php echo $k?>" size="30" class='pubinputs'></td>
</tr>
<?php
}
?>
}
?>
<input type="hidden" name="idend" value="<?php echo $k?>">
<tr>
<td colspan="3" align="center" class="py-3">
<button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
<td colspan="3" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
</tr>
</form>
</table>


+ 1
- 3
src/admin/templets/freelist_add.htm View File

@@ -258,9 +258,7 @@
</td>
</tr>
<tr>
<td align="center" class="py-3">
<button name="Submit2" type="submit" id="Submit2" class="btn btn-success btn-sm">保存</button>
</td>
<td align="center" class="py-3"><button name="Submit2" type="submit" id="Submit2" class="btn btn-success btn-sm">保存</button></td>
</tr>
</table>
</td>


+ 1
- 3
src/admin/templets/freelist_edit.htm View File

@@ -250,9 +250,7 @@
</td>
</tr>
<tr>
<td align="center" class="py-3">
<button name="Submit2" type="submit" id="Submit2" class="btn btn-success btn-sm">保存</button>
</td>
<td align="center" class="py-3"><button name="Submit2" type="submit" id="Submit2" class="btn btn-success btn-sm">保存</button></td>
</tr>
</table>
</td>


+ 1
- 3
src/admin/templets/sys_admin_user_add.htm View File

@@ -103,9 +103,7 @@
</td>
</tr>
<tr>
<td colspan="2" align="center" class="py-3">
<button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button>
</td>
<td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" class="coolbg np">保存</button></td>
</tr>
</table>
</form>


+ 1
- 3
src/admin/templets/sys_group_add.htm View File

@@ -78,9 +78,7 @@
</td>
</tr>
<tr>
<td colspan="2" align="center" class="py-3">
<button type="submit" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" class="coolbg np">保存</button>
</td>
<td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm" onClick="DoSubmit('gettag')" class="coolbg np">保存</button></td>
</tr>
</table>
</td>


+ 6
- 12
src/admin/templets/sys_sql_query.htm View File

@@ -38,7 +38,7 @@
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="30%">
<select name="tablename" id="tablename" style="width:100%;height:auto" size="12">
<select name="tablename" id="tablename" style="width:100%;height:auto" size="16">
<?php
if ($cfg_dbtype=="sqlite") {
$query = "SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;";
@@ -61,15 +61,12 @@
<td width="2%"></td>
<td width="63%" valign="bottom">
<div style="float:left;margin-right:20px">
<button type="Submit" name="Submit1" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimize';">优化选中表</button>
<br>
<button type="Submit" name="Submit2" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repair';" style="margin-top:10px">修复选中表</button>
<br>
<button type="Submit" name="Submit1" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimize';">优化选中表</button><br>
<button type="Submit" name="Submit2" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repair';" style="margin-top:10px">修复选中表</button><br>
<button type="Submit" name="Submit3" class="btn btn-success btn-sm" onClick="this.form.dopost.value='viewinfo';" style="margin-top:10px">查看表结构</button>
</div>
<div style="float:left">
<button type="Submit" name="Submit5" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimizeAll';">优化全部表</button>
<br>
<button type="Submit" name="Submit5" class="btn btn-success btn-sm" onClick="this.form.dopost.value='opimizeAll';">优化全部表</button><br>
<button type="Submit" name="Submit6" class="btn btn-success btn-sm" onClick="this.form.dopost.value='repairAll';" style="margin-top:10px">修复全部表</button>
</div>
</td>
@@ -94,13 +91,10 @@
</td>
</tr>
<tr>
<td height="110" colspan="2" style="border:1px solid #ddd">
<textarea id="sqlquery" name="sqlquery" cols="60" rows="10" id="sqlquery" style="width:90%"></textarea>
</td>
<td height="110" colspan="2" style="border:1px solid #ddd"><textarea id="sqlquery" name="sqlquery" cols="60" rows="10" id="sqlquery" style="width:90%"></textarea></td>
</tr>
<tr>
<td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm">保存</button>
</td>
<td colspan="2" align="center" class="py-3"><button type="submit" class="btn btn-success btn-sm">保存</button></td>
</tr>
</form>
</table>


+ 1
- 1
src/admin/templets/tags_main.htm View File

@@ -108,7 +108,7 @@
<form name="form2" action="tags_main.php" style="display:inline-block">
<input type="text" name="tag" value="<?php echo $tag; ?>" placeholder="请输入标签" style="width:160px">
<button type="submit" name="sb" class="btn btn-success btn-sm">保存</button>
<a href="makehtml_taglist.php" name="sb" class="btn btn-success btn-sm">生成标签</a>
<a href="makehtml_taglist.php" name="sb" class="btn btn-success btn-sm">生成</a>
</form>
</td>
</tr>


+ 5
- 5
src/admin/templets/templets_one_edit.htm View File

@@ -30,12 +30,12 @@ function checkSubmit()
</head>
<body>
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3">
<tr>
<tr>
<td height="26" background="../static/web/img/tbg.gif" style="padding-left:10px"><a href="templets_one.php">单独页面管理</a> &gt; 修改自定义页面</td>
</tr>
<tr>
<td height="200">
<table width="100%" cellspacing="4" cellpadding="2" class="table table-borderless">
</tr>
<tr>
<td height="200">
<table width="100%" cellspacing="4" cellpadding="2" class="table table-borderless">
<form action="templets_one_edit.php" method="post" name="form1" onSubmit="return checkSubmit()">
<input type='hidden' name='dopost' value='saveedit'>
<input type='hidden' name='aid' value='<?php echo $aid?>'>


+ 1
- 2
src/admin/templets/tpl_newfile.htm View File

@@ -40,8 +40,7 @@
<tr>
<td>
<input type="submit" value="保存" name='B1' class="btn btn-success btn-sm">
<input type="reset" value="取消修改" name='B2' class="btn btn-success btn-sm">
<input type="button" value="不理返回" name='B4' class="btn btn-success btn-sm" onClick="javascript:history.go(-1)">
<input type="button" value="返回" name='B4' class="btn btn-success btn-sm" onClick="javascript:history.go(-1)">
</td>
</tr>
</form>


+ 3
- 3
src/install/config.cache.inc.php View File

@@ -4,7 +4,7 @@ $cfg_cmspath = '~basepath~';
$cfg_cookie_encode = '~cookieEncode~';
$cfg_indexurl = '~indexurl~';
$cfg_backup_dir = 'backupdata';
$cfg_indexname = '页';
$cfg_indexname = '网站主页';
$cfg_webname = '~webname~';
$cfg_adminemail = '~adminmail~';
$cfg_html_editor = 'ckeditor';
@@ -26,7 +26,7 @@ $cfg_fck_xhtml = 'N';
$cfg_df_style = 'templets';
$cfg_multi_site = 'N';
$cfg_dede_log = 'N';
$cfg_powerby = 'Copyright &copy; 2022 DedeBIZ 版权所有';
$cfg_powerby = 'Copyright © 2022 DedeBIZ 版权所有';
$cfg_arcsptitle = 'N';
$cfg_arcautosp = 'N';
$cfg_arcautosp_size = 5;
@@ -114,7 +114,7 @@ $cfg_jump_once = 'Y';
$cfg_task_pwd = '';
$cfg_addon_domainbind = 'N';
$cfg_addon_domain = '';
$cfg_df_dutyadmin = '网站管理员';
$cfg_df_dutyadmin = '管理员';
$cfg_mb_allowncarc = 'Y';
$cfg_mb_allowreg = 'Y';
$cfg_mb_adminlock = 'N';


+ 23
- 24
src/install/sql-dfdata.txt View File

@@ -2,14 +2,14 @@ INSERT INTO `#@__admintype` VALUES('1','信息发布员','1','t_AccList a_AccNew
('5','频道管理员','1','t_AccList t_AccNew t_AccEdit t_AccDel a_AccNew a_AccList a_AccEdit a_AccDel a_AccCheck a_MyList a_MyEdit a_MyDel a_MyCheck spec_New spec_List spec_Edit sys_MdPwd sys_Log sys_ArcTj sys_Source sys_Writer sys_Keyword sys_MakeHtml sys_Feedback sys_Upload sys_MyUpload member_List member_Edit plus_站内新闻发布 plus_友情链接模块 plus_留言簿模块 plus_投票模块 plus_广告管理 '),
('10','超级管理员','1','admin_AllowAll ');
INSERT INTO `#@__arcatt` VALUES('5','s','滚动'),
('1','h','头条'),
('3','f','幻灯'),
INSERT INTO `#@__arcatt` VALUES('1','h','头条'),
('2','c','推荐'),
('7','p','图片'),
('8','j','跳转'),
('3','f','幻灯'),
('4','a','特荐'),
('6','b','加粗');
('5','s','滚动'),
('6','b','加粗'),
('7','p','图片'),
('8','j','跳转');
INSERT INTO `#@__arcrank` VALUES('1','0','开放浏览','5','0','0',''),
('2','-1','待审核稿件','0','0','0',''),
@@ -502,21 +502,21 @@ INSERT INTO `#@__area` VALUES('1','北京市','0','0'),
('33','澳门区','0','0'),
('35','台湾省','0','0');
INSERT INTO `#@__channeltype` VALUES('1','article','普通文章','#@__archives','#@__addonarticle','article_add.php','content_list.php','article_edit.php','article_add.php','content_list.php','article_edit.php','<field:body itemname="文章内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="1" maxlength="" page="split">\t\n</field:body>\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'),
('2','image','图片集','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','<field:pagestyle itemname="页面风格" type="number" isnull="true" default="2" rename="" notsend="1" />\t\n<field:imgurls itemname="图片集合" type="img" isnull="true" rename="" page="split" />\t\n<field:body itemname="图集内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page=""></field:body>','','','1','1','1','-1','','10','0','1','1','标题','0','0'),
INSERT INTO `#@__channeltype` VALUES('1','article','普通文章','#@__archives','#@__addonarticle','article_add.php','content_list.php','article_edit.php','article_add.php','content_list.php','article_edit.php','<field:body itemname="文章内容" autofield="0" notsend="0" type="htmltext" isnull="true" islist="1" maxlength="" page="split">\t\n</field:body>\t\n','','','1','1','1','-1','','10','0','1','1','标题','0','0'),
('2','image','图片集','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','<field:pagestyle itemname="页面风格" type="number" isnull="true" default="2" rename="" notsend="1" />\t\n<field:imgurls itemname="图片集合" type="img" isnull="true" rename="" page="split" />\t\n<field:body itemname="图集内容" autofield="0" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page=""></field:body>','','','1','1','1','-1','','10','0','1','1','标题','0','0'),
('3','soft','软件','#@__archives','#@__addonsoft','soft_add.php','content_i_list.php','soft_edit.php','','','','<field:filetype islist="1" itemname="文件类型" type="text" isnull="true" rename="" />\t\n<field:language islist="1" itemname="语言" type="text" isnull="true" rename="" />\t\n<field:softtype islist="1" itemname="软件类型" type="text" isnull="true" rename="" />\t\n<field:accredit islist="1" itemname="授权方式" type="text" isnull="true" rename="" />\t\n<field:os islist="1" itemname="操作系统" type="text" isnull="true" rename="" />\t\n<field:softrank islist="1" itemname="软件等级" type="int" isnull="true" default="3" rename="" function="GetRankStar(@me)" notsend="1" />\t\n<field:officialUrl itemname="官方网址" type="text" isnull="true" rename="" />\t\n<field:officialDemo itemname="演示网址" type="text" isnull="true" rename="" />\t\n<field:softsize itemname="软件大小" type="text" isnull="true" rename="" />\t\n<field:softlinks itemname="软件地址" type="softlinks" isnull="true" rename="" />\t\n<field:introduce itemname="详细介绍" type="htmltext" isnull="trnue" rename="" />\t\n<field:daccess islist="1" itemname="下载级别" type="int" isnull="true" default="0" rename="" function="" notsend="1" />\t\n<field:needmoney islist="1" itemname="需要金币" type="int" isnull="true" default="0" rename="" function="" notsend="1" />','filetype,language,softtype,os,accredit,softrank','','1','1','1','-1','','10','0','1','1','标题','0','0'),
('-1','spec','专题','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','<field:note type="specialtopic" isnull="true" rename="" />','','','1','1','0','-1','','10','0','1','1','标题','0','0'),
('6','shop','商品','#@__archives','#@__addonshop','archives_add.php','content_list.php','archives_edit.php','archives_add.php','content_list.php','archives_edit.php','<field:body itemname="详细介绍" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="" page="split">\t\n</field:body>\t\n<field:price itemname="市场价" autofield="1" notsend="0" type="float" isnull="true" islist="1" maxlength="" page="">\t\n</field:price>\t\n<field:trueprice itemname="优惠价" autofield="1" notsend="0" type="float" isnull="true" islist="1" maxlength="" page="">\t\n</field:trueprice>\t\n<field:brand itemname="品牌" autofield="1" notsend="0" type="text" isnull="true" islist="1" maxlength="250" page="">\t\n</field:brand>\t\n<field:units itemname="计量单位" autofield="1" notsend="0" type="text" isnull="true" islist="1" maxlength="250" page="">\t\n</field:units>\t\n\n\t\n\n<field:vocation itemname="行业" autofield="1" notsend="0" type="stepselect" isnull="true" islist="0" maxlength="250" page="">\t\n</field:vocation>\t\n\n<field:infotype itemname="信息类型" autofield="1" notsend="0" type="stepselect" isnull="true" islist="0" maxlength="250" page="">\t\n</field:infotype>\t\n\n<field:uptime itemname="上架时间" autofield="1" notsend="0" type="datetime" isnull="true" islist="0" maxlength="250" page="">\t\n</field:uptime>\t\n','price,trueprice,brand,units','','0','1','1','-1','','10','0','1','1','商品名称','0','0'),
('-8','infos','分类信息','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','<field:channel itemname="频道id" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:channel>\t\n<field:arcrank itemname="浏览权限" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="5" page=""></field:arcrank>\t\n<field:mid itemname="会员id" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:mid>\t\n<field:click itemname="点击" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:click>\t\n<field:title itemname="标题" autofield="1" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:title>\t\n<field:senddate itemname="发布时间" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:senddate>\t\n<field:flag itemname="推荐属性" autofield="1" notsend="0" type="checkbox" isnull="true" islist="1" default="0" maxlength="10" page=""></field:flag>\t\n<field:litpic itemname="缩略图" autofield="1" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:litpic>\t\n<field:userip itemname="会员IP" autofield="1" notsend="0" type="text" isnull="true" islist="0" default="0" maxlength="15" page=""></field:userip>\t\n<field:lastpost itemname="最后评论时间" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:lastpost>\t\n<field:scores itemname="评论积分" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:scores>\t\n<field:goodpost itemname="好评数" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:goodpost>\t\n<field:badpost itemname="差评数" autofield="1" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:badpost>\t\n<field:nativeplace itemname="地区" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:nativeplace>\t\n<field:infotype itemname="信息类型" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:infotype>\t\n<field:body itemname="信息内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page="">\t\n</field:body>\t\n<field:endtime itemname="截止日期" autofield="1" notsend="0" type="datetime" isnull="true" islist="1" maxlength="250" page="">\t\n</field:endtime>\t\n<field:linkman itemname="联系人" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:linkman>\t\n<field:tel itemname="联系电话" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:tel>\t\n<field:email itemname="电子邮箱" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:email>\t\n<field:address itemname="地址" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="100" page="">\t\n</field:address>\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0');
('-1','spec','专题','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','<field:note type="specialtopic" isnull="true" rename="" />','','','1','1','0','-1','','10','0','1','1','标题','0','0'),
('-8','infos','分类信息','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','<field:channel itemname="频道id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:channel>\t\n<field:arcrank itemname="浏览权限" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="5" page=""></field:arcrank>\t\n<field:mid itemname="会员id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:mid>\t\n<field:click itemname="点击" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:click>\t\n<field:title itemname="标题" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:title>\t\n<field:senddate itemname="发布时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:senddate>\t\n<field:flag itemname="推荐属性" autofield="0" notsend="0" type="checkbox" isnull="true" islist="1" default="0" maxlength="10" page=""></field:flag>\t\n<field:litpic itemname="缩略图" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:litpic>\t\n<field:userip itemname="会员IP" autofield="0" notsend="0" type="text" isnull="true" islist="0" default="0" maxlength="15" page=""></field:userip>\t\n<field:lastpost itemname="最后评论时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:lastpost>\t\n<field:scores itemname="评论积分" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:scores>\t\n<field:goodpost itemname="好评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:goodpost>\t\n<field:badpost itemname="差评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:badpost>\t\n<field:nativeplace itemname="地区" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:nativeplace>\t\n<field:infotype itemname="信息类型" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:infotype>\t\n<field:body itemname="信息内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page="">\t\n</field:body>\t\n<field:endtime itemname="截止日期" autofield="1" notsend="0" type="datetime" isnull="true" islist="1" maxlength="250" page="">\t\n</field:endtime>\t\n<field:linkman itemname="联系人" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:linkman>\t\n<field:tel itemname="联系电话" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:tel>\t\n<field:email itemname="电子邮箱" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:email>\t\n<field:address itemname="地址" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="100" page="">\t\n</field:address>\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0');
INSERT INTO `#@__co_onepage` VALUES('5','www.dedebiz.com','DedeBIZ','1','gb2312','<div class="content">{@body}<div class="cupage">'),
('4','www.techweb.com.cn','Techweb','1','gb2312','<div class="content_txt">{@body}</div>\t\n'),
('6','tw.news.yahoo.com','台湾雅虎','1','big5','<div id="ynwsartcontent">{@body}</div>\t\n');
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES (1, 'https://www.dedebiz.com', 'DedeBIZ', '', '', '', 1226375403, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES (1, 'https://www.dedebiz.com/help', '帮助中心', '', '', '', 1227772717, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES (1, 'https://www.dedebiz.com/auth', '授权中心', '', '', '', 1227772703, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES (3, 'https://www.dedebiz.com/git', '代码托管', '', '', '', 1603767210, 1, 1);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES(1, 'https://www.dedebiz.com', 'DedeBIZ', '', '', '', 1226375403, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES(1, 'https://www.dedebiz.com/help', '帮助中心', '', '', '', 1227772717, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES(1, 'https://www.dedebiz.com/auth', '授权中心', '', '', '', 1227772703, 1, 2);
INSERT INTO `#@__flink` (`sortrank`, `url`, `webname`, `msg`, `email`, `logo`, `dtime`, `typeid`, `ischeck`) VALUES(3, 'https://www.dedebiz.com/git', '代码托管', '', '', '', 1603767210, 1, 1);
INSERT INTO `#@__flinktype` VALUES('1','综合网站'),
('2','娱乐类'),
@@ -528,7 +528,7 @@ INSERT INTO `#@__flinktype` VALUES('1','综合网站'),
('8','其它类型');
INSERT INTO `#@__freelist` VALUES('1','测试内容','{listdir}/index_{listid}_{page}.html','{cmspath}/freelist/','index.html','1','{style}/list_free.htm','1289712633','100','0','{dede:list pagesize="30" col="1" titlelen="60" orderby="pubdate" orderway="desc" typeid="1" channel="1" }<li>[field:imglink/] [field:textlink/] <span class=info><small>日期:</small>[field:pubdate function="getdatemk(@me)"/] <small>点击:</small>[field:click/] <small>好评:</small>[field:scores/] </span>\t\n<p class=intro>[field:description/]</p></li>{/dede:list}','测试','测试内容'),
('10','Google SiteMap 生成器','{listdir}googlemap_{page}.xml','{cmspath}','index.html','1','{style}/googlemap.htm','1226884666','100','0','{dede:list pagesize="500" col="1" titlelen="60" orderby="pubdate" orderway="desc"\t\nchannel="1" keyword="" }<url>\t\n<loc>[field:arcurl function="Gmapurl(@me)"/]</loc>\t\n<title>[field:title function="HtmlReplace(@me)"/]</title>\t\n<news:news>\t\n <news:keywords>[field:keywords/]</news:keywords>\t\n<news:publication_date>[field:senddate function="strftime('%Y-%m-%d',@me)"/]</news:publication_date>\t\n</news:news>\t\n</url>{/dede:list}','','');
('10','Google SiteMap 生成器','{listdir}googlemap_{page}.xml','{cmspath}','index.html','1','{style}/googlemap.htm','1226884666','100','0','{dede:list pagesize="500" col="1" titlelen="60" orderby="pubdate" orderway="desc"\t\nchannel="1" keyword=""}<url>\t\n<loc>[field:arcurl function="Gmapurl(@me)"/]</loc>\t\n<title>[field:title function="HtmlReplace(@me)"/]</title>\t\n<news:news>\t\n<news:keywords>[field:keywords/]</news:keywords>\t\n<news:publication_date>[field:senddate function="strftime('%Y-%m-%d',@me)"/]</news:publication_date>\t\n</news:news>\t\n</url>{/dede:list}','','');
INSERT INTO `#@__member_type` VALUES('1','50','中级会员半年','100','7');
@@ -3941,13 +3941,12 @@ INSERT INTO `#@__sys_enum` VALUES('139','cms制作','503','vocation','503','0'),
('16795','东城区','1001','nativeplace','1001','1'),
('16794','北京市','1000','nativeplace','1000','0');
INSERT INTO `#@__sysconfig` VALUES
('1','cfg_basehost','站点网址','1','string',''),
INSERT INTO `#@__sysconfig` VALUES('1','cfg_basehost','站点网址','1','string',''),
('2','cfg_cmspath','安装目录','2','string',''),
('3','cfg_cookie_encode','Cookies加密码','2','string',''),
('4','cfg_indexurl','页链接','1','string','/'),
('4','cfg_indexurl','页链接','1','string','/'),
('5','cfg_backup_dir','数据备份目录,存data文件夹里','2','string','backupdata'),
('6','cfg_indexname','首页链接名','1','string','首页'),
('6','cfg_indexname','主页链接名','1','string','网站主页'),
('7','cfg_webname','网站名称','1','string','某某公司'),
('8','cfg_adminemail','网站发信邮箱','2','string','support@dedebiz.com'),
('9','cfg_html_editor','富文本,默认CKEditor可自行更换其它富文本','2','string','ckeditor'),
@@ -3969,7 +3968,7 @@ INSERT INTO `#@__sysconfig` VALUES
('25','cfg_multi_site','是否支持多站点,开启此项后附件栏目连接arclist内容启用绝对网址','2','bool','N'),
('26','cfg_rm_remote','远程图片本地化','7','bool','Y'),
('27','cfg_dede_log','是否开启管理日志','2','bool','N'),
('28','cfg_powerby','网站版权信息','1','bstring','Copyright &copy; 2022 DedeBIZ 版权所有'),
('28','cfg_powerby','网站版权信息','1','bstring','Copyright © 2022 DedeBIZ 版权所有'),
('29','cfg_jump_once','跳转网址是否直接跳转否则显示中转页','7','bool','Y'),
('30','cfg_task_pwd','系统计划任务客户端许可密码,需要客户端,通常不会太重要','7','string',''),
('31','cfg_arcsptitle','是否开启分页标题,开启影响文档生成速度','6','bool','N'),
@@ -3992,7 +3991,7 @@ INSERT INTO `#@__sysconfig` VALUES
('48','cfg_cli_time','服务器时区设置','2','number','8'),
('49','cfg_mb_addontype','会员附件许可的类型','4','bstring','swf|rm|rmvb|mpg|mp3|mp4|wmv|wma|wav|mid|mov|zip|rar|doc|xsl|ppt|wps'),
('50','cfg_mb_max','会员附件总大小限制:MB','4','number','500'),
('51','cfg_replacestr','替换词语,词语会被替换成**用“|”分开,但不要在结尾加“|”','5','bstring','他妈的|傻逼'),
('51','cfg_replacestr','替换词语,词语会被替换成*用“|”分开,但不要在结尾加“|”','5','bstring','他妈的|傻逼'),
('52','cfg_makeindex','发布文章后马上更新网站主页','6','bool','N'),
('53','cfg_keyword_like','使用关键词关连文章','6','bool','Y'),
('54','cfg_index_max','首页调用函数最大索引文档数,不适用于经常单栏目采集过多内容网站,不启用本项此值设置为0即可','6','number','10000'),
@@ -4057,7 +4056,7 @@ INSERT INTO `#@__sysconfig` VALUES
('113','cfg_feedback_forbid','是否禁止所有评论,包括禁止顶踩等','5','bool','N'),
('114','cfg_addon_domainbind','是否绑定附件目录为指定的二级域名','7','bool','N'),
('115','cfg_addon_domain','附件目录的二级域名','7','string',''),
('116','cfg_df_dutyadmin','默认责任编辑名称','7','string','网站管理员'),
('116','cfg_df_dutyadmin','默认责任编辑名称','7','string','管理员'),
('118','cfg_mb_allowncarc','是否允许用户空间显示未审核文章','4','bool','Y'),
('119','cfg_mb_spaceallarc','会员空间中所有文档的频道ID(不限为0)','4','number','0'),
('120','cfg_face_adds','上传头像增加积分','5','number','10'),
@@ -4092,13 +4091,13 @@ INSERT INTO `#@__sysconfig` VALUES
('149', 'cfg_bizcore_key', 'DedeBIZ Core通信密钥', 1, 'string', ''),
('150', 'cfg_tags_dir', 'TAGS生成目录', 7, 'string', '{cmspath}/a/tags');
INSERT INTO `#@__sys_module` VALUES (1, '1f35620fb42d452fa2bdc1dee1690f92', '文件管理器', '', '', 0, ''),
INSERT INTO `#@__sys_module` VALUES(1, '1f35620fb42d452fa2bdc1dee1690f92', '文件管理器', '', '', 0, ''),
(2, 'b437d85a7a7bc778c9c79b5ec36ab9aa', '友情链接', '', '', 0, ''),
(3, '72ffa6fabe3c236f9238a2b281bc0f93', '广告管理', '', '', 0, ''),
(4, 'acb8b88eb4a6d4bfc375c18534f9439e', '投票模块', '', '', 0, ''),
(5, '572606600345b1a4bb8c810bbae434cc', '挑错管理', '', '', 0, '');
INSERT INTO `#@__plus` VALUES (1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_文件管理器'' target=''main'' />', '', 'DedeBIZ', 1, ''),
INSERT INTO `#@__plus` VALUES(1, '文件管理器', '<m:item name=''文件管理器'' link=''file_manage_main.php'' rank=''plus_文件管理器'' target=''main'' />', '', 'DedeBIZ', 1, ''),
(2, '友情链接模块', '<m:item name=''友情链接'' link=''friendlink_main.php'' rank=''plus_友情链接'' target=''main'' />', '', 'DedeBIZ', 1, ''),
(3, '广告管理', '<m:item name=''广告管理'' link=''ad_main.php'' rank=''plus_广告管理'' target=''main'' />', '', 'DedeBIZ', 1, ''),
(4, '投票模块', '<m:item name=''投票模块'' link=''vote_main.php'' rank=''plus_投票模块'' target=''main'' />', '', 'DedeBIZ', 1, ''),


+ 1
- 2
src/install/templates/step-1.html View File

@@ -15,7 +15,6 @@
<div class="d-flex flex-column flex-md-row align-items-center mb-3 p-3 px-md-5 bg-white border-bottom shadow-sm">
<h5 class="my-0 mr-md-auto text-success">程序安装</h5>
<nav class="my-md-0 mr-md-3">
<a class="p-2 text-dark" href="https://www.dedebiz.com/git" target="_blank">代码托管</a>
<a class="p-2 text-dark" href="https://www.dedebiz.com/help" target="_blank">帮助中心</a>
<a class="p-2 text-dark" href="https://www.dedebiz.com/service" target="_blank">技术服务</a>
</nav>
@@ -59,7 +58,7 @@
</div>
<div class="mb-3">
<label for="exampleInputPassword1" class="form-label">数据库密码</label>
<input name="dbpwd" type="text" class="form-control" id="dbpwd" placeholder="">
<input name="dbpwd" type="text" class="form-control" id="dbpwd">
</div>
<div class="mb-3">
<label for="dbprefix" class="form-label">数据表前缀</label>


+ 6
- 8
src/install/v57sp2_to_v6.txt View File

@@ -11,11 +11,10 @@ ALTER TABLE `#@__admin` ADD COLUMN `pwd_new` varchar(120) NOT NULL DEFAULT '' AF
ALTER TABLE `#@__member` ADD COLUMN `pwd_new` varchar(120) NOT NULL DEFAULT '' AFTER `pwd`;

-- 6.1.8
INSERT INTO `#@__sysconfig` VALUES ('710', 'cfg_tags_dir', 'TAGS生成目录', 7, 'string', '{cmspath}/a/tags');
INSERT INTO `#@__sysconfig` VALUES ('151', 'cfg_tags_dir', 'TAGS生成目录', 7, 'string', '{cmspath}/a/tags');
ALTER TABLE `#@__tagindex` DROP COLUMN `tag_pinyin`;

-- 6.1.7
DROP TABLE IF EXISTS `#@__statistics`;
CREATE TABLE `#@__statistics` (
`id` int NOT NULL AUTO_INCREMENT,
`sdate` int DEFAULT NULL COMMENT '记录日期',
@@ -24,8 +23,7 @@ CREATE TABLE `#@__statistics` (
`ip` int DEFAULT NULL COMMENT 'IP',
`vv` int DEFAULT NULL COMMENT 'vv',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
DROP TABLE IF EXISTS `#@__statistics_detail`;
) ENGINE=MyISAM;
CREATE TABLE `#@__statistics_detail` (
`id` int NOT NULL AUTO_INCREMENT,
`t` int DEFAULT NULL COMMENT 'unixtime',
@@ -46,7 +44,7 @@ CREATE TABLE `#@__statistics_detail` (
KEY `idx_created_date_dduuid` (`created_date`,`dduuid`),
KEY `idx_created_date_ip` (`created_date`,`ip`),
KEY `idx_created_date_ssid` (`created_date`,`ssid`)
) TYPE=MyISAM;
) ENGINE=MyISAM;
ALTER TABLE `#@__addonarticle` MODIFY COLUMN `userip` char(46) NOT NULL DEFAULT '' AFTER `templet`;
ALTER TABLE `#@__addonimages` MODIFY COLUMN `userip` char(46) NOT NULL DEFAULT '' AFTER `templet`;
ALTER TABLE `#@__addoninfos` MODIFY COLUMN `userip` varchar(46) NOT NULL DEFAULT '' AFTER `litpic`;
@@ -79,7 +77,7 @@ ALTER TABLE `#@__feedback`
ALTER TABLE `#@__feedback`
ADD COLUMN `replycount` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `dtime`;
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_feedback_msglen', '评论内容字数限定', 5, 'number', '200');
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_auth_code', '商业版授权码)', 1, 'bstring', '');
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_auth_code', '商业版授权码', 1, 'string', '');
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_bizcore_hostname', 'DedeBIZ Core地址', 1, 'string', '127.0.0.1');
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_bizcore_port', 'DedeBIZ Core端口', 1, 'number', '8181');
INSERT INTO `#@__sysconfig` (`varname`, `info`, `groupid`, `type`, `value`) VALUES ( 'cfg_bizcore_appid', 'DedeBIZ Core应用ID', 1, 'string', '');
@@ -90,12 +88,12 @@ CREATE TABLE `#@__feedback_goodbad` (
`fid` INT(11) NOT NULL DEFAULT '0',
`fgtype` TINYINT(4) NOT NULL DEFAULT '0' COMMENT '0:good 1:bad',
PRIMARY KEY (`fgid`)
) TYPE=MyISAM;
) ENGINE=MyISAM;
CREATE TABLE `#@__search_limits` (
`ip` VARCHAR(200) NOT NULL,
`searchtime` INT(11) NULL DEFAULT NULL,
PRIMARY KEY (`ip`)
) TYPE=MyISAM;
) ENGINE=MyISAM;

-- 6.0.2
ALTER TABLE `#@__tagindex` ADD COLUMN `keywords` VARCHAR(255) NULL DEFAULT NULL AFTER `tag`;


Loading…
Cancel
Save