{"id":30468,"date":"2024-11-25T08:25:20","date_gmt":"2024-11-25T00:25:20","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30468\/"},"modified":"2024-11-25T08:25:20","modified_gmt":"2024-11-25T00:25:20","slug":"dedecms%e4%b8%ad%e6%80%8e%e4%b9%88%e8%8e%b7%e5%8f%96%e6%97%a0%e9%99%90%e6%a0%8f%e7%9b%ae%e5%ad%90%e5%88%86%e7%b1%bb","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30468\/","title":{"rendered":"DEDECMS\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5dfad3a56346e508.jpg\" class=\"aligncenter\" title=\"DEDECMS\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b\u63d2\u56fe\" alt=\"DEDECMS\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b\uff1f<\/strong><\/p>\n<p>\u505a\u4f01\u4e1a\u7f51\u7ad9\u5927\u90e8\u5206\u662f\u4f7f\u7528DEDECMS\uff0c\u4eca\u5929\u5728\u7ed9\u5ba2\u6237\u8bbe\u8ba1\u7f51\u7ad9\u65f6\uff0c\u628aDEDE\u81ea\u52a8\u5185\u94fe\u548cURL\u5168\u62fc\u683c\u5f0f\u641e\u5b9a\u540e\uff0c\u53c8\u9047\u5230\u4e86\u4e2a\u5c0f\u95ee\u9898\uff0c\u56e0\u4e3a\u4ea7\u54c1\u5206\u7c7b\u6700\u591a\u6709\u56db\u7ea7\uff0c\u5ba2\u6237\u8981\u6c42\u5728\u5de6\u4fa7\u6709\u4e2a\u5f39\u51fa\u5f0f\u83dc\u5355\u8c03\u7528\u5404\u7ea7\u5b50\u5206\u7c7b\u51fa\u6765\uff0c\u800cDEDECMS\u9ed8\u8ba4\u53ea\u80fd\u8c03\u7528\u4e00\u7ea7\u5206\u7c7b\u3002\u7ecf\u8fc7\u52aa\u529b\uff0c\u767e\u5ea6+GOOGLE+\u81ea\u5df1\u8111\u888b\uff0c\u7ec8\u4e8e\u641e\u5b9a\u4e86\u8fd9\u4e2a\u4e1c\u897f\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u53d1\u51fa\u6765\u7ed9\u6709\u9700\u8981\u7684\u670b\u53cb\u5206\u4eab\u3002&nbsp;<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u9996\u5148\u8981\u628a\/include\/taglib\/channerl.lib.php \u6587\u4ef6\u7684\u4ee3\u7801\u4fee\u6539\u6210\u4ee5\u4e0b\u7684\uff1a<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>&lt;?php  \nfunction lib_channel(&amp;$ctag,&amp;$refObj) \n{ \nglobal $_sys_globals,$envs,$dsql; \n$attlist = \u201ctypeid|0,reid|0,row|100,col|1,type|son,currentstyle|\u201d; \nFillAttsDefault($ctag-&gt;CAttribute-&amp;gt;Items,$attlist);&nbsp;\nextract($ctag-&amp;gt;CAttribute-&amp;gt;Items,&nbsp;EXTR_SKIP);&nbsp;\n$innertext&nbsp;=&nbsp;$ctag-&amp;gt;GetInnerText();&nbsp;\nif(empty($typeid)&nbsp;&amp;amp;&amp;amp;&nbsp;$envs['typeid']!=0)&nbsp;\n{&nbsp;\n$typeid&nbsp;=&nbsp;$envs['typeid'];&nbsp;\n$reid&nbsp;=&nbsp;$envs['reid'];&nbsp;\n}else{&nbsp;\n$reid=0;&nbsp;\n}&nbsp;\nif($type==\u201d||$type==\u2019sun\u2019)&nbsp;$type=\u201dson\u201d;&nbsp;\nif($innertext==\u201d)&nbsp;$innertext&nbsp;=&nbsp;GetSysTemplets(\u201cchannel_list.htm\u201d);&nbsp;\nif($reid==0&nbsp;&amp;amp;&amp;amp;&nbsp;$typeid&amp;gt;0)&nbsp;\n{&nbsp;\n$dbrow&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(\u201cSelect&nbsp;reid&nbsp;From&nbsp;ying_arctype&nbsp;where&nbsp;id=\u2019$typeid\u2019&nbsp;\u201c);&nbsp;\nif(is_array($dbrow))&nbsp;$reid&nbsp;=&nbsp;$dbrow['reid'];&nbsp;\n}&nbsp;\n$likeType&nbsp;=&nbsp;\u201d;&nbsp;\nif($type==\u2019top\u2019)&nbsp;\n{&nbsp;\n$sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp;\nFrom&nbsp;ying_arctype&nbsp;where&nbsp;reid=0&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp;\n}&nbsp;\nelse&nbsp;if($type==\u201dson\u201d)&nbsp;\n{&nbsp;\n\/\/if($_sys_globals['typeid']&amp;gt;0)&nbsp;$typeid&nbsp;=&nbsp;$_sys_globals['typeid'];&nbsp;\nif($typeid==0)&nbsp;{&nbsp;\nreturn&nbsp;\u201d;&nbsp;\n}&nbsp;\n$sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp;\nFrom&nbsp;ying_arctype&nbsp;where&nbsp;reid=\u2019$typeid\u2019&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp;\n}&nbsp;\nelse&nbsp;if($type==\u201dself\u201d)&nbsp;\n{&nbsp;\nif($reid==0)&nbsp;{&nbsp;\nreturn&nbsp;\u201d;&nbsp;\n}&nbsp;\n$sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp;\nFrom&nbsp;\u2018ying_arctype\u2019&nbsp;where&nbsp;reid=\u2019$reid\u2019&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp;\n}&nbsp;\n\/\/And&nbsp;id\u2019$typeid\u2019&nbsp;\n$dtp2&nbsp;=&nbsp;new&nbsp;DedeTagParse();&nbsp;\n$dtp2-&amp;gt;SetNameSpace(\u201cfield\u201d,\u201d[\",\"]\u201c);&nbsp;\n$dtp2-&amp;gt;LoadSource($innertext);&nbsp;\n$dsql2&nbsp;=&nbsp;clone&nbsp;$dsql;&nbsp;\n$dsql-&amp;gt;SetQuery($sql);&nbsp;\n$dsql-&amp;gt;Execute();&nbsp;\n$line&nbsp;=&nbsp;$row;&nbsp;\n$GLOBALS['autoindex']&nbsp;=&nbsp;0;&nbsp;\nfor($i=0;$i&nbsp;1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<dl>\n  \u201d;&nbsp; for($j=0;$j1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c <\/p>\n<dd>\n   \u201d;&nbsp; if($row=$dsql-&gt;GetArray())&nbsp; {&nbsp; if($type==\u2019self\u2019&nbsp;&amp;&amp;&nbsp;$row[&#8216;id&#8217;]==$typeid)&nbsp;\/\/\u5904\u7406\u540c\u7ea7\u680f\u76ee\u4e2d\uff0c\u5f53\u524d\u680f\u76ee\u7684\u6837\u5f0f&nbsp; {&nbsp; if($currentstyle!=\u201d)&nbsp; {&nbsp; $linkOkstr&nbsp;=&nbsp;$currentstyle;&nbsp; $row[&#8216;typelink&#8217;]&nbsp;=&nbsp;GetOneTypeUrlA($row);&nbsp; $linkOkstr&nbsp;=&nbsp;str_replace(\u201c~typelink~\u201d,$row[&#8216;typelink&#8217;],$linkOkstr);&nbsp; $linkOkstr&nbsp;=&nbsp;str_replace(\u201c~typename~\u201d,$row[&#8216;typename&#8217;],$linkOkstr);&nbsp; $likeType&nbsp;.=&nbsp;$linkOkstr;&nbsp; }&nbsp; }else&nbsp; {&nbsp; $row[&#8216;typelink&#8217;]&nbsp;=&nbsp;$row[&#8216;typeurl&#8217;]&nbsp;=&nbsp;GetOneTypeUrlA($row);&nbsp; if(is_array($dtp2-&gt;CTags))&nbsp; {&nbsp; foreach($dtp2-&gt;CTags&nbsp;as&nbsp;$tagid=&gt;$ctag){&nbsp; if(isset($row[$ctag-&gt;GetName()]))&nbsp; {&nbsp; $dtp2-&gt;Assign($tagid,$row[$ctag-&gt;GetName()]);&nbsp; }&nbsp; elseif&nbsp;(preg_match(\u2018\/^sonchannel[0-9]*$\/\u2019,$ctag-&gt;GetName()))&nbsp; {&nbsp; $dtp2-&gt;Assign($tagid,lib_channel_son($ctag,$row[&#8216;id&#8217;],$dsql2));&nbsp; }&nbsp; }&nbsp; }&nbsp; $likeType&nbsp;.=&nbsp;$dtp2-&gt;GetResult();&nbsp; }&nbsp; }&nbsp; if($col&gt;1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c\n <\/dd>\n<p> \u201d;&nbsp; $GLOBALS[&#8216;autoindex&#8217;]++;&nbsp; }\/\/Loop&nbsp;Col&nbsp; if($col&gt;1)&nbsp; {&nbsp; $i&nbsp;+=&nbsp;$col&nbsp;\u2013&nbsp;1;&nbsp; $likeType&nbsp;.=&nbsp;\u201d&nbsp;\n<\/dl>\n<p> \u201d;&nbsp; }&nbsp; }\/\/Loop&nbsp;for&nbsp;$i&nbsp; reset($dsql2);&nbsp; $dsql-&gt;FreeResult();&nbsp; return&nbsp;$likeType;&nbsp; }&nbsp; function&nbsp;lib_channel_son($ctag,$typeid&nbsp;=&nbsp;0,$dsql2)&nbsp; {&nbsp; $attlist&nbsp;=&nbsp;\u201crow|100,col|1,currentstyle|\u201d;&nbsp; FillAttsDefault($ctag-&gt;CAttribute-&gt;Items,$attlist);&nbsp; extract($ctag-&gt;CAttribute-&gt;Items,&nbsp;EXTR_SKIP);&nbsp; $innertext&nbsp;=&nbsp;$ctag-&gt;GetInnerText();&nbsp; $dsql3&nbsp;=&nbsp;clone&nbsp;$dsql2;&nbsp; $likeType&nbsp;=&nbsp;\u201d;&nbsp; \/\/if($_sys_globals[&#8216;typeid&#8217;]&gt;0)&nbsp;$typeid&nbsp;=&nbsp;$_sys_globals[&#8216;typeid&#8217;];&nbsp; if($typeid==0)&nbsp;{&nbsp; return&nbsp;\u201d;&nbsp; }&nbsp; $sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp; From&nbsp;ying_arctype&nbsp;where&nbsp;reid=\u2019$typeid\u2019&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp; \/\/And&nbsp;id\u2019$typeid\u2019&nbsp; $dtp2&nbsp;=&nbsp;new&nbsp;DedeTagParse();&nbsp; $dtp2-&gt;SetNameSpace(\u201cfield\u201d,\u201d[&#8220;,&#8221;]\u201c);&nbsp; $dtp2-&gt;LoadSource($innertext);&nbsp; $dsql2-&gt;SetQuery($sql);&nbsp; $dsql2-&gt;Execute();&nbsp; $line&nbsp;=&nbsp;$row;&nbsp; for($i=0;$i&nbsp;1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c <\/p>\n<dl>\n  \u201d;&nbsp; for($j=0;$j1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c <\/p>\n<dd>\n   \u201d;&nbsp; if($row=$dsql2-&gt;GetArray())&nbsp; {&nbsp; $row[&#8216;typelink&#8217;]&nbsp;=&nbsp;$row[&#8216;typeurl&#8217;]&nbsp;=&nbsp;GetOneTypeUrlA($row);&nbsp; if(is_array($dtp2-&gt;CTags))&nbsp; {&nbsp; foreach($dtp2-&gt;CTags&nbsp;as&nbsp;$tagid=&gt;$ctag){&nbsp; if(isset($row[$ctag-&gt;GetName()]))&nbsp; {&nbsp; $dtp2-&gt;Assign($tagid,$row[$ctag-&gt;GetName()]);&nbsp; }&nbsp; elseif&nbsp;(preg_match(\u2018\/^sonchannel[0-9]*$\/\u2019,$ctag-&gt;GetName()))&nbsp; {&nbsp; $dtp2-&gt;Assign($tagid,lib_channel_son($ctag,$row[&#8216;id&#8217;],$dsql3));&nbsp; }&nbsp; }&nbsp; }&nbsp; $likeType&nbsp;.=&nbsp;$dtp2-&gt;GetResult();&nbsp; }&nbsp; if($col&gt;1)&nbsp;$likeType&nbsp;.=&nbsp;\u201c\n <\/dd>\n<p> \u201d;&nbsp; }\/\/Loop&nbsp;Col&nbsp; if($col&gt;1)&nbsp; {&nbsp; $i&nbsp;+=&nbsp;$col&nbsp;\u2013&nbsp;1;&nbsp; $likeType&nbsp;.=&nbsp;\u201d&nbsp;\n<\/dl>\n<p> \u201d;&nbsp; }&nbsp; }\/\/Loop&nbsp;for&nbsp;$i&nbsp; reset($dsql3);&nbsp; $dsql2-&gt;FreeResult();&nbsp; return&nbsp;$likeType;&nbsp; }&nbsp; ?&gt; <\/p>\n<p>\u5728\u6a21\u677f\u91cc\u9762\u7528 [field:sonchannel0] [\/field:sonchannel0] \u8c03\u7528\uff0c\u8fd9\u4e2a\u662f\u7528\u6765\u53d6\u5b50\u680f\u76ee\u7528\u5f97\uff08\u4f7f\u7528\u3010sonchannel+\u6570\u5b57\u3011\u4f5c\u4e3a\u6807\u7b7e\u540d\u662f\u4e3a\u4e86\u9632\u6b62\u5d4c\u5957\u7684\u65f6\u5019\u65e0\u6cd5\u6b63\u786e\u89e3\u6790\u6807\u7b7e\uff09\uff0c\u8fd9\u4e2a\u7684\u4f5c\u7528\u5c31\u662f\u5f53\u4f60\u7684\u680f\u76ee\u6709\u5f88\u591a\u5b50\u680f\u76ee\u65e0\u9650\u5206\u7ea7\u7684\u65f6\u5019\u65b9\u4fbf\u4f60\u53d6\u5b50\u680f\u76ee\u7684\u3002\u5b9e\u4f8b\u4e00\u4e0b\uff1a&nbsp;<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre><\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n  &nbsp; {dede:channel&nbsp;type=&#8217;son&#8217;&nbsp;typeid=&#8217;16&#8217;}&nbsp; <\/p>\n<li> &nbsp;\n<ul>\n    &nbsp; [field:sonchannel0]&nbsp; <\/p>\n<li> &nbsp;\n<ul>\n      &nbsp; [field:sonchannel1]&nbsp; <\/p>\n<li> &nbsp;\n<ul>\n        &nbsp; [field:sonchannel2]&nbsp; <\/p>\n<li> &nbsp;\n<ul>\n          &nbsp; [field:sonchannel3]&nbsp; <\/p>\n<li><\/li>\n<p>&nbsp; [\/field:sonchannel3]&nbsp;\n        <\/ul>\n<p>&nbsp; <\/li>\n<p>&nbsp; [\/field:sonchannel2]&nbsp;\n      <\/ul>\n<p>&nbsp; <\/li>\n<p>&nbsp; [\/field:sonchannel1]&nbsp;\n    <\/ul>\n<p>&nbsp; <\/li>\n<p>&nbsp; [\/field:sonchannel0]&nbsp;\n  <\/ul>\n<p>&nbsp; <\/li>\n<p>&nbsp; {\/dede:channel}&nbsp;\n<\/ul>\n<p>\u4ee5\u4e0atypeid\u4e2d\u7684\u6570\u5b57\u6539\u6210\u4f60\u7684\u5927\u5206\u7c7b\u7684ID\u5373\u53ef\uff0c\u56e0\u4e3a\u5728DEDE\u5b98\u65b9\u8bba\u575b\u6ca1\u627e\u5230\uff0c\u6240\u4ee5\u8fd9\u91cc\u53d1\u4e0a\u6765\uff0c\u5e0c\u671b\u80fd\u65b9\u4fbf\u6709\u7528\u8005\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u672a\u514d\u51fa\u9519\u4fee\u6539\u6587\u4ef6\u524d\u8bf7\u505a\u597d\u5907\u4efd\uff0c\u4ee5\u4e0a\u4ee3\u7801\u53ef\u80fd\u6709\u4e9b\u5f15\u53f7\u53c8\u88ab\u81ea\u52a8\u8f6c\u6210\u5168\u89d2\u7684\u4e86\uff0c\u8bf7\u4fee\u6539\u6210\u534a\u89d2\u7684\uff0c\u6216\u8005\u53ef\u4ee5\u627e\u8427\u6db5\u7d22\u53d6\u6b64\u4fee\u6539\u540e\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDEDECMS\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e2d\u600e\u4e48\u83b7\u53d6\u65e0\u9650\u680f\u76ee\u5b50\u5206\u7c7b\uff1f \u505a\u4f01\u4e1a\u7f51\u7ad9\u5927\u90e8\u5206\u662f\u4f7f\u7528DEDECMS\uff0c\u4eca\u5929\u5728\u7ed9\u5ba2\u6237\u8bbe\u8ba1\u7f51\u7ad9\u65f6\uff0c\u628aDEDE\u81ea\u52a8\u5185\u94fe\u548cURL\u5168\u62fc\u683c\u5f0f\u641e\u5b9a\u540e\uff0c\u53c8\u9047\u5230\u4e86\u4e2a\u5c0f\u95ee\u9898\uff0c\u56e0\u4e3a\u4ea7\u54c1\u5206\u7c7b\u6700\u591a\u6709\u56db\u7ea7\uff0c\u5ba2\u6237\u8981\u6c42\u5728\u5de6\u4fa7\u6709\u4e2a\u5f39\u51fa\u5f0f\u83dc\u5355\u8c03\u7528\u5404\u7ea7\u5b50\u5206\u7c7b\u51fa\u6765\uff0c\u800cDEDECMS\u9ed8\u8ba4\u53ea\u80fd\u8c03\u7528\u4e00\u7ea7\u5206\u7c7b\u3002\u7ecf\u8fc7\u52aa\u529b\uff0c\u767e\u5ea6+GOOGLE+\u81ea\u5df1\u8111\u888b\uff0c\u7ec8\u4e8e\u641e\u5b9a\u4e86\u8fd9\u4e2a\u4e1c\u897f\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u53d1\u51fa\u6765\u7ed9\u6709\u9700\u8981\u7684\u670b\u53cb\u5206\u4eab\u3002&nbsp; \u63a8\u8350\u5b66\u4e60\uff1a \u9996\u5148\u8981\u628a\/include\/taglib\/channerl.lib.php \u6587\u4ef6\u7684\u4ee3\u7801\u4fee\u6539\u6210\u4ee5\u4e0b\u7684\uff1a \u4ee3\u7801\u5982\u4e0b: &lt;?php function lib_channel(&amp;$ctag,&amp;$refObj) { global $_sys_globals,$envs,$dsql; $attlist = \u201ctypeid|0,reid|0,row|100,col|1,type|son,currentstyle|\u201d; FillAttsDefault($ctag-&gt;CAttribute-&amp;gt;Items,$attlist);&nbsp; extract($ctag-&amp;gt;CAttribute-&amp;gt;Items,&nbsp;EXTR_SKIP);&nbsp; $innertext&nbsp;=&nbsp;$ctag-&amp;gt;GetInnerText();&nbsp; if(empty($typeid)&nbsp;&amp;amp;&amp;amp;&nbsp;$envs[&#8216;typeid&#8217;]!=0)&nbsp; {&nbsp; $typeid&nbsp;=&nbsp;$envs[&#8216;typeid&#8217;];&nbsp; $reid&nbsp;=&nbsp;$envs[&#8216;reid&#8217;];&nbsp; }else{&nbsp; $reid=0;&nbsp; }&nbsp; if($type==\u201d||$type==\u2019sun\u2019)&nbsp;$type=\u201dson\u201d;&nbsp; if($innertext==\u201d)&nbsp;$innertext&nbsp;=&nbsp;GetSysTemplets(\u201cchannel_list.htm\u201d);&nbsp; if($reid==0&nbsp;&amp;amp;&amp;amp;&nbsp;$typeid&amp;gt;0)&nbsp; {&nbsp; $dbrow&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(\u201cSelect&nbsp;reid&nbsp;From&nbsp;ying_arctype&nbsp;where&nbsp;id=\u2019$typeid\u2019&nbsp;\u201c);&nbsp; if(is_array($dbrow))&nbsp;$reid&nbsp;=&nbsp;$dbrow[&#8216;reid&#8217;];&nbsp; }&nbsp; $likeType&nbsp;=&nbsp;\u201d;&nbsp; if($type==\u2019top\u2019)&nbsp; {&nbsp; $sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp; From&nbsp;ying_arctype&nbsp;where&nbsp;reid=0&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp; }&nbsp; else&nbsp;if($type==\u201dson\u201d)&nbsp; {&nbsp; \/\/if($_sys_globals[&#8216;typeid&#8217;]&amp;gt;0)&nbsp;$typeid&nbsp;=&nbsp;$_sys_globals[&#8216;typeid&#8217;];&nbsp; if($typeid==0)&nbsp;{&nbsp; return&nbsp;\u201d;&nbsp; }&nbsp; $sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp; From&nbsp;ying_arctype&nbsp;where&nbsp;reid=\u2019$typeid\u2019&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp; }&nbsp; else&nbsp;if($type==\u201dself\u201d)&nbsp; {&nbsp; if($reid==0)&nbsp;{&nbsp; return&nbsp;\u201d;&nbsp; }&nbsp; $sql&nbsp;=&nbsp;\u201cSelect&nbsp;id,typename,typedir,isdefault,ispart,defaultname,namerule2,moresite,siteurl,sitepath,description&nbsp; From&nbsp;\u2018ying_arctype\u2019&nbsp;where&nbsp;reid=\u2019$reid\u2019&nbsp;And&nbsp;ishidden1&nbsp;order&nbsp;by&nbsp;sortrank&nbsp;asc&nbsp;limit&nbsp;0,$row\u201d;&nbsp; }&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-30468","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=30468"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30468\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}