Browse Source

合并分支

tags/6.1.0^2
tianya 2 years ago
parent
commit
7b377118bd
100 changed files with 452 additions and 287 deletions
  1. +48
    -52
      src/admin/catalog_edit.php
  2. +2
    -26
      src/admin/content_list.php
  3. +1
    -1
      src/admin/css/base.css
  4. +2
    -2
      src/admin/inc/inc_action_info.php
  5. +1
    -1
      src/admin/inc/inc_menu.php
  6. +1
    -1
      src/admin/inc/inc_menu_map.php
  7. +15
    -17
      src/admin/module_main.php
  8. +14
    -26
      src/admin/module_upload.php
  9. +2
    -6
      src/admin/sys_cache_up.php
  10. +3
    -4
      src/admin/templets/module_main.htm
  11. +6
    -6
      src/admin/templets/sys_info.htm
  12. +0
    -2
      src/data/admin/config_update.php
  13. +1
    -2
      src/include/dedeatt.class.php
  14. +0
    -2
      src/include/helpers/downmix.helper.php
  15. +2
    -2
      src/include/taglib/adminname.lib.php
  16. +1
    -3
      src/include/taglib/arccontent.lib.php
  17. +0
    -1
      src/include/taglib/arclist.lib.php
  18. +1
    -2
      src/include/taglib/arclistsg.lib.php
  19. +2
    -2
      src/include/taglib/arcpagelist.lib.php
  20. +2
    -2
      src/include/taglib/autochannel.lib.php
  21. +2
    -2
      src/include/taglib/cattree.lib.php
  22. +1
    -0
      src/include/taglib/channel.lib.php
  23. +3
    -3
      src/include/taglib/comment.lib.php
  24. +1
    -5
      src/include/taglib/demotag.lib.php
  25. +1
    -4
      src/include/taglib/feedback.lib.php
  26. +1
    -4
      src/include/taglib/flink.lib.php
  27. +1
    -4
      src/include/taglib/flinktype.lib.php
  28. +1
    -3
      src/include/taglib/hotwords.lib.php
  29. +2
    -2
      src/include/taglib/infoguide.lib.php
  30. +2
    -2
      src/include/taglib/infolink.lib.php
  31. +2
    -3
      src/include/taglib/likearticle.lib.php
  32. +2
    -3
      src/include/taglib/likepage.lib.php
  33. +2
    -2
      src/include/taglib/likesgpage.lib.php
  34. +1
    -4
      src/include/taglib/loop.lib.php
  35. +1
    -4
      src/include/taglib/memberlist.lib.php
  36. +2
    -2
      src/include/taglib/myad.lib.php
  37. +1
    -3
      src/include/taglib/mynews.lib.php
  38. +2
    -2
      src/include/taglib/mytag.lib.php
  39. +1
    -3
      src/include/taglib/php.lib.php
  40. +1
    -2
      src/include/taglib/productimagelist.lib.php
  41. +2
    -2
      src/include/taglib/qrcode.lib.php
  42. +3
    -3
      src/include/taglib/relation.lib.php
  43. +1
    -4
      src/include/taglib/softmsg.lib.php
  44. +1
    -3
      src/include/taglib/sonchannel.lib.php
  45. +1
    -3
      src/include/taglib/sql.lib.php
  46. +1
    -1
      src/include/taglib/tag.lib.php
  47. +1
    -3
      src/include/taglib/vote.lib.php
  48. +0
    -1
      src/index.php
  49. +307
    -0
      src/install/index.php
  50. +0
    -1
      src/install/install.inc.php
  51. +1
    -0
      src/install/v57sp2_to_v6.txt
  52. +0
    -1
      src/member/ajax_feedback.php
  53. +0
    -1
      src/member/ajax_loginsta.php
  54. +0
    -1
      src/member/album_edit.php
  55. +0
    -1
      src/member/archives_do.php
  56. +0
    -1
      src/member/archives_edit.php
  57. +0
    -1
      src/member/archives_sg_edit.php
  58. +0
    -1
      src/member/article_edit.php
  59. +0
    -1
      src/member/buy.php
  60. +0
    -1
      src/member/check_card.php
  61. +0
    -1
      src/member/content_list.php
  62. +0
    -1
      src/member/content_sg_list.php
  63. +0
    -1
      src/member/edit_baseinfo.php
  64. +0
    -1
      src/member/edit_email.php
  65. +0
    -1
      src/member/edit_face.php
  66. +0
    -1
      src/member/inc/archives_check_edit.php
  67. +0
    -1
      src/member/inc/config_space.php
  68. +0
    -1
      src/member/inc/inc_archives_functions.php
  69. +0
    -1
      src/member/inc/inc_catalog_options.php
  70. +0
    -1
      src/member/inc/inc_list_functions.php
  71. +0
    -1
      src/member/inc/inc_pwd_functions.php
  72. +0
    -1
      src/member/index.php
  73. +0
    -1
      src/member/index_do.php
  74. +0
    -1
      src/member/login.php
  75. +0
    -1
      src/member/mypay.php
  76. +0
    -1
      src/member/mystow.php
  77. +0
    -1
      src/member/operation.php
  78. +0
    -1
      src/member/pm.php
  79. +0
    -1
      src/member/resetpassword.php
  80. +0
    -1
      src/member/shops_orders.php
  81. +0
    -1
      src/member/shops_point.php
  82. +0
    -1
      src/member/shops_products.php
  83. +0
    -1
      src/member/soft_edit.php
  84. +0
    -1
      src/plus/ad_js.php
  85. +0
    -1
      src/plus/advancedsearch.php
  86. +0
    -1
      src/plus/car.php
  87. +0
    -1
      src/plus/digg_ajax.php
  88. +0
    -1
      src/plus/download.php
  89. +0
    -1
      src/plus/erraddsave.php
  90. +0
    -1
      src/plus/feedback.php
  91. +0
    -1
      src/plus/flink.php
  92. +0
    -1
      src/plus/flink_add.php
  93. +0
    -1
      src/plus/freelist.php
  94. +0
    -1
      src/plus/heightsearch.php
  95. +0
    -1
      src/plus/list.php
  96. +0
    -1
      src/plus/mytag_js.php
  97. +0
    -1
      src/plus/posttocar.php
  98. +0
    -1
      src/plus/qrcode.php
  99. +0
    -1
      src/plus/recommend.php
  100. +0
    -1
      src/plus/rss.php

+ 48
- 52
src/admin/catalog_edit.php View File

@@ -77,17 +77,17 @@ if ($dopost == "save") {
}
//修改子栏目属性
if (!empty($upnext)) {
$upquery = "UPDATE `#@__arctype` SET
issend='$issend',
defaultname='$defaultname',
channeltype='$channeltype',
tempindex='$tempindex',
templist='$templist',
temparticle='$temparticle',
namerule='$namerule',
namerule2='$namerule2',
ishidden='$ishidden'
WHERE 1=1 AND $slinks";
$upquery = "UPDATE `#@__arctype` SET
issend='$issend',
defaultname='$defaultname',
channeltype='$channeltype',
tempindex='$tempindex',
templist='$templist',
temparticle='$temparticle',
namerule='$namerule',
namerule2='$namerule2',
ishidden='$ishidden'
WHERE 1=1 AND $slinks";
if (!$dsql->ExecuteNoneQuery($upquery)) {
ShowMsg("修改当前栏目成功,但修改下级栏目属性时失败", "-1");
exit();
@@ -96,7 +96,7 @@ if ($dopost == "save") {
UpDateCatCache();
ShowMsg("成功修改一个分类", "catalog_main.php");
exit();
}//End Save Action
} //End Save Action
else if ($dopost == "savetime") {
$uptopsql = '';
$slinks = " id IN (".GetSonIds($id).")";
@@ -165,80 +165,76 @@ if ($dopost == 'time') {
<input type="hidden" name="moresite" value="<?php echo $myrow['moresite']; ?>">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="bline" height="26" align="center" colspan="2">
<a href="catalog_edit.php?id=<?php echo $id; ?>">当前是快捷编辑模式,如果您要修改更详细的参数,请使用高级模式&gt;&gt;</a>
<td width="150" class='bline' height="26" align="center">是否支持投稿:</td>
<td class='bline'>
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>>&nbsp;不支持</label>
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>>&nbsp;支持</label>
</td>
</tr>
<tr>
<td width="150" class="bline" height="26" align="center">是否支持投稿:</td>
<td class="bline">
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>>不支持</label>&nbsp;
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>>支持</label>
</td>
</tr>
<!--在快速修改修改内容模型后,因为模板没改变,会导致错误,因此去除些选择框-->
<tr>
<td class="bline" height="26" align="center">内容模型:</td>
<td class="bline">
<td class='bline' height="26" align="center">内容模型:</td>
<td class='bline'>
<?php
foreach ($channelArray as $k => $arr) {
if ($k == $channelid) echo "{$arr['typename']} | {$arr['nid']}";
}
?>
<a href='catalog_edit.php?id=<?php echo $id; ?>'>[修改]</a>
<a href='catalog_edit.php?id=<?php echo $id; ?>' class='btn btn-success btn-sm'>更多模型</a>
</td>
</tr>
<tr>
<td class="bline" height="26" align="center">栏目名称:</td>
<td class="bline"><input name="typename" type="text" id="typename" size="30" value="<?php echo $myrow['typename'] ?>" class="iptxt"></td>
<td class='bline' height="26" align="center">栏目名称:</td>
<td class='bline'><input name="typename" type="text" id="typename" value="<?php echo $myrow['typename'] ?>" style="width:260px" class="iptxt"></td>
</tr>
<tr>
<td class="bline" height="26" align="center">排列顺序:</td>
<td class="bline"> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank'] ?>" class="iptxt">(由低 -&gt; 高)</td>
<td class='bline' height="26" align="center"> 排列顺序: </td>
<td class='bline'> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank'] ?>" style="width:100" class="iptxt">(由低 -&gt; 高)</td>
</tr>
<tr>
<td class="bline" height="26" align="center">浏览权限:</td>
<td class="bline"><select name="corank" id="corank" style="width:100">
<td class='bline' height="26" align="center">浏览权限:</td>
<td class='bline'>
<select name="corank" id="corank" style="width:100">
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0");
$dsql->Execute();
while ($row = $dsql->GetObject()) {
if ($myrow['corank'] == $row->rank)
echo "<option value='".$row->rank."' selected>".$row->membername."</option>";
else
echo "<option value='".$row->rank."'>".$row->membername."</option>";
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n";
else
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n";
}
?>
</select>(仅限制栏目里的文档浏览权限)</td>
</select>(仅限制栏目里的文档浏览权限)
</td>
</tr>
<tr>
<td class="bline" height="26" align="center">文件保存目录:</td>
<td class="bline"><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:300px" class="iptxt"></td>
<td class='bline' height="26" align="center">文件保存目录:</td>
<td class='bline'><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:260px"class="iptxt"></td>
</tr>
<tr>
<td height="26" align="center" class="bline">栏目列表选项:</td>
<td class="bline">
<label><input type='radio' name='isdefault' value='1' class='np' <?php if ($myrow['isdefault'] == 1) echo " checked='1' "; ?>>链接到默认页</label>
<label><input type='radio' name='isdefault' value='0' class='np' <?php if ($myrow['isdefault'] == 0) echo " checked='1' "; ?>>链接到列表第一页</label>
<label><input type='radio' name='isdefault' value='-1' class='np' <?php if ($myrow['isdefault'] == -1) echo " checked='1' "; ?>>使用动态页</label>
<td height="26" align="center" class='bline'>栏目列表选项:</td>
<td class='bline'>
<label><input type='radio' name='isdefault' value='1' class='np' <?php if ($myrow['isdefault'] == 1) echo " checked='1' "; ?>>&nbsp;链接到默认页</label>
<label><input type='radio' name='isdefault' value='0' class='np' <?php if ($myrow['isdefault'] == 0) echo " checked='1' "; ?>>&nbsp;链接到列表第一页</label>
<label><input type='radio' name='isdefault' value='-1' class='np' <?php if ($myrow['isdefault'] == -1) echo " checked='1' "; ?>>&nbsp;使用动态页</label>
</td>
</tr>
<tr>
<td class="bline" height="26" align="center">默认页的名称: </td>
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" class="iptxt"></td>
<td class='bline' height="26" align="center">默认页的名称:</td>
<td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" style="width:260px" class="iptxt"></td>
</tr>
<tr>
<td height="26" class="bline" align="center">栏目属性:</td>
<td class="bline">
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>>最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br>
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>>频道封面(栏目本身不允许发布文档)</label><br>
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>>外部连接(在"文件保存目录"处填写网址)</label></td>
<td height="26" class='bline' align="center">栏目属性:</td>
<td class='bline'>
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>>&nbsp;最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br>
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>>&nbsp;频道封面(栏目本身不允许发布文档)</label><br>
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>>&nbsp;外部连接(在"文件保存目录"处填写网址)</label>
</td>
</tr>
<tr>
<td align="center" colspan="2" height="50" bgcolor='#FAFEE0'>
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="26" border="0" class="np">
&nbsp;&nbsp;&nbsp;
<a title='关闭' onclick='CloseMsg()'><img src="images/button_back.gif" width="60" height="26" border="0"></a>
<button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success'>保存</button>
<button type='button' onclick='CloseMsg()' class='btn btn-success'>关闭</button>
</td>
</tr>
</table>


+ 2
- 26
src/admin/content_list.php View File

@@ -14,22 +14,17 @@ require_once(dirname(__FILE__).'/config.php');
require_once(DEDEINC.'/typelink.class.php');
require_once(DEDEINC.'/datalistcp.class.php');
require_once(DEDEADMIN.'/inc/inc_list_functions.php');

$cid = isset($cid) ? intval($cid) : 0;
$channelid = isset($channelid) ? intval($channelid) : 0;
$mid = isset($mid) ? intval($mid) : 0;

if (!isset($keyword)) $keyword = '';
if (!isset($flag)) $flag = '';
if (!isset($f)) $f = '';
if (!isset($arcrank)) $arcrank = '';
if (!isset($dopost)) $dopost = '';

$arcrank = RemoveXSS($arcrank);

//检查权限许可,总权限
CheckPurview('a_List,a_AccList,a_MyList');

//栏目浏览许可
$userCatalogSql = '';
if (TestPurview('a_List')) {;
@@ -47,7 +42,6 @@ $adminid = $cuserLogin->getUserID();
$maintable = '#@__archives';
setcookie('ENV_GOBACK_URL', $dedeNowurl, time() + 3600, '/');
$tl = new TypeLink($cid);

//----------------------------------------
//在不指定排序条件和关键字的情况下直接统计微表
//----------------------------------------
@@ -86,7 +80,6 @@ if (empty($totalresult) && empty($keyword) && empty($orderby) && empty($flag)) {
$arr = $dsql->GetOne($sql);
$totalresult = $arr['dd'];
}

if ($cid == 0) {
if ($channelid == 0) {
$positionname = '所有栏目&gt;';
@@ -99,7 +92,6 @@ if ($cid == 0) {
} else {
$positionname = str_replace($cfg_list_symbol, " &gt; ", $tl->GetPositionName())." &gt; ";
}

//当选择的是单表模型栏目时,直接跳转到单表模型管理区
if (
empty($channelid)
@@ -111,12 +103,9 @@ if ($channelid < -1) {
header("location:content_sg_list.php?f=$f&cid=$cid&channelid=$channelid&keyword=$keyword");
exit();
}


//栏目大于800则需要缓存数据
$optHash = md5($cid.serialize($admin_catalogs).$channelid);
$optCache = DEDEDATA."/tplcache/inc_option_$optHash.inc";

$typeCount = 0;
if (file_exists($cache1)) require_once($cache1);
else $cfg_Cs = array();
@@ -131,16 +120,12 @@ if ($typeCount > 800) {
} else {
$optionarr = $tl->GetOptionArray($cid, $admin_catalogs, $channelid);
}

$whereSql = empty($channelid) ? " WHERE arc.channel > 0 AND arc.arcrank > -2 " : " WHERE arc.channel = '$channelid' AND arc.arcrank > -2 ";

$flagsArr = '';
$dsql->Execute('f', 'SELECT * FROM `#@__arcatt` ORDER BY sortid ASC');
while ($frow = $dsql->GetArray('f')) {
$flagsArr .= ($frow['att'] == $flag ? "<option value='{$frow['att']}' selected>{$frow['attname']}</option>\r\n" : "<option value='{$frow['att']}'>{$frow['attname']}</option>\r\n");
}


if (!empty($userCatalogSql)) {
$whereSql .= " AND ".$userCatalogSql;
}
@@ -162,22 +147,17 @@ if ($arcrank != '') {
} else {
$CheckUserSend = "<button type='button' class='btn btn-success btn-sm' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&arcrank=-1&gurl=content_list.php';\">稿件审核</button>";
}

$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z0-9]#", "", $orderby);
$orderbyField = 'arc.'.$orderby;

$query = "SELECT arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,
arc.channel,arc.arcrank,arc.click,arc.title,arc.color,arc.litpic,arc.pubdate,arc.mid
FROM `$maintable` arc
$whereSql
ORDER BY $orderbyField DESC";

if (empty($f) || !preg_match("#form#", $f)) $f = 'form1.arcid1';

//初始化
$dlist = new DataListCP();
$dlist->pageSize = 30;

$dlist->pageSize = 40;
//GET参数
$dlist->SetParameter('dopost', 'listArchives');
$dlist->SetParameter('keyword', $keyword);
@@ -188,15 +168,11 @@ $dlist->SetParameter('orderby', $orderby);
$dlist->SetParameter('arcrank', $arcrank);
$dlist->SetParameter('channelid', $channelid);
$dlist->SetParameter('f', $f);

//模板
if (empty($s_tmplets)) $s_tmplets = 'templets/content_list.htm';
$dlist->SetTemplate(DEDEADMIN.'/'.$s_tmplets);

//查询
$dlist->SetSource($query);

//显示
$dlist->Display();
//echo $dlist->queryTime;
$dlist->Close();
$dlist->Close();

+ 1
- 1
src/admin/css/base.css
File diff suppressed because it is too large
View File


+ 2
- 2
src/admin/inc/inc_action_info.php View File

@@ -42,7 +42,7 @@ $actionSearch[0] = array(
),
4 => array(
'title' => '内容回收站',
'description' => '如果在"系统基本参数"的"核心设置"中开启了"文章回收站(是/否)开启功能",后台删除的文档将会存放在此处',
'description' => '如果在"系统配置变量"的"核心设置"中开启了"文章回收站(是/否)开启功能",后台删除的文档将会存放在此处',
'purview' => 'a_List,a_AccList,a_MyList',
'linkurl' => 'recycling.php'
)
@@ -375,7 +375,7 @@ $actionSearch[10] = array(
'description' => '对网站的一些基本信息和配置进行管理',
'soniterm' => array(
0 => array(
'title' => '系统基本参数',
'title' => '系统配置变量',
'description' => '包含站点设置、核心设置 、附件设置、会员设置、互动设置、性能选项、其它选项、模块设置、添加新变量等分类,其中有网站基本信息和网站的基本设置选项',
'purview' => 'sys_Edit',
'linkurl' => 'sys_info.php'


+ 1
- 1
src/admin/inc/inc_menu.php View File

@@ -49,7 +49,7 @@ if ($cuserLogin->getUserType() >= 10) {
<m:item name='全局标记测试' link='tag_test.php' rank='temp_Test' target='main'/>
</m:top>
<m:top item='10_' name='系统设置' display='none' rank='sys_User,sys_Group,sys_Edit,sys_Log,sys_Data'>
<m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' />
<m:item name='系统配置变量' link='sys_info.php' rank='sys_Edit' target='main' />
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' />
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' />
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' />


+ 1
- 1
src/admin/inc/inc_menu_map.php View File

@@ -84,7 +84,7 @@ $menusMain = "<m:top mapitem='1' item='1_' name='常用操作' display='block'>
<m:item name='会员短信管理' link='member_pm.php' rank='member_Type' target='main' />
</m:top>
<m:top mapitem='2' item='10_' name='系统设置' display='none' rank='sys_User,sys_Group,sys_Edit,sys_Log,sys_Data'>
<m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' />
<m:item name='系统配置变量' link='sys_info.php' rank='sys_Edit' target='main' />
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' />
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' />
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' />


+ 15
- 17
src/admin/module_main.php View File

@@ -34,8 +34,7 @@ function ReWriteConfigAuto()
global $dsql;
$configfile = DEDEDATA.'/config.cache.inc.php';
if (!is_writeable($configfile)) {
echo "配置文件'{$configfile}'不支持写入,无法修改系统配置参数";
//ClearAllLink();
echo "配置文件 {$configfile} 不支持写入,无法修改系统配置参数";
exit();
}
$fp = fopen($configfile, 'w');
@@ -90,7 +89,6 @@ else if ($action == 'view_developoer') {
$offUrl = "<p>官方网址:<code>{$devInfo['offurl']}</code> <small>(复制在浏览器中打开)</small></p>";
}
$authAt = date("Y-m-d", $devInfo['auth_at']);

if (!isset($info['dev_id'])) {
$devInfo['realname'] = $devInfo['dev_name'] = $info['team']." <span style='color:#e74d58'>未认证</span>";
$authAt = "0000-00-00";
@@ -108,7 +106,7 @@ else if ($action == 'setup') {
ShowMsg("获取模块信息错误,模块文件可能被篡改", -1);
exit;
}
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br />(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br>(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$filelists = $dm->GetFileLists($hash);
$filelist = '';
$prvdirs = array();
@@ -186,7 +184,7 @@ else if ($action == 'setup') {
</td>
</tr>
<tr>
<td height='30'><b>目录权限检测:</b><br /> ../ 为根目录 <br /> ./ 表示当前目录</td>
<td height='30'><b>目录权限检测:</b><br> ../ 为根目录 <br> ./ 表示当前目录</td>
<td>$prvdir</td>
</tr>
<tr>
@@ -201,9 +199,9 @@ else if ($action == 'setup') {
<tr>
<td height='26'>对于已存在文件处理方法:</td>
<td>
<label><input name='isreplace' type='radio' value='1' checked='checked'>覆盖</label>
<label><input name='isreplace' type='radio' value='3'>覆盖,保留副本</label>
<label><input type='radio' name='isreplace' value='0'>保留旧文件</label>
<label><input name='isreplace' type='radio' value='1' checked='checked'> 覆盖</label>
<label><input name='isreplace' type='radio' value='3'> 覆盖,保留副本</label>
<label><input type='radio' name='isreplace' value='0'> 保留旧文件</label>
</td>
</tr>
</table>";
@@ -281,7 +279,7 @@ function DelModule();
else if ($action == 'del') {
$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($hash);
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br />(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br>(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$dev_id = empty($infos['dev_id'])? "<a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-success btn-sm'>未认证</a>" : "{$infos['dev_id']} <a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>未认证</a>";
$win = new OxWindow();
$win->Init("module_main.php", "js/blank.js", "post");
@@ -316,7 +314,7 @@ else if ($action == 'del') {
<td class='dtb'><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank' class='btn btn-success btn-sm'>浏览</a></td>
</tr>
<tr>
<td height='26' colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td>
<td height='26' colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td>
</tr>
</table>";
$win->AddMsgItem("<div style='padding-left:10px;line-height:150%'>$msg</div>");
@@ -338,7 +336,7 @@ else if ($action == 'uninstall') {
$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($hash);
if ($infos['url'] == '') $infos['url'] = '&nbsp;';
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br />(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br>(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$filelists = $dm->GetFileLists($hash);
$filelist = '';
foreach ($filelists as $v) {
@@ -381,7 +379,7 @@ else if ($action == 'uninstall') {
<td class='dtb'><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank' class='btn btn-success btn-sm'>浏览</a></td>
</tr>
<tr>
<td height='26'>模块包含的文件:<br />(文件路径相对于当前目录)</td><td>&nbsp;</td>
<td height='26'>模块包含的文件:<br>(文件路径相对于当前目录)</td><td>&nbsp;</td>
</tr>
<tr>
<td height='160' colspan='2'>
@@ -391,8 +389,8 @@ else if ($action == 'uninstall') {
<tr>
<td height='26'>对于模块的文件处理方法:</td>
<td>
<label><input type='radio' name='isreplace' value='0' checked='checked'>手工删除文件,仅运行卸载程序</label>
<label><input name='isreplace' type='radio' value='2'>删除模块的所有文件</label>
<label><input type='radio' name='isreplace' value='0' checked='checked'> 手工删除文件,仅运行卸载程序</label>
<label><input name='isreplace' type='radio' value='2'> 删除模块的所有文件</label>
</td>
</tr>
</table>";
@@ -464,7 +462,7 @@ else if ($action == 'view') {
$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($hash);
if ($infos['url'] == '') $infos['url'] = '&nbsp;';
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br />(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$alertMsg = ($infos['lang'] == $cfg_soft_lang ? '' : '<br>(这个模块的语言编码与您系统的编码不一致,请向开发者确认它的兼容性)');
$filelists = $dm->GetFileLists($hash);
$filelist = '';
$setupinfo = '';
@@ -479,7 +477,7 @@ else if ($action == 'view') {
} else {
$setupinfo = "未安装 <a href='module_main.php?action=setup&hash={$hash}'>安装</a>";
}
$dev_id = empty($infos['dev_id'])? "<a href='module_main.php?action=setup&hash={$hash}' class='btn btn-success btn-sm'>安装</a> <a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-success btn-sm'>未认证</a>" : "{$infos['dev_id']} <a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>未认证</a>";
$dev_id = empty($infos['dev_id'])? "<a href='module_main.php?action=setup&hash={$hash}' class='btn btn-success btn-sm'>安装</a><a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-success btn-sm' style='margin-left:6px'>未认证</a>" : "{$infos['dev_id']} <a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>未认证</a>";
$win = new OxWindow();
$win->Init("", "js/blank.js", "");
$wecome_info = "模块管理";
@@ -511,7 +509,7 @@ else if ($action == 'view') {
<td class='dtb'><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank' class='btn btn-success btn-sm'>浏览</a></td>
</tr>
<tr>
<td height='26'>模块包含的文件:<br />(文件路径相对于当前目录)</td><td>&nbsp;</td>
<td height='26'>模块包含的文件:<br>(文件路径相对于当前目录)</td><td>&nbsp;</td>
</tr>
<tr>
<td height='160' colspan='2'>


+ 14
- 26
src/admin/module_upload.php View File

@@ -14,16 +14,14 @@ require_once(dirname(__FILE__)."/../include/dedemodule.class.php");
require_once(dirname(__FILE__)."/../include/oxwindow.class.php");
if (empty($action)) $action = '';
$mdir = DEDEDATA.'/module';

if ($action == 'upload') {
if (!is_uploaded_file($upfile)) {
ShowMsg("貌似您什么都没有上传", "javascript:;");
ShowMsg("您什么都没有上传", "javascript:;");
exit();
} else {
include_once(dirname(__FILE__)."/../include/zip.class.php");
$tmpfilename = $mdir.'/'.ExecTime().mt_rand(10000, 50000).'.tmp';
move_uploaded_file($upfile, $tmpfilename) or die("把上传的文件移动到{$tmpfilename}时失败,请检查{$mdir}目录是否有写入权限");

move_uploaded_file($upfile, $tmpfilename) or die("把上传的文件移动到 {$tmpfilename} 时失败,请检查 {$mdir} 目录是否有写入权限");
//ZIP格式的文件
if ($filetype == 1) {
$z = new zip();
@@ -41,7 +39,7 @@ if ($action == 'upload') {
}
if ($dedefileindex == -1) {
unlink($tmpfilename);
ShowMsg("对不起,您上传的压缩包中不存在dede模块文件<br /><br /><a href='javascript:history.go(-1);'>&gt;&gt;返回重新上传&gt;&gt;</a>", "javascript:;");
ShowMsg("对不起,您上传的压缩包中不存在dede模块文件<br><a href='javascript:history.go(-1);'>重新上传</a>", "javascript:;");
exit();
}
$ziptmp = $mdir.'/ziptmp';
@@ -49,24 +47,22 @@ if ($action == 'upload') {
unlink($tmpfilename);
$tmpfilename = $mdir."/ziptmp/".$dedefile;
}

$dm = new DedeModule($mdir);
$infos = $dm->GetModuleInfo($tmpfilename, 'file');
if (empty($infos['hash'])) {
unlink($tmpfilename);
$dm->Clear();
ShowMsg("对不起,您上传的文件可能不是织梦模块的标准格式文件<br /><br /><a href='javascript:history.go(-1);'>&gt;&gt;返回重新上传&gt;&gt;</a>", "javascript:;");
ShowMsg("对不起,您上传的文件可能不是织梦模块的标准格式文件<br><a href='javascript:history.go(-1);'>重新上传</a>", "javascript:;");
exit();
}
if (preg_match("#[^0-9a-zA-Z]#", $infos['hash'])) {
exit("hash check failed!");
}
$okfile = $mdir.'/'.$infos['hash'].'.xml';
if ($dm->HasModule($infos['hash']) && empty($delhas)) {
unlink($tmpfilename);
$dm->Clear();
ShowMsg("对不起,您上传的模块已经存在<br />如果要覆盖请先删除原来版本或选择强制删除的选项<br /><br /><a href='javascript:history.go(-1);'>&gt;&gt;返回重新上传&gt;&gt;</a>", "javascript:;");
ShowMsg("对不起,您上传的模块已经存在<br>如果要覆盖请先删除原来版本或选择强制删除的选项<br><a href='javascript:history.go(-1);'>重新上传</a>", "javascript:;");
exit();
}
@unlink($okfile);
@@ -83,32 +79,24 @@ if ($action == 'upload') {
$wecome_info = "<a href='module_main.php'>模块管理</a> &gt;&gt; 上传模块";
$win->AddTitle('请选择要上传的文件:');
$win->AddHidden("action", 'upload');
$msg = "
<table width='600' border='0' cellspacing='0' cellpadding='0'>
$msg = "<table width='600' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='30'>文件格式:</td>
<td height='26'>文件格式:</td>
<td>
<label><input name='filetype' type='radio' value='0' checked='checked' />
正常的模块包</label>
<label><input type='radio' name='filetype' value='1' />
经过 zip 压缩的模块包</label> </td>
<label><input name='filetype' type='radio' value='0' checked='checked' /> 正常的模块包</label>
<label><input type='radio' name='filetype' value='1' /> 经过 zip 压缩的模块包</label></td>
</tr>
<tr>
<td height='30'>已有模块:</td>
<td>
<label><input name='delhas' type='checkbox' id='delhas' value='1' /> 强制删除同名模块(这可能导致已经安装的模块无法卸载)</label>
</td>
<td height='26'>已有模块:</td>
<td><label><input name='delhas' type='checkbox' id='delhas' value='1' /> 强制删除同名模块(这可能导致已经安装的模块无法卸载)</label></td>
</tr>
<tr>
<td width='96' height='60'>请选择文件:</td>
<td width='504'>
<input name='upfile' type='file' id='upfile' style='width:380px' /> </td>
<td width='504'><input name='upfile' type='file' id='upfile' style='width:380px' /></td>
</tr>
</table>
";
</table>";
$win->AddMsgItem("<div style='padding-left:20px;line-height:150%;'>$msg</div>");
$winform = $win->GetWindow('ok', '');
$win->Display();
exit();
}
//ClearAllLink();
}//ClearAllLink();

+ 2
- 6
src/admin/sys_cache_up.php View File

@@ -12,7 +12,6 @@ require_once(dirname(__FILE__)."/config.php");
CheckPurview('sys_ArcBatch');
if (empty($dopost)) $dopost = '';
if (empty($step)) $step = 1;

if ($dopost == "ok") {
if (empty($uparc)) $uparc = 0;
if ($step == -1) {
@@ -20,7 +19,6 @@ if ($dopost == "ok") {
ShowMsg("成功更新所有缓存", "javascript:;");
exit();
}

//更新栏目缓存
else if ($step == 1) {
UpDateCatCache();
@@ -28,7 +26,6 @@ if ($dopost == "ok") {
ShowMsg("成功更新栏目缓存,及后台栏目选项,准备更新枚举缓存...", "sys_cache_up.php?dopost=ok&step=2&uparc=$uparc");
exit();
}

//更新枚举缓存
else if ($step == 2) {
include_once(DEDEINC."/enums.func.php");
@@ -37,7 +34,6 @@ if ($dopost == "ok") {
ShowMsg("成功更新枚举缓存,准备更新调用缓存...", "sys_cache_up.php?dopost=ok&step=3&uparc=$uparc");
exit();
}

//清理arclist调用缓存、过期会员访问历史、过期短信
else if ($step == 3) {
echo '<meta http-equiv="Content-Type" content="text/html; charset='.$cfg_soft_lang.'">';
@@ -55,8 +51,8 @@ if ($dopost == "ok") {
}
//修正错误文档
else if ($step == 9) {
ShowMsg('修正错误文档操作已经取消,请在&lt;系统-&gt;系统错误修复[S]&gt;中操作...', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1', 0, 5000);
ShowMsg('修正错误文档操作已经取消,后台系统:系统错误修复中操作...', 'sys_cache_up.php?dopost=ok&step=-1&uparc=1', 0, 5000);
exit();
}
}
include DedeInclude('templets/sys_cache_up.htm');
include DedeInclude('templets/sys_cache_up.htm');

+ 3
- 4
src/admin/templets/module_main.htm View File

@@ -83,9 +83,8 @@
?>
</td>
<td>
<div id='manager_<?php echo $v['hash']; ?>'
<?php if(!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo 'style="display:none;"'?>>
<a class="btn btn-success" href='module_main.php?action=view_developoer&hash=<?php echo $v['hash']; ?>'>开发者信息</a>
<div id='manager_<?php echo $v['hash']; ?>'<?php if(!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo 'style="display:none;"'?>>
<a class="btn btn-success" href="module_main.php?action=view_developoer&hash=<?php echo $v['hash']; ?>" style="margin-right:6px">开发者信息</a>
<div class="btn-group" role="group">
<button id="btnAction" type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">操作</button>
<div class="dropdown-menu" aria-labelledby="btnAction">
@@ -102,7 +101,7 @@
}
?>
<tr>
<td colspan="7" align="center" bgcolor='#F9FCEF'>&nbsp;</td>
<td colspan="7" align="center" bgcolor='#F9FCEF'></td>
</tr>
</form>
</table>


+ 6
- 6
src/admin/templets/sys_info.htm View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="<?php echo $cfg_soft_lang; ?>">
<title>系统配置参数</title>
<title>系统配置变量</title>
<script src="../static/js/dedeajax2.js"></script>
<script src="../static/js/jquery.js"></script>
<script>
@@ -58,7 +58,7 @@ function resetCookieEncode() {
<div style="min-width:780px">
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3">
<tr>
<td height="30" background="images/tbg.gif" style="padding-left:10px"><b>系统配置参数</b></td>
<td height="30" background="images/tbg.gif" style="padding-left:10px"><b>系统配置变量</b></td>
</tr>
<tr>
<td height="30" bgcolor="#ffffff" align="left">
@@ -105,7 +105,7 @@ function resetCookieEncode() {
多行文本 </td>
</tr>
<tr>
<td height="26">参数说明</td>
<td height="26">变量说明</td>
<td align="left"><input type="text" name="varmsg" id="varmsg" class="npvar" style="width:80%"></td>
<td align="center">所属组</td>
<td align="left">
@@ -155,8 +155,8 @@ function resetCookieEncode() {
?>
<table width="100%" style="<?php if($n!=$gp) echo 'display:none'; ?>" id="td<?php echo $n?>" border="0" cellspacing="1" cellpadding="1" bgcolor="#cfcfcf">
<tr align="center" bgcolor="#FBFCE2">
<td width="300">参数说明</td>
<td>参数值</td>
<td width="300">变量说明</td>
<td>变量值</td>
<td width="220">变量名</td>
</tr>
<?php
@@ -197,7 +197,7 @@ function resetCookieEncode() {
}
?>
</td>
<td>{dede:field.<?php echo $row['varname']?>/}</td>
<td><?php echo $row['varname']?></td>
</tr>
<?php
}


+ 0
- 2
src/data/admin/config_update.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: config_update.php 1 11:36 2011-2-21 tianya $
* @package DedeBIZ.Administrator
@@ -7,5 +6,4 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
//更新服务器,如果有变动,请到 https://www.dedebiz.com 查询

+ 1
- 2
src/include/dedeatt.class.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 属性的数据描述
*
@@ -9,7 +8,7 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
// ------------------------------------------------------------------------
//------------------------------------------------------------------------
/**
* 属性的数据描述
* function c____DedeAtt();


+ 0
- 2
src/include/helpers/downmix.helper.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 防采集混淆字符串
*
@@ -9,7 +8,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* 混淆字符串内容
*


+ 2
- 2
src/include/taglib/adminname.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 获得责任编辑名称
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* 获得责任编辑名称
*


+ 1
- 3
src/include/taglib/arccontent.lib.php View File

@@ -1,6 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');

/**
* 文档内容调用标签
*
@@ -10,9 +9,8 @@ if (!defined('DEDEINC')) exit('dedebiz');
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/

require_once(DEDEINC."/channelunit.class.php");
// 这是一个用来调用文档内容的标签,只是提供一种方法,不建议太多地方调用,毕竟比较损耗性能
//这是一个用来调用文档内容的标签,只是提供一种方法,不建议太多地方调用,毕竟比较损耗性能
/*
用法:
{dede:arccontent type='pre|next'}


+ 0
- 1
src/include/taglib/arclist.lib.php View File

@@ -11,7 +11,6 @@ if (!defined('DEDEINC')) exit('dedebiz');
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* arclist解析标签
*


+ 1
- 2
src/include/taglib/arclistsg.lib.php View File

@@ -1,5 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 单表模型的文章列表调用标记
*
@@ -9,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* arclistsg解析标签
*


+ 2
- 2
src/include/taglib/arcpagelist.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_arcpagelist(&$ctag, &$refObj)
{
global $dsql;


+ 2
- 2
src/include/taglib/autochannel.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 按排序位置的获取单个栏目的链接信息
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_autochannel(&$ctag, &$refObj)
{
global $dsql;


+ 2
- 2
src/include/taglib/cattree.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
*
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_cattree(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 0
src/include/taglib/channel.lib.php View File

@@ -1,4 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 获取栏目列表标签
*


+ 3
- 3
src/include/taglib/comment.lib.php View File

@@ -1,4 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 用于注释的标签
*
@@ -8,9 +9,8 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
// 只是用于进行注释
//只是用于进行注释
function lib_comment(&$ctag, &$refObj)
{
return "";
}
}

+ 1
- 5
src/include/taglib/demotag.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 这仅是一个演示标签
*
@@ -11,8 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_demotag(&$ctag, &$refObj)
{
global $dsql, $envs;


+ 1
- 4
src/include/taglib/feedback.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 调用最新评论
*
@@ -11,7 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_feedback(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 4
src/include/taglib/flink.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 友情链接
*
@@ -11,7 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
helper('cache');
function lib_flink(&$ctag, &$refObj)
{


+ 1
- 4
src/include/taglib/flinktype.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
require_once(DEDEINC."/taglib/flink.lib.php");
/**
* 友情链接
@@ -12,7 +10,6 @@ require_once(DEDEINC."/taglib/flink.lib.php");
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_flinktype(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 3
src/include/taglib/hotwords.lib.php View File

@@ -1,5 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 获取网站搜索的热门关键字
*
@@ -9,8 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_hotwords(&$ctag, &$refObj)
{
global $cfg_phpurl, $dsql;


+ 2
- 2
src/include/taglib/infoguide.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 分类信息的地区与小分类搜索
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_infoguide(&$ctag, &$refObj)
{
global $dsql, $nativeplace, $infotype, $hasSetEnumJs, $cfg_cmspath, $cfg_mainsite;


+ 2
- 2
src/include/taglib/infolink.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 分类信息地区与类型快捷链接
*
@@ -9,7 +10,6 @@
* @link https://www.dedebiz.com
*/
require_once(DEDEINC.'/enums.func.php');
require_once(DEDEDATA.'/enums/nativeplace.php');
require_once(DEDEDATA.'/enums/infotype.php');


+ 2
- 3
src/include/taglib/likearticle.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 自动关连文档标签
*
@@ -8,8 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_likearticle(&$ctag, &$refObj)
{
global $dsql;


+ 2
- 3
src/include/taglib/likepage.lib.php View File

@@ -1,5 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 单页文档相同标识调用标签
*
@@ -10,8 +10,7 @@
* @link https://www.dedebiz.com
*/
if (!defined('DEDEINC')) exit('dedebiz');
if (!defined('DEDEINC')) exit('Request Error!');
require_once(dirname(__FILE__).'/likesgpage.lib.php');
function lib_likepage(&$ctag, &$refObj)


+ 2
- 2
src/include/taglib/likesgpage.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 单页文档调用标签
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_likesgpage(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 4
src/include/taglib/loop.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 调用任意表的数据标签
*
@@ -11,7 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
require_once(DEDEINC.'/dedevote.class.php');
function lib_loop(&$ctag, &$refObj)
{


+ 1
- 4
src/include/taglib/memberlist.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 会员信息调用标签
*
@@ -11,7 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
//orderby = logintime(login new) or mid(register new)
function lib_memberlist(&$ctag, &$refObj)
{


+ 2
- 2
src/include/taglib/myad.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 广告调用
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
require_once(DEDEINC.'/taglib/mytag.lib.php');
function lib_myad(&$ctag, &$refObj)


+ 1
- 3
src/include/taglib/mynews.lib.php View File

@@ -1,5 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 站内新闻调用标签
*
@@ -9,8 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_mynews(&$ctag, &$refObj)
{
global $dsql, $envs;


+ 2
- 2
src/include/taglib/mytag.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 自定义宏标记调用标签
*
@@ -8,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_mytag(&$ctag, &$refObj)
{
$attlist = "typeid|0,name|,ismake|no";


+ 1
- 3
src/include/taglib/php.lib.php View File

@@ -1,6 +1,5 @@
<?php
if (!defined('DEDEINC'))
exit('dedebiz');
if (!defined('DEDEINC')) exit('dedebiz');
/**
*
*
@@ -10,7 +9,6 @@ if (!defined('DEDEINC'))
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_php(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 2
src/include/taglib/productimagelist.lib.php View File

@@ -1,5 +1,5 @@
<?php
!defined('DEDEINC') && exit("403 Forbidden!");
if (!defined('DEDEINC')) exit('dedebiz');
/**
*
*
@@ -9,7 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_productimagelist(&$ctag, &$refObj)
{
global $dsql, $sqlCt;


+ 2
- 2
src/include/taglib/qrcode.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* QRCode
*
@@ -9,7 +10,6 @@
* @link https://www.dedebiz.com
*/
$GLOBALS['qrcode_id'] = isset($GLOBALS['qrcode_id']) ? $GLOBALS['qrcode_id'] : 1;
function lib_qrcode(&$ctag, &$refObj)
{


+ 3
- 3
src/include/taglib/relation.lib.php View File

@@ -1,4 +1,5 @@
<?php if (!defined('DEDEINC')) exit('dedebiz');
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 关联内容标签
*
@@ -8,8 +9,7 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/

// 关联内容
//关联内容
function lib_relation(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 4
src/include/taglib/softmsg.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 下载说明标签
*
@@ -11,7 +9,6 @@ if (!defined('DEDEINC')) {
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_softmsg(&$ctag, &$refObj)
{
global $dsql;


+ 1
- 3
src/include/taglib/sonchannel.lib.php View File

@@ -1,5 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 子栏目调用标签
*
@@ -9,8 +9,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_sonchannel(&$ctag, &$refObj)
{
global $_sys_globals, $dsql;


+ 1
- 3
src/include/taglib/sql.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* SQL标签
*


+ 1
- 1
src/include/taglib/tag.lib.php View File

@@ -1,4 +1,5 @@
<?php
if (!defined('DEDEINC')) exit('dedebiz');
//function GetTags($num,$ltype='new',$InnerText='')
/**
* TAG调用标签
@@ -9,7 +10,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
function lib_tag(&$ctag, &$refObj)
{
global $dsql, $envs, $cfg_cmsurl;


+ 1
- 3
src/include/taglib/vote.lib.php View File

@@ -1,7 +1,5 @@
<?php
if (!defined('DEDEINC')) {
exit("dedebiz");
}
if (!defined('DEDEINC')) exit('dedebiz');
/**
* 投票标签
*


+ 0
- 1
src/index.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: index.php 1 9:23 2010-11-11 tianya $
* @package DedeBIZ.Site


+ 307
- 0
src/install/index.php View File

@@ -0,0 +1,307 @@
<?php
/**
* @version $Id: index.php 2022-01-03 tianya $
* @package DedeBIZ.Install
* @copyright Copyright (c) 2022, DedeBIZ.COM
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
@set_time_limit(0);
error_reporting(E_ALL || ~E_NOTICE);
$verMsg = 'V6';
$dfDbname = 'DedeBIZ';
$cfg_version_detail = '6.0.4'; //详细版本号
$errmsg = '';
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
mysqli_report(MYSQLI_REPORT_OFF);
}
define('INSLOCKFILE', dirname(__FILE__).'/install_lock.txt');
$moduleCacheFile = dirname(__FILE__).'/modules.tmp.inc';
define('DEDEINC',dirname(__FILE__).'/../include');
define('DEDEDATA',dirname(__FILE__).'/../data');
define('DEDEROOT',preg_replace("#[\\\\\/]install#", '', dirname(__FILE__)));
header("Content-Type: text/html; charset=utf-8");
require_once(DEDEROOT.'/install/install.inc.php');
require_once(DEDEINC.'/zip.class.php');
foreach(Array('_GET','_POST','_COOKIE') as $_request)
{
foreach($$_request as $_k => $_v) ${$_k} = RunMagicQuotes($_v);
}
require_once(DEDEINC.'/common.func.php');
if(file_exists(INSLOCKFILE))
{
exit("程序已运行安装,如果您确定要重新安装,请先从FTP中删除 install/install_lock.txt");
}
if(empty($step))
{
$step = 1;
}
/*------------------------
使用协议书
function _1_Agreement()
------------------------*/
if($step==1)
{
$arrMsg = array();
if (!extension_loaded("openssl")) {
$arrMsg[] = "OpenSSL未开启,将无法完成<a href='https://www.dedebiz.com' target='_blank'>DedeBIZ商业支持</a>";
}
if (!extension_loaded("sockets")) {
$arrMsg[] = "Sockets未开启,将无法安装<a href='https://www.dedebiz.com/download#dedebiz' target='_blank'>DedeBIZ商业组件</a>";
}
if (!function_exists('mysqli_connect')) {
$arrMsg[] = "MySQL不支持,将无法使用本系统";
}
if (!extension_loaded("gd")) {
$arrMsg[] = "GD未开启,将无法使用验证码、二维码、图片水印等功能";
}
if(!empty($_SERVER['REQUEST_URI']))
$scriptName = $_SERVER['REQUEST_URI'];
else
$scriptName = $_SERVER['PHP_SELF'];
$basepath = preg_replace("#\/install(.*)$#i", '', $scriptName);
if(!empty($_SERVER['HTTP_HOST']))
$baseurl = 'http://'.$_SERVER['HTTP_HOST'];
else
$baseurl = "http://".$_SERVER['SERVER_NAME'];
$chars='abcdefghigklmnopqrstuvwxwyABCDEFGHIGKLMNOPQRSTUVWXWY0123456789';
$rnd_cookieEncode='';
$length = rand(28,32);
$max = strlen($chars) - 1;
for($i = 0; $i < $length; $i++) {
$rnd_cookieEncode .= $chars[mt_rand(0, $max)];
}
$module_local = DEDEDATA.'/module/';
include('./templates/step-1.html');
exit();
}
/*------------------------
普通安装
function _2_Setup()
------------------------*/
else if($step==2)
{
$dbtype = empty($dbtype)? "mysql" : $dbtype;
$dblang = "utf8";
if (!in_array($dbtype,array("mysql", "sqlite"))) {
die("当前数据库类型不支持");
}
if(!empty($_SERVER['HTTP_HOST']))
$dfbaseurl = 'http://'.$_SERVER['HTTP_HOST'];
else
$dfbaseurl = "http://".$_SERVER['SERVER_NAME'];
$dfbasepath = preg_replace("#\/install(.*)$#i", '', $scriptName);
$dbhost = empty($dbhost)? "localhost" : $dbhost;
$dbuser = empty($dbuser)? "root" : $dbuser;
$dbuser = empty($dbuser)? "root" : $dbuser;
$dbprefix = empty($dbprefix)? "dedebiz_" : $dbprefix;
$dbname = empty($dbname)? $dfDbname : $dbname;
$adminuser = empty($adminuser)? "admin" : $adminuser;
$adminpwd = empty($adminpwd)? "admin" : $adminpwd;
$webname = empty($webname)? "某某公司" : $webname;
$baseurl = empty($baseurl)? $dfbaseurl : $baseurl;
$cmspath = empty($cmspath)? $dfbasepath : $cmspath;
if ( $dbtype == 'sqlite' )
{
$db = new SQLite3(DEDEDATA.'/'.$dbname.'.db');
} else {
$dbtype = 'mysql';
$conn = mysql_connect($dbhost,$dbuser,$dbpwd) or die("<script>alert('数据库服务器或登录密码无效,\\n\\n无法连接数据库,请重新设定');history.go(-1);</script>");
mysql_query("CREATE DATABASE IF NOT EXISTS `".$dbname."`;",$conn);
mysql_select_db($dbname, $conn) or die("<script>alert('选择数据库失败,可能是您没权限,请预先创建一个数据库');history.go(-1);</script>");
//获得数据库版本信息
$rs = mysql_query("SELECT VERSION();",$conn);
$row = mysql_fetch_array($rs);
$mysqlVersions = explode('.',trim($row[0]));
$mysqlVersion = $mysqlVersions[0].".".$mysqlVersions[1];
mysql_query("SET NAMES '$dblang',character_set_client=binary,sql_mode='';",$conn);
}
$fp = fopen(dirname(__FILE__)."/common.inc.php","r");
$configStr1 = fread($fp,filesize(dirname(__FILE__)."/common.inc.php"));
fclose($fp);
$fp = fopen(dirname(__FILE__)."/config.cache.inc.php","r");
$configStr2 = fread($fp,filesize(dirname(__FILE__)."/config.cache.inc.php"));
fclose($fp);
//common.inc.php
$configStr1 = str_replace("~dbtype~",$dbtype,$configStr1);
$configStr1 = str_replace("~dbhost~",$dbhost,$configStr1);
$configStr1 = str_replace("~dbname~",$dbname,$configStr1);
$configStr1 = str_replace("~dbuser~",$dbuser,$configStr1);
$configStr1 = str_replace("~dbpwd~",$dbpwd,$configStr1);
$configStr1 = str_replace("~dbprefix~",$dbprefix,$configStr1);
$configStr1 = str_replace("~dblang~",$dblang,$configStr1);
@chmod(DEDEDATA,0777);
$fp = fopen(DEDEDATA."/common.inc.php","w") or die("<script>alert('写入配置失败,请检查../data目录是否可写入');history.go(-1);</script>");
fwrite($fp,$configStr1);
fclose($fp);
//config.cache.inc.php
$cmspath = trim(preg_replace("#\/{1,}#", '/', $cmspath));
if($cmspath!='' && !preg_match("#^\/#", $cmspath)) $cmspath = '/'.$cmspath;
if($cmspath=='') $indexUrl = '/';
else $indexUrl = $cmspath;
$configStr2 = str_replace("~baseurl~",$baseurl,$configStr2);
$configStr2 = str_replace("~basepath~",$cmspath,$configStr2);
$configStr2 = str_replace("~indexurl~",$indexUrl,$configStr2);
$configStr2 = str_replace("~cookieEncode~",$cookieencode,$configStr2);
$configStr2 = str_replace("~webname~",$webname,$configStr2);
$configStr2 = str_replace("~adminmail~",$adminmail,$configStr2);
$fp = fopen(DEDEDATA.'/config.cache.inc.php','w');
fwrite($fp,$configStr2);
fclose($fp);
$fp = fopen(DEDEDATA.'/config.cache.bak.php','w');
fwrite($fp,$configStr2);
fclose($fp);
if($mysqlVersion >= 4.1)
{
$sql4tmp = "ENGINE=MyISAM DEFAULT CHARSET=".$dblang;
}
//创建数据表
$query = '';
$fp = fopen(dirname(__FILE__).'/sql-dftables.txt','r');
while(!feof($fp))
{
$line = rtrim(fgets($fp,1024));
if(preg_match("#;$#", $line))
{
$query .= $line."\n";
$query = str_replace('#@__',$dbprefix,$query);
if ( $dbtype == 'sqlite' )
{
$query = preg_replace('/character set (.*?) /i','',$query);
$query = str_replace('unsigned','',$query);
$query = str_replace('TYPE=MyISAM','',$query);
$query = preg_replace ('/TINYINT\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace ('/mediumint\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace ('/smallint\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace('/int\(([\d]+)\)/i','INTEGER',$query);
$query = preg_replace('/auto_increment/i','PRIMARY KEY AUTOINCREMENT',$query);
$query = preg_replace('/, KEY(.*?)MyISAM;/','',$query);
$query = preg_replace('/, KEY(.*?);/',');',$query);
$query = preg_replace('/, UNIQUE KEY(.*?);/',');',$query);
$query = preg_replace('/set\(([^\)]*?)\)/','varchar',$query);
$query = preg_replace('/enum\(([^\)]*?)\)/','varchar',$query);
if ( preg_match("/PRIMARY KEY AUTOINCREMENT/",$query) )
{
$query = preg_replace('/,([\t\s ]+)PRIMARY KEY \(`([0-9a-zA-Z]+)`\)/i','',$query);
$query = str_replace(', PRIMARY KEY (`id`)','',$query);
}
$db->exec($query);
} else {
if($mysqlVersion < 4.1)
{
$rs = mysql_query($query,$conn);
} else {
if(preg_match('#CREATE#i', $query))
{
$rs = mysql_query(preg_replace("#TYPE=MyISAM#i",$sql4tmp,$query),$conn);
}
else
{
$rs = mysql_query($query,$conn);
}
}
}
$query='';
} else if(!preg_match("#^(\/\/|--)#", $line))
{
$query .= $line;
}
}
fclose($fp);
//导入默认数据
$query = '';
$fp = fopen(dirname(__FILE__).'/sql-dfdata.txt','r');
while(!feof($fp))
{
$line = rtrim(fgets($fp, 1024));
if(preg_match("#;$#", $line))
{
if ( $dbtype == 'sqlite' )
{
$query .= $line;
$query = str_replace('#@__',$dbprefix,$query);
$query = str_replace("\'","\"",$query);
$db->exec($query);
} else {
$query .= $line;
$query = str_replace('#@__',$dbprefix,$query);
if($mysqlVersion < 4.1) $rs = mysql_query($query,$conn);
else $rs = mysql_query(str_replace('#~lang~#',$dblang,$query),$conn);
}
$query='';
} else if(!preg_match("#^(\/\/|--)#", $line))
{
$query .= $line;
}
}
fclose($fp);
//更新配置
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$baseurl}' WHERE varname='cfg_basehost';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$cmspath}' WHERE varname='cfg_cmspath';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$indexUrl}' WHERE varname='cfg_indexurl';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$cookieencode}' WHERE varname='cfg_cookie_encode';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$webname}' WHERE varname='cfg_webname';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
$cquery = "UPDATE `{$dbprefix}sysconfig` SET value='{$adminmail}' WHERE varname='cfg_adminemail';";
$dbtype == 'sqlite'? $db->exec($cquery) : mysql_query($cquery,$conn);
//增加管理员帐号
$adminquery = "INSERT INTO `{$dbprefix}admin` VALUES (1, 10, '$adminuser', '".substr(md5($adminpwd),5,20)."', 'admin', '', '', 0, '".time()."', '127.0.0.1');";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
//关连前台会员帐号
$adminquery = "INSERT INTO `{$dbprefix}member` (`mid`,`mtype`,`userid`,`pwd`,`uname`,`sex`,`rank`,`money`,`email`,`scores` ,`matt` ,`face`,`safequestion`,`safeanswer` ,`jointime` ,`joinip` ,`logintime` ,`loginip` )
VALUES ('1','个人','$adminuser','".md5($adminpwd)."','$adminuser','男','100','0','','10000','10','','0','','".time()."','','0',''); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$adminquery = "INSERT INTO `{$dbprefix}member_person` (`mid`,`onlynet`,`sex`,`uname`,`qq`,`msn`,`tel`,`mobile`,`place`,`oldplace`,`birthday`,`star`,`income` , `education` , `height` , `bodytype` , `blood` , `vocation` , `smoke` , `marital` , `house` ,`drink` , `datingtype` , `language` , `nature` , `lovemsg` , `address`,`uptime`)
VALUES ('1', '1', '男', '{$adminuser}', '', '', '', '', '0', '0','1980-01-01', '1', '0', '0', '160', '0', '0', '0', '0', '0', '0','0', '0', '', '', '', '','0'); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
$adminquery = "INSERT INTO `{$dbprefix}member_tj` (`mid`,`article`,`album`,`archives`,`homecount`,`pagecount`,`feedback`,`friend`,`stow`)
VALUES ('1','0','0','0','0','0','0','0','0'); ";
$dbtype == 'sqlite'? $db->exec($adminquery): mysql_query($adminquery,$conn);
$adminquery = "INSERT INTO `{$dbprefix}member_space`(`mid` ,`pagesize` ,`matt` ,`spacename` ,`spacelogo` ,`spacestyle`, `sign` ,`spacenews`)
VALUES('1','10','0','{$adminuser}的空间','','person','',''); ";
$dbtype == 'sqlite'? $db->exec($adminquery) : mysql_query($adminquery,$conn);
//锁定安装程序
$fp = fopen(INSLOCKFILE,'w');
fwrite($fp,'ok');
fclose($fp);
header('Location:../admin/index.php');
exit();
}
/*------------------------
检测数据库是否有效
function _10_TestDbPwd()
------------------------*/
else if($step==10)
{
header("Pragma:no-cache\r\n");
header("Cache-Control:no-cache\r\n");
header("Expires:0\r\n");
$conn = @mysql_connect($dbhost,$dbuser,$dbpwd);
$info = "";
if($conn)
{
if(empty($dbname)){
$info = "信息正确";
} else {
$info = mysql_select_db($dbname,$conn)? "数据库已经存在,系统将覆盖数据库": "数据库不存在,系统将自动创建";
}
$result = array(
"code" => 200,
"data" => $info,
);
echo json_encode($result);
} else {
$result = array(
"code" => -1,
"data" => "数据库连接失败",
);
echo json_encode($result);
}
@mysql_close($conn);
exit();
}

+ 0
- 1
src/install/install.inc.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: install.inc.php 1 13:41 2010年7月26日Z tianya $
* @package DedeBIZ.Install


+ 1
- 0
src/install/v57sp2_to_v6.txt View File

@@ -1,4 +1,4 @@
-- 6.0.5
ALTER TABLE `#@__arctype`
ADD COLUMN `namegk` varchar(255) NULL AFTER `typename`,
ADD COLUMN `enname` varchar(255) NULL AFTER `namegk`,


+ 0
- 1
src/member/ajax_feedback.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: ajax_feedback.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/ajax_loginsta.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: ajax_loginsta.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/album_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 图集编辑
*


+ 0
- 1
src/member/archives_do.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 文档管理
*


+ 0
- 1
src/member/archives_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 文档编辑器
*


+ 0
- 1
src/member/archives_sg_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 单表模型编辑器
*


+ 0
- 1
src/member/article_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 编辑文章
*


+ 0
- 1
src/member/buy.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: buy.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/check_card.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: check_card.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/content_list.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 内容列表
*


+ 0
- 1
src/member/content_sg_list.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 单表模型内容列表
*


+ 0
- 1
src/member/edit_baseinfo.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: edit_baseinfo.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/edit_email.php View File

@@ -1,5 +1,4 @@
<?php

/**
* @version $Id: edit_email.php 2020/12/18 tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/edit_face.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: edit_face.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/inc/archives_check_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 文档编辑验证
*


+ 0
- 1
src/member/inc/config_space.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 空间配置
*


+ 0
- 1
src/member/inc/inc_archives_functions.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 文档处理函数
*


+ 0
- 1
src/member/inc/inc_catalog_options.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 单表模型发布器
*


+ 0
- 1
src/member/inc/inc_list_functions.php View File

@@ -8,7 +8,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* 获得是否推荐的表述
*


+ 0
- 1
src/member/inc/inc_pwd_functions.php View File

@@ -8,7 +8,6 @@
* @license https://www.dedebiz.com/license
* @link https://www.dedebiz.com
*/
/**
* 验证码生成函数
*


+ 0
- 1
src/member/index.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: index.php 1 8:24 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/index_do.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: index_do.php 1 8:24 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/login.php View File

@@ -1,5 +1,4 @@
<?php
/**
* @version $Id: login.php 1 8:38 2010年7月9日Z tianya $
* @package DedeBIZ.Member


+ 0
- 1
src/member/mypay.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 交易支付
*


+ 0
- 1
src/member/mystow.php View File

@@ -1,5 +1,4 @@
<?php

/**
* 我的收藏夹
*


+ 0
- 1
src/member/operation.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 操作
*


+ 0
- 1
src/member/pm.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 会员短消息
*


+ 0
- 1
src/member/resetpassword.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 密码重设
*


+ 0
- 1
src/member/shops_orders.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 商品订单
*


+ 0
- 1
src/member/shops_point.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 商品支付点数
*


+ 0
- 1
src/member/shops_products.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 商铺商品
*


+ 0
- 1
src/member/soft_edit.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 软件编辑
*


+ 0
- 1
src/plus/ad_js.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 广告JS调用方式


+ 0
- 1
src/plus/advancedsearch.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 高级搜索


+ 0
- 1
src/plus/car.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 显示购物车的商品


+ 0
- 1
src/plus/digg_ajax.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 文档digg处理ajax文件


+ 0
- 1
src/plus/download.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 下载


+ 0
- 1
src/plus/erraddsave.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 错误提交


+ 0
- 1
src/plus/feedback.php View File

@@ -1,5 +1,4 @@
<?php

/**
*
* 评论


+ 0
- 1
src/plus/flink.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 友情链接


+ 0
- 1
src/plus/flink_add.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 增加友情链接


+ 0
- 1
src/plus/freelist.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 自由列表


+ 0
- 1
src/plus/heightsearch.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 高级搜索


+ 0
- 1
src/plus/list.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 栏目列表/频道动态页


+ 0
- 1
src/plus/mytag_js.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 自定义标签js调用方式


+ 0
- 1
src/plus/posttocar.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 发送到购物车


+ 0
- 1
src/plus/qrcode.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 二维码生成


+ 0
- 1
src/plus/recommend.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* 信息推荐


+ 0
- 1
src/plus/rss.php View File

@@ -1,5 +1,4 @@
<?php
/**
*
* RSS列表页


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save