Browse Source

统一id小写,结合注释和语法:I无法识别换id

tags/6.2.0
xushubieli 1 year ago
parent
commit
a00ee0bae8
60 changed files with 104 additions and 104 deletions
  1. +1
    -1
      src/admin/album_add.php
  2. +1
    -1
      src/admin/archives_add.php
  3. +2
    -2
      src/admin/archives_do.php
  4. +1
    -1
      src/admin/archives_sg_add.php
  5. +1
    -1
      src/admin/article_add.php
  6. +1
    -1
      src/admin/content_sg_list.php
  7. +1
    -1
      src/admin/inc/inc_archives_all.php
  8. +2
    -2
      src/admin/inc/inc_archives_functions.php
  9. +1
    -1
      src/admin/inc/inc_batchup.php
  10. +1
    -1
      src/admin/makehtml_list_action.php
  11. +1
    -1
      src/admin/soft_add.php
  12. +1
    -1
      src/admin/spec_add.php
  13. +2
    -2
      src/admin/templets/catalog_add.htm
  14. +2
    -2
      src/admin/templets/catalog_edit.htm
  15. +1
    -1
      src/admin/templets/freelist_add.htm
  16. +2
    -2
      src/admin/templets/freelist_edit.htm
  17. +1
    -1
      src/admin/templets/mychannel_add.htm
  18. +2
    -2
      src/admin/templets/mychannel_edit.htm
  19. +2
    -2
      src/admin/templets/mytag_add.htm
  20. +1
    -1
      src/admin/templets/mytag_tag_guide.htm
  21. +2
    -2
      src/admin/templets/spec_add.htm
  22. +2
    -2
      src/admin/templets/spec_edit.htm
  23. +1
    -1
      src/admin/templets/tag_test.htm
  24. +1
    -1
      src/apps/feedback.php
  25. +1
    -1
      src/apps/list.php
  26. +1
    -1
      src/apps/recommend.php
  27. +1
    -1
      src/install/sql-dfdata.txt
  28. +1
    -1
      src/install/sql-dftables.txt
  29. +1
    -1
      src/install/v57sp2_to_v6.txt
  30. +2
    -2
      src/system/archive/archives.class.php
  31. +2
    -2
      src/system/archive/freelist.class.php
  32. +3
    -3
      src/system/archive/listview.class.php
  33. +1
    -1
      src/system/archive/partview.class.php
  34. +1
    -1
      src/system/archive/rssview.class.php
  35. +1
    -1
      src/system/archive/searchview.class.php
  36. +3
    -3
      src/system/archive/sglistview.class.php
  37. +3
    -3
      src/system/archive/taglist.class.php
  38. +1
    -1
      src/system/customfields.func.php
  39. +1
    -1
      src/system/datalistcp.class.php
  40. +3
    -3
      src/system/helpers/archive.helper.php
  41. +12
    -12
      src/system/helpers/channelunit.helper.php
  42. +2
    -2
      src/system/taglib/arclist.lib.php
  43. +1
    -1
      src/system/taglib/channel/specialtopic.lib.php
  44. +3
    -3
      src/system/taglib/help/arclist.txt
  45. +3
    -3
      src/system/taglib/help/arclistsg.txt
  46. +2
    -2
      src/system/taglib/help/channel.txt
  47. +1
    -1
      src/system/taglib/help/mytag.txt
  48. +1
    -1
      src/system/taglib/help/type.txt
  49. +2
    -2
      src/system/typelink/typelink.class.php
  50. +4
    -4
      src/system/typelink/typeunit.class.admin.php
  51. +1
    -1
      src/system/typelink/typeunit.class.menu.php
  52. +1
    -1
      src/system/typelink/typeunit.class.selector.php
  53. +4
    -4
      src/system/userlogin.class.php
  54. +1
    -1
      src/theme/plus/heightsearch.htm
  55. +1
    -1
      src/user/album_add.php
  56. +1
    -1
      src/user/archives_add.php
  57. +1
    -1
      src/user/archives_sg_add.php
  58. +1
    -1
      src/user/article_add.php
  59. +2
    -2
      src/user/inc/inc_batchup.php
  60. +1
    -1
      src/user/soft_add.php

+ 1
- 1
src/admin/album_add.php View File

@@ -95,7 +95,7 @@ else if ($dopost == 'save') {
//处理上传的缩略图
if (empty($ddisremote)) $ddisremote = 0;
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/admin/archives_add.php View File

@@ -96,7 +96,7 @@ else if ($dopost == 'save') {
$ddisremote = 0;
}
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 2
- 2
src/admin/archives_do.php View File

@@ -302,7 +302,7 @@ else if ($dopost == 'moveArchives') {
<td class="bline"><?php echo $typeOptions; ?></td>
</tr>
<tr>
<td width="90" class="bline"> 文档ID:</td>
<td width="90" class="bline"> 文档id:</td>
<td class="bline">
<input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"><br>
移动到目标栏目必须和选定文档频道类型一致,否则程序会自动勿略不符合文档
@@ -868,7 +868,7 @@ else if ($dopost == 'attsDlg') {
</td>
</tr>
<tr>
<td width="90" class="bline"> 文档ID:</td>
<td width="90" class="bline"> 文档id:</td>
<td class="bline"><input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"></td>
</tr>
<tr>


+ 1
- 1
src/admin/archives_sg_add.php View File

@@ -70,7 +70,7 @@ else if ($dopost == 'save') {
$userip = GetIP();
if (empty($ddisremote)) $ddisremote = 0;
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $senddate, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/admin/article_add.php View File

@@ -104,7 +104,7 @@ else if ($dopost == 'save') {
$ddisremote = 0;
}
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/admin/content_sg_list.php View File

@@ -15,7 +15,7 @@ $mid = isset($mid) ? intval($mid) : 0;
if (!isset($keyword)) $keyword = '';
if (!isset($arcrank)) $arcrank = '';
if (empty($cid) && empty($channelid)) {
ShowMsg("该页面必须指定栏目ID或内容模型ID才能浏览", "javascript:;");
ShowMsg("该页面必须指定栏目id或内容模型ID才能浏览", "javascript:;");
exit();
}
//检查权限许可,总权限


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

@@ -124,7 +124,7 @@ function GetFormItem($ctag)
* @access public
* @param string $dvalue 值
* @param string $dtype 类型
* @param int $aid 文档ID
* @param int $aid 文档id
* @param string $job 操作类型
* @param string $addvar 增加值
* @return string


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

@@ -224,7 +224,7 @@ function GetRemoteImage($url, $uid = 0)
* 检测频道ID
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $channelid 频道ID
* @return bool
*/
@@ -306,7 +306,7 @@ function SpLongBody($mybody, $spsize, $sptag)
* 创建指定ID的文档
*
* @access public
* @param string $aid 文档ID
* @param string $aid 文档id
* @param string $ismakesign 生成标志
* @param int $isremote 是否远程
* @return string


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

@@ -12,7 +12,7 @@
* 删除文档信息
*
* @access public
* @param string $aid 文档ID
* @param string $aid 文档id
* @param string $type 类型
* @param string $onlyfile 删除数据库记录
* @return string


+ 1
- 1
src/admin/makehtml_list_action.php View File

@@ -20,7 +20,7 @@ if (empty($typeid)) $typeid = 0;
if (!isset($uppage)) $uppage = 0;
if (empty($maxpagesize)) $maxpagesize = 30;
$adminID = $cuserLogin->getUserID();
//检测获取所有栏目ID
//检测获取所有栏目id
//普通生成或一键更新时更新所有栏目
if ($gotype == '' || $gotype == 'mkallct') {
if ($upnext == 1 || $typeid == 0) {


+ 1
- 1
src/admin/soft_add.php View File

@@ -94,7 +94,7 @@ else if ($dopost == 'save') {
$ddisremote = 0;
}
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/admin/spec_add.php View File

@@ -67,7 +67,7 @@ else if ($dopost == 'save') {
$ddisremote = 0;
}
$litpic = GetDDImage('none', $picname, $ddisremote);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid);
if (empty($arcID)) {
ShowMsg("无法获得主键,无法进行后续操作", "-1");


+ 2
- 2
src/admin/templets/catalog_add.htm View File

@@ -328,7 +328,7 @@
<td>
<label><input type="radio" name="cross" id="cross0" value="0" onClick="CheckCross()" checked="1"> 不交叉</label>
<label><input type="radio" name="cross" id="cross1" value="1" onClick="CheckCross()"> 自动获取同名栏目内容</label>
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目ID(用逗号分开)</label>
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目id(用逗号分开)</label>
<br>
<textarea name="crossid" id="crossid" style="display:none"></textarea>
</td>
@@ -387,7 +387,7 @@
<tr id="helpvar1" style="display:none">
<td bgcolor="#f8f8f8">支持变量:</td>
<td bgcolor="#f8f8f8">
{tid}表示栏目ID,<br>
{tid}表示栏目id,<br>
{cid}表示频道模型的'名字ID'(
<?php
foreach($channelArray as $k=>$arr)


+ 2
- 2
src/admin/templets/catalog_edit.htm View File

@@ -273,7 +273,7 @@
<td class="bline">
<label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if($myrow['cross']==0) echo "checked='1'"; ?>> 不交叉</label>
<label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if($myrow['cross']==1) echo "checked='1'"; ?>> 自动获取同名栏目内容</label>
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if($myrow['cross']==2) echo "checked='1'"; ?>> 手工指定交叉栏目ID(用逗号分开)</label>
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if($myrow['cross']==2) echo "checked='1'"; ?>> 手工指定交叉栏目id(用逗号分开)</label>
<br>
<textarea name="crossid" id="crossid" style="<?php if($myrow['cross']!=2) echo'display:none'; ?>"><?php echo $myrow['crossid']; ?></textarea>
</td>
@@ -331,7 +331,7 @@
<tr id='helpvar1' style='display:none'>
<td bgcolor="#f8f8f8">支持变量:</td>
<td bgcolor="#f8f8f8">
{tid}表示栏目ID,<br>
{tid}表示栏目id,<br>
{cid}表示频道模型的'名字ID'(
<?php
foreach($channelArray as $k=>$arr)


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

@@ -225,7 +225,7 @@
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档ID</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>


+ 2
- 2
src/admin/templets/freelist_edit.htm View File

@@ -204,7 +204,7 @@
<td>排列顺序:
<?php
$orderby = $ctag->GetAtt('orderby');
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档ID,lastpost,最后评论时间;postnum,评论总数;rand,随机获取";
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档id,lastpost,最后评论时间;postnum,评论总数;rand,随机获取";
$sortas = explode(';',$sorta);
foreach($sortas as $v)
{
@@ -221,7 +221,7 @@
<option value="pubdate">发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档ID</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="postnum">评论总数</option>
</select>


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

@@ -145,7 +145,7 @@
</td>
</tr>
<tr>
<td>默认栏目ID<br>
<td>默认栏目id<br>
<span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td>
<td><input type="text" name="dfcid" id="dfcid" value="0" class="pubinputs"></td>
</tr>


+ 2
- 2
src/admin/templets/mychannel_edit.htm View File

@@ -108,7 +108,7 @@
?>
<tr>
<td style="border-top:0">模型性质<br>
<span class="style2" id="help5">如果为系统模型将禁止删除,此选项不可修改,对于独立模型,系统强制创建字段aid、栏目ID、发布时间、文档标题</span>
<span class="style2" id="help5">如果为系统模型将禁止删除,此选项不可修改,对于独立模型,系统强制创建字段aid、栏目id、发布时间、文档标题</span>
</td>
<td style="border-top:0">
<?php
@@ -233,7 +233,7 @@
</td>
</tr>
<tr>
<td>默认栏目ID<br><span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td>
<td>默认栏目id<br><span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td>
<td><input type="text" name="dfcid" id="dfcid" value="<?php echo $row['dfcid']; ?>" class="pubinputs" style="width:160px"></td>
</tr>
<tr>


+ 2
- 2
src/admin/templets/mytag_add.htm View File

@@ -65,10 +65,10 @@
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>">
<tr>
<td colspan="3">自定义标记的调用方法:<br>
{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目ID'/}<br>
{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/}<br>
1、name 标记名称,该项是必须的属性,以下 2、3是可选属性;<br>
2、ismake 默认是 no 表示设定的纯HTML代码, yes 表示含板块标记的代码;<br>
3、typeid 表示所属栏目的ID,默认为 0 ,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目ID</td>
3、typeid 表示所属栏目的ID,默认为 0 ,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id</td>
</tr>
<tr>
<td width="15%" align="center">所属栏目:</td>


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

@@ -134,7 +134,7 @@
<option value="pubdate" selected>发布时间</option>
<option value="senddate">录入时间</option>
<option value="click">点击量</option>
<option value="id">文档ID</option>
<option value="id">文档id</option>
<option value="lastpost">最后评论时间</option>
<option value="scores">评论积分</option>
<option value="rand">随机获取</option>


+ 2
- 2
src/admin/templets/spec_add.htm View File

@@ -281,7 +281,7 @@ table{border-collapse:separate}
1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br>
2、关于单条记录模板里的[field:fieldname/]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br>
3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表<br>
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键词和栏目ID </td>
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键词和栏目id </td>
</tr>
<tr>
<td>
@@ -322,7 +322,7 @@ table{border-collapse:separate}
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label>
栏目ID:<label><input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label>
栏目id:<label><input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label>
</td>
</tr>
<tr>


+ 2
- 2
src/admin/templets/spec_edit.htm View File

@@ -347,7 +347,7 @@ table{border-collapse:separate}
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if($isauto==0) echo "checked"; ?>> 按文章列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if($isauto==1) echo "checked"; ?>> 自动获取文档</label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label>
<label>栏目ID:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label>
</td>
</tr>
<tr>
@@ -394,7 +394,7 @@ table{border-collapse:separate}
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label>
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label>
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(空格分开)</label>
<label>栏目ID:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label>
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label>
</td>
</tr>
<tr>


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

@@ -40,7 +40,7 @@
</tr>
<tr>
<td colspan="2">
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目ID)<br>
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目id)<br>
各标记的具体含义和用途,请在<a href="https://www.dedebiz.com/help" target="_blank">模板标记参考</a>一章查阅
</td>
</tr>


+ 1
- 1
src/apps/feedback.php View File

@@ -34,7 +34,7 @@ $fid = isset($fid) ? intval($fid) : 0; //用来标记回复评论的变量
if (empty($aid) && empty($fid)) {
echo json_encode(array(
"code" => -1,
"msg" => "文档ID不能为空",
"msg" => "文档id不能为空",
"data" => null,
));
exit();


+ 1
- 1
src/apps/list.php View File

@@ -14,7 +14,7 @@ $tid = (isset($tid) && is_numeric($tid) ? $tid : 0);
$channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0);
if ($tid == 0 && $channelid == 0) die("dedebiz");
if (isset($TotalResult)) $TotalResult = intval(preg_replace("/[^\d]/", '', $TotalResult));
//如果指定了内容模型ID但没有指定栏目ID,那么自动获得为这个内容模型的第一个顶级栏目作为频道默认栏目
//如果指定了内容模型ID但没有指定栏目id,那么自动获得为这个内容模型的第一个顶级栏目作为频道默认栏目
if (!empty($channelid) && empty($tid)) {
$tinfos = $dsql->GetOne("SELECT tp.id,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc");
if (!is_array($tinfos)) die(" No catalogs in the channel! ");


+ 1
- 1
src/apps/recommend.php View File

@@ -16,7 +16,7 @@ if (isset($arcID)) $aid = $arcID;
$arcID = $aid = (isset($aid) && is_numeric($aid) ? $aid : 0);
$type = (!isset($type) ? "" : $type);
if (empty($aid)) {
ShowMsg("文档ID不能为空", "-1");
ShowMsg("文档id不能为空", "-1");
exit();
}
//读取文档信息


+ 1
- 1
src/install/sql-dfdata.txt View File

@@ -4047,7 +4047,7 @@ INSERT INTO `#@__sysconfig` VALUES('1','cfg_basehost','站点网址','1','string
('105','cfg_beian','网站备案号','1','string',''),
('106','cfg_need_typeid2','是否启用副栏目','6','bool','Y'),
('107','cfg_mb_pwdtype','前台密码验证类型:默认32—32位md5,可选:l16—前16位、r16—后16位、m16—中间16位','4','string','32'),
('108','cfg_cache_type','id 文档ID,content标签最终内容,修改此变量后必须更新系统缓存','6','string','id'),
('108','cfg_cache_type','id 文档id,content标签最终内容,修改此变量后必须更新系统缓存','6','string','id'),
('109','cfg_max_face','会员上传头像大小限制KB','3','number','100'),
('110','cfg_typedir_df','栏目网址使用目录名(不显示默认页,则是/a/b/c形式)','2','bool','Y'),
('111','cfg_make_andcat','发表文章后马上更新相关栏目','6','bool','N'),


+ 1
- 1
src/install/sql-dftables.txt View File

@@ -959,7 +959,7 @@ CREATE TABLE `#@__statistics_detail` (
`device_type` varchar(10) DEFAULT NULL COMMENT '设备类型',
`os` varchar(20) DEFAULT NULL COMMENT '操作系统',
`url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG',
`typeid` int DEFAULT NULL COMMENT '栏目ID',
`typeid` int DEFAULT NULL COMMENT '栏目id',
`aid` int DEFAULT NULL COMMENT '内容ID',
`value` varchar(50) DEFAULT NULL COMMENT '值',
PRIMARY KEY (`id`),


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

@@ -38,7 +38,7 @@ CREATE TABLE `#@__statistics_detail` (
`device_type` varchar(10) DEFAULT NULL COMMENT '设备类型',
`os` varchar(20) DEFAULT NULL COMMENT '操作系统',
`url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG',
`typeid` int DEFAULT NULL COMMENT '栏目ID',
`typeid` int DEFAULT NULL COMMENT '栏目id',
`aid` int DEFAULT NULL COMMENT '内容ID',
`value` varchar(50) DEFAULT NULL COMMENT '值',
PRIMARY KEY (`id`),


+ 2
- 2
src/system/archive/archives.class.php View File

@@ -45,7 +45,7 @@ class Archives
* php5构造函数
*
* @access public
* @param int $aid 文档ID
* @param int $aid 文档id
* @return string
*/
function __construct($aid)
@@ -516,7 +516,7 @@ class Archives
if ($this->TempSource == '') {
$tempfile = $this->GetTempletFile();
if (!file_exists($tempfile) || !is_file($tempfile)) {
echo "文档ID:{$this->Fields['id']} - {$this->TypeLink->TypeInfos['typename']} - {$this->Fields['title']}<br>";
echo "文档id:{$this->Fields['id']} - {$this->TypeLink->TypeInfos['typename']} - {$this->Fields['title']}<br>";
echo "模板文件不存在,无法解析文档";
exit();
}


+ 2
- 2
src/system/archive/freelist.class.php View File

@@ -800,8 +800,8 @@ class FreeList
* 获得一个指定档案的链接
*
* @access public
* @param int $aid 文档ID
* @param int $typeid 栏目ID
* @param int $aid 文档id
* @param int $typeid 栏目id
* @param int $timetag 时间戳
* @param string $title 标题
* @param int $ismake 是否生成


+ 3
- 3
src/system/archive/listview.class.php View File

@@ -44,7 +44,7 @@ class ListView
* php5构造函数
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $uppage 上一页
* @return string
*/
@@ -90,7 +90,7 @@ class ListView
//设置环境变量
SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list');
$this->Fields['typeid'] = $this->TypeID;
//获得交叉栏目ID
//获得交叉栏目id
if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) {
$selquery = '';
if ($this->TypeLink->TypeInfos['cross'] == 1) {
@@ -544,7 +544,7 @@ class ListView
* 获得要创建的文件名称规则
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param string $wname
* @param string $typedir 栏目目录
* @param string $defaultname 默认名称


+ 1
- 1
src/system/archive/partview.class.php View File

@@ -32,7 +32,7 @@ class PartView
* php5构造函数
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $needtypelink 是否需要栏目连接
* @return void
*/


+ 1
- 1
src/system/archive/rssview.class.php View File

@@ -33,7 +33,7 @@ class RssView
* php5构造函数
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $max_row 最大显示行数
* @return string
*/


+ 1
- 1
src/system/archive/searchview.class.php View File

@@ -54,7 +54,7 @@ class SearchView
* php5构造函数
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param string $keyword 关键词
* @param string $orderby 排序
* @param string $achanneltype 频道类型


+ 3
- 3
src/system/archive/sglistview.class.php View File

@@ -45,7 +45,7 @@ class SgListView
* php5构造函数
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param array $searchArr 检索数组
* @return void
*/
@@ -85,7 +85,7 @@ class SgListView
//设置环境变量
SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list');
$this->Fields['typeid'] = $this->TypeID;
//获得交叉栏目ID
//获得交叉栏目id
if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) {
$selquery = '';
if ($this->TypeLink->TypeInfos['cross'] == 1) {
@@ -478,7 +478,7 @@ class SgListView
* 获得要创建的文件名称规则
*
* @access public
* @param string $typeid 栏目ID
* @param string $typeid 栏目id
* @param string $wname
* @param string $typedir 栏目目录
* @param string $defaultname 默认名称


+ 3
- 3
src/system/archive/taglist.class.php View File

@@ -615,7 +615,7 @@ class TagList
* 获得一个指定的频道的链接
*
* @access private
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param string $typedir 栏目目录
* @param int $isdefault 是否为默认
* @param string $defaultname 默认名称
@@ -632,8 +632,8 @@ class TagList
* 获得一个指定档案的链接
*
* @access private
* @param int $aid 文档ID
* @param int $typeid 栏目ID
* @param int $aid 文档id
* @param int $typeid 栏目id
* @param int $timetag 时间戳
* @param string $title 标题
* @param int $ismake 是否生成静态


+ 1
- 1
src/system/customfields.func.php View File

@@ -158,7 +158,7 @@ EOT;
* @access public
* @param string $dvalue 默认值
* @param string $dtype 默认类型
* @param int $aid 文档ID
* @param int $aid 文档id
* @param string $job 操作类型
* @param string $addvar 值
* @param string $admintype 管理类型


+ 1
- 1
src/system/datalistcp.class.php View File

@@ -36,7 +36,7 @@ class DataListCP
var $isQuery;
var $queryTime;
/**
* 用指定的文档ID进行初始化
* 用指定的文档id进行初始化
*
* @access public
* @param string $tplfile 模板文件


+ 3
- 3
src/system/helpers/archive.helper.php View File

@@ -121,7 +121,7 @@ if (!function_exists('GetTags')) {
*
* @access public
* @param string $arcrank 权限值
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $sortrank 排序ID
* @param int $channelid 模型ID
* @param int $senddate 发布日期
@@ -149,9 +149,9 @@ if (!function_exists('GetIndexKey')) {
* 更新微表key及Tag
*
* @access public
* @param int $id 文档ID
* @param int $id 文档id
* @param string $arcrank 权限值
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $sortrank 排序ID
* @param string $tags tag标签
* @return string


+ 12
- 12
src/system/helpers/channelunit.helper.php View File

@@ -34,8 +34,8 @@ if (!function_exists('GetRankStar')) {
* GetFileUrl($aid,$typeid,$timetag,$title,$ismake,$rank,$namerule,$typedir,$money)
* 即是不指定站点参数则返回相当对根目录的真实路径
*
* @param int $aid 文档ID
* @param int $typeid 栏目ID
* @param int $aid 文档id
* @param int $typeid 栏目id
* @param int $timetag 时间戳
* @param string $title 标题
* @param int $ismake 是否生成
@@ -85,8 +85,8 @@ if (!function_exists('GetFileUrl')) {
/**
* 获得新文件名(本函数会自动创建目录)
*
* @param int $aid 文档ID
* @param int $typeid 栏目ID
* @param int $aid 文档id
* @param int $typeid 栏目id
* @param int $timetag 时间戳
* @param string $title 标题
* @param int $ismake 是否生成
@@ -124,8 +124,8 @@ if (!function_exists('GetFileNewName')) {
/**
* 获得文件相对于主站点根目录的物理文件名(动态网址返回url)
*
* @param int $aid 文档ID
* @param int $typeid 栏目ID
* @param int $aid 文档id
* @param int $typeid 栏目id
* @param int $timetag 时间戳
* @param string $title 标题
* @param int $ismake 是否生成
@@ -189,7 +189,7 @@ if (!function_exists('GetFileName')) {
* 获得指定类目的URL链接
* 对于使用封面文件和单独页面的情况,强制使用默认页名称
*
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param string $typedir 栏目目录
* @param int $isdefault 是否默认
* @param string $defaultname 默认名称
@@ -266,7 +266,7 @@ if (!function_exists('MagicVar')) {
/**
* 获取某个类目的所有上级栏目id
*
* @param int $tid 栏目ID
* @param int $tid 栏目id
* @return string
*/
if (!function_exists('GetTopids')) {
@@ -280,7 +280,7 @@ if (!function_exists('GetTopids')) {
* 获取上级ID列表
*
* @access public
* @param string $tid 栏目ID
* @param string $tid 栏目id
* @return string
*/
if (!function_exists('GetParentIds')) {
@@ -316,7 +316,7 @@ if (!function_exists('IsParent')) {
/**
* 获取一个类目的顶级类目id
*
* @param string $tid 栏目ID
* @param string $tid 栏目id
* @return string
*/
if (!function_exists('GetTopid')) {
@@ -520,9 +520,9 @@ function GetOneTypeUrlA($typeinfos)
/**
* 设置全局环境变量
*
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param string $typename 栏目名称
* @param string $aid 文档ID
* @param string $aid 文档id
* @param string $title 标题
* @param string $curfile 当前文件
* @return string


+ 2
- 2
src/system/taglib/arclist.lib.php View File

@@ -83,7 +83,7 @@ function lib_arclist(&$ctag, &$refObj)
* @access public
* @param object $refObj 引用对象
* @param object $ctag 标签
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $row 调用行数
* @param int $titlelen 字符串长度
* @param int $infolen 描述信息长度
@@ -93,7 +93,7 @@ function lib_arclist(&$ctag, &$refObj)
* @param string $orderby 排列顺序
* @param string $keyword 关键词
* @param string $innertext 底层模板
* @param int $arcid 文档ID
* @param int $arcid 文档id
* @param string $idlist ID列表
* @param int $channelid 频道ID
* @param string $limit 限制


+ 1
- 1
src/system/taglib/channel/specialtopic.lib.php View File

@@ -31,7 +31,7 @@ function ch_specialtopic($noteinfo, $arcTag, $refObj, $fname = '')
$keywords = '';
$stypeid = 0;
if (empty($rownum)) $rownum = 40;
//通过关键词和栏目ID自动获取模式
//通过关键词和栏目id自动获取模式
if ($isauto == 1) {
$idlist = '';
$keywords = trim($ctag->GetAtt('keywords'));


+ 3
- 3
src/system/taglib/help/arclist.txt View File

@@ -7,7 +7,7 @@ imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'}
>>dede>>
col='' 分多少列显示(默认为单列)
row='10' 返回文档列表总数
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
typeid='' 栏目id,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
titlelen = '30' 标题长度 等同于titlelength
infolen='160' 表示内容简介长度 等同于infolength
imgwidth='120' 缩略图宽度
@@ -23,8 +23,8 @@ orderby='sortrank' 文档排序方式
§ orderby='rand' 随机获得指定条件的文档列表
keyword='' 含有指定关键词的文档列表,多个关键词用","分
innertext = '' 单条记录样式
aid='' 指定文档ID
idlist ='' 提取特定文档(文档ID
aid='' 指定文档id
idlist ='' 提取特定文档(文档id
isweight = 'n' 开启按照权重排序,默认为n/N,如果设为y/Y,则内容会按照weight字段排序,数值越小越靠前
channelid 频道ID
limit='' 起始,结束 表示限定的记录范围(如:limit='1,2')


+ 3
- 3
src/system/taglib/help/arclistsg.txt View File

@@ -6,13 +6,13 @@
>>dede>>
col='' 分多少列显示(默认为单列),5.3版中本属性无效,要多列显示的可用div+css实现
row='10' 返回文档列表总数
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
typeid='' 栏目id,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
titlelen = '30' 标题长度 等同于titlelength
orderwey='desc'或'asc' 排序方向
keyword= 含有指定关键词的文档列表,多个关键词用","分
innertext = "<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码)
arcid='' 指定文档ID
idlist ='' 提取特定文档(文档ID
arcid='' 指定文档id
idlist ='' 提取特定文档(文档id
channelid = '' 频道ID
limit='' 起始,结束 表示限定的记录范围(如:limit='1,2')
flag = 'h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b]


+ 2
- 2
src/system/taglib/help/channel.txt View File

@@ -4,8 +4,8 @@
<li><a href='[field:typelink/]'>[field:typename/]</a> </li>
{/dede:channel}
>>dede>>
typeid = '0' 栏目ID
reid = '0' 上级栏目ID
typeid = '0' 栏目id
reid = '0' 上级栏目id
row = '100' 调用栏目数
col = '1' 分多少列显示(默认为单列)
type = 'son' son表示下级栏目,self表示同级栏目,top顶级栏目

+ 1
- 1
src/system/taglib/help/mytag.txt View File

@@ -2,5 +2,5 @@
>>dede>>
{dede:mytag typeid='0' name=''/}
>>dede>>
typeid = '0' 栏目ID 0为全站栏目
typeid = '0' 栏目id 0为全站栏目
name = '' 标记名

+ 1
- 1
src/system/taglib/help/type.txt View File

@@ -4,4 +4,4 @@
<a href="[field:typelink/]">[field:typename/]</a>
{/dede:type}
>>dede>>
typeid='' 指定栏目ID
typeid='' 指定栏目id

+ 2
- 2
src/system/typelink/typelink.class.php View File

@@ -234,7 +234,7 @@ class TypeLink
* 逻辑递归
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param int $step 步进标志
* @param int $oper 操作权限
* @return string
@@ -262,7 +262,7 @@ class TypeLink
* $typetype 的值为:sun 下级分类 self 同级分类 top 顶级分类
*
* @access public
* @param int $typeid 栏目ID
* @param int $typeid 栏目id
* @param int $reid 所属ID
* @param int $row 栏目行数
* @param string $typetype 栏目类型


+ 4
- 4
src/system/typelink/typeunit.class.admin.php View File

@@ -44,7 +44,7 @@ class TypeUnit
function Close()
{
}
//获取所有栏目的文档ID
//获取所有栏目的文档id
function UpdateCatalogNum()
{
$this->dsql->SetQuery("SELECT typeid,count(typeid) as dd FROM `#@__arctiny` WHERE arcrank <>-2 group by typeid");
@@ -165,7 +165,7 @@ class TypeUnit
* 获得子类目的递归调用
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param string $step 层级标志
* @return void
*/
@@ -249,7 +249,7 @@ class TypeUnit
* 返回与某个目相关的下级目录的类目ID列表(删除类目或文章时调用)
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param int $channel 频道ID
* @return array
*/
@@ -276,7 +276,7 @@ class TypeUnit
* 删除类目
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param bool $isDelFile 是否删除文件
* @return string
*/


+ 1
- 1
src/system/typelink/typeunit.class.menu.php View File

@@ -119,7 +119,7 @@ class TypeUnit
* 获得子类目的递归调用
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param string $step 层级标志
* @param bool $needcheck 权限
* @return string


+ 1
- 1
src/system/typelink/typeunit.class.selector.php View File

@@ -93,7 +93,7 @@ class TypeUnitSelector
* 获得子类目的递归调用
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param int $channel 频道ID
* @param int $soncat 子级分类
* @return string


+ 4
- 4
src/system/userlogin.class.php View File

@@ -123,10 +123,10 @@ function AddMyAddon($fid, $filename)
fclose($fp);
}
/**
* 清理附件,如果关连的文档ID,先把上一批附件传给这个文档ID
* 清理附件,如果关连的文档id,先把上一批附件传给这个文档id
*
* @access public
* @param string $aid 文档ID
* @param string $aid 文档id
* @param string $title 文档标题
* @return empty
*/
@@ -406,7 +406,7 @@ class userLogin
* 获得某id的所有下级id
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param int $channel 频道ID
* @param int $addthis 是否加入当前这个栏目
* @return string
@@ -426,7 +426,7 @@ function GetSonIdsUL($id, $channel = 0, $addthis = TRUE)
* 递归逻辑
*
* @access public
* @param int $id 栏目ID
* @param int $id 栏目id
* @param array $sArr 缓存数组
* @param int $channel 频道ID
* @param int $addthis 是否加入当前这个栏目


+ 1
- 1
src/theme/plus/heightsearch.htm View File

@@ -66,7 +66,7 @@
<option value="sortrank" selected>默认</option>
<option value="senddate">收录时间</option>
<option value="pubdate">发布时间</option>
<option value="id">文档ID</option>
<option value="id">文档id</option>
</select>
</td>
</tr>


+ 1
- 1
src/user/album_add.php View File

@@ -112,7 +112,7 @@ else if ($dopost == 'save') {
exit();
}
}
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/user/archives_add.php View File

@@ -84,7 +84,7 @@ else if ($dopost == 'save') {
}
//处理图片文档的自定义属性
if ($litpic != '') $flag = 'p';
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/user/archives_sg_add.php View File

@@ -130,7 +130,7 @@ else if ($dopost == 'save') {
exit();
}
}
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 1
- 1
src/user/article_add.php View File

@@ -72,7 +72,7 @@ else if ($dopost == 'save') {
}
$body = AnalyseHtmlBody($body, $description);
$body = HtmlReplace($body, -1);
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


+ 2
- 2
src/user/inc/inc_batchup.php View File

@@ -14,7 +14,7 @@ require_once(DEDEINC."/channelunit.func.php");
* 删除文档
*
* @access public
* @param int $aid 文档ID
* @param int $aid 文档id
* @return bool
*/
function DelArc($aid)
@@ -122,7 +122,7 @@ function DelArc($aid)
* 删除不带主表内容模型的数据
*
* @access public
* @param int $aid 文档ID
* @param int $aid 文档id
* @return string
*/
function DelArcSg($aid)


+ 1
- 1
src/user/soft_add.php View File

@@ -55,7 +55,7 @@ function _SaveArticle(){ }
else if ($dopost == 'save') {
$description = '';
include(DEDEMEMBER.'/inc/archives_check.php');
//生成文档ID
//生成文档id
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid);
if (empty($arcID)) {
ShowMsg("无法获得主键,因此无法进行后续操作", "-1");


Loading…
Cancel
Save