{"id":30418,"date":"2024-11-25T08:13:24","date_gmt":"2024-11-25T00:13:24","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30418\/"},"modified":"2024-11-25T08:13:24","modified_gmt":"2024-11-25T00:13:24","slug":"dedecms%e8%87%aa%e5%ae%9a%e4%b9%89%e8%a1%a8%e5%8d%95%e6%8f%90%e4%ba%a4%e5%90%8e%e7%9a%84%e8%b7%b3%e8%bd%ac%e9%93%be%e6%8e%a5%e6%80%8e%e4%b9%88%e4%bf%ae%e6%94%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30418\/","title":{"rendered":"DEDECMS\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u600e\u4e48\u4fee\u6539"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5df83c806d09a827.jpg\" class=\"aligncenter\" title=\"DEDECMS\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u600e\u4e48\u4fee\u6539\u63d2\u56fe\" alt=\"DEDECMS\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u600e\u4e48\u4fee\u6539\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6587\u5b9e\u4f8b\u8bb2\u8ff0\u4e86\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u4fee\u6539\u65b9\u6cd5\u3002\u5206\u4eab\u7ed9\u5927\u5bb6\u4f9b\u5927\u5bb6\u53c2\u8003\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>dedecms\u81ea\u5b9a\u4e49\u8868\u5355,\u70b9\u51fb\u63d0\u4ea4\u540e,\u9ed8\u8ba4\u8df3\u8f6c\u5230\u9996\u9875,\u6211\u4eec\u6253\u5f00plus\/diy.php,\u91cc\u9762\u6709\u8fd9\u6837\u4e00\u6bb5\u4ee3\u7801:<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>if($dsql-&amp;gt;executenonequery($query))&nbsp;\n{&nbsp;\n$id&nbsp;=&nbsp;$dsql-&amp;gt;GetLastID();&nbsp;\nif($diy-&amp;gt;public&nbsp;==&nbsp;2)&nbsp;\n{&nbsp;\n\/\/diy.php?action=view&amp;amp;diyid={$diy-&amp;gt;diyid}&amp;amp;id=$id&nbsp;\n$goto&nbsp;=&nbsp;\"diy.php?action=list&amp;amp;diyid={$diy-&amp;gt;diyid}\";&nbsp;\n$bkmsg&nbsp;=&nbsp;'\u53d1\u5e03\u6210\u529f\uff0c\u73b0\u5728\u8f6c\u5411\u8868\u5355\u5217\u8868\u9875\u2026';&nbsp;\n}\nelse&nbsp;\n{&nbsp;\n$goto&nbsp;=&nbsp;!emptyempty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;'\/';&nbsp;\n$bkmsg&nbsp;=&nbsp;'\u53d1\u5e03\u6210\u529f\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u5904\u7406\u2026';&nbsp;\n}&nbsp;\nshowmsg($bkmsg,&nbsp;$goto);&nbsp;\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u627e\u5230\u8fd9\u4e00\u884c:<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>$goto&nbsp;=&nbsp;!empty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;'\/';<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5c31\u662f\u8df3\u8f6c\u5230\u9996\u9875\u7684\u610f\u601d\u4e86\u3002\u6211\u4eec\u4fee\u6539\u4e00\u4e0b,\u6bd4\u5982:<\/p>\n<pre>$goto&nbsp;=&nbsp;\"\/abc.htm\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5c31\u53ef\u4ee5\u8df3\u8f6c\u5230\u4f60\u60f3\u8981\u7684\u9875\u9762\u4e86,\u5982\u679c\u60f3\u8df3\u8f6c\u5230\u5f53\u524d\u9875\u9762\u7684\u8bdd:<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>if($dsql-&amp;gt;executenonequery($query))&nbsp;\n{&nbsp;\n$id&nbsp;=&nbsp;$dsql-&amp;gt;GetLastID();&nbsp;\nif($diy-&amp;gt;public&nbsp;==&nbsp;2)&nbsp;\n{&nbsp;\n\/\/diy.php?action=view&amp;amp;diyid={$diy-&amp;gt;diyid}&amp;amp;id=$id&nbsp;\n$goto&nbsp;=&nbsp;\"diy.php?action=list&amp;amp;diyid={$diy-&amp;gt;diyid}\";&nbsp;\n$bkmsg&nbsp;=&nbsp;'\u53d1\u5e03\u6210\u529f\uff0c\u73b0\u5728\u8f6c\u5411\u8868\u5355\u5217\u8868\u9875\u2026';&nbsp;\necho&nbsp;\"\";&nbsp;\n}&nbsp;\nelse&nbsp;\n{&nbsp;\n$goto&nbsp;=&nbsp;!emptyempty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;'\/';&nbsp;\n$bkmsg&nbsp;=&nbsp;'\u53d1\u5e03\u6210\u529f\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u5904\u7406\u2026';&nbsp;\n}&nbsp;\nshowmsg($bkmsg,&nbsp;$goto);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fDEDECMS\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u600e\u4e48\u4fee\u6539\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>\u672c\u6587\u5b9e\u4f8b\u8bb2\u8ff0\u4e86\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u4fee\u6539\u65b9\u6cd5\u3002\u5206\u4eab\u7ed9\u5927\u5bb6\u4f9b\u5927\u5bb6\u53c2\u8003\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u6cd5\u5982\u4e0b\uff1a \u63a8\u8350\u5b66\u4e60\uff1a dedecms\u81ea\u5b9a\u4e49\u8868\u5355,\u70b9\u51fb\u63d0\u4ea4\u540e,\u9ed8\u8ba4\u8df3\u8f6c\u5230\u9996\u9875,\u6211\u4eec\u6253\u5f00plus\/diy.php,\u91cc\u9762\u6709\u8fd9\u6837\u4e00\u6bb5\u4ee3\u7801: \u4ee3\u7801\u5982\u4e0b: if($dsql-&amp;gt;executenonequery($query))&nbsp; {&nbsp; $id&nbsp;=&nbsp;$dsql-&amp;gt;GetLastID();&nbsp; if($diy-&amp;gt;public&nbsp;==&nbsp;2)&nbsp; {&nbsp; \/\/diy.php?action=view&amp;amp;diyid={$diy-&amp;gt;diyid}&amp;amp;id=$id&nbsp; $goto&nbsp;=&nbsp;&#8220;diy.php?action=list&amp;amp;diyid={$diy-&amp;gt;diyid}&#8221;;&nbsp; $bkmsg&nbsp;=&nbsp;&#8216;\u53d1\u5e03\u6210\u529f\uff0c\u73b0\u5728\u8f6c\u5411\u8868\u5355\u5217\u8868\u9875\u2026&#8217;;&nbsp; } else&nbsp; {&nbsp; $goto&nbsp;=&nbsp;!emptyempty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;&#8216;\/&#8217;;&nbsp; $bkmsg&nbsp;=&nbsp;&#8216;\u53d1\u5e03\u6210\u529f\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u5904\u7406\u2026&#8217;;&nbsp; }&nbsp; showmsg($bkmsg,&nbsp;$goto);&nbsp; } \u767b\u5f55\u540e\u590d\u5236 \u627e\u5230\u8fd9\u4e00\u884c: \u4ee3\u7801\u5982\u4e0b: $goto&nbsp;=&nbsp;!empty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;&#8216;\/&#8217;; \u767b\u5f55\u540e\u590d\u5236 \u5c31\u662f\u8df3\u8f6c\u5230\u9996\u9875\u7684\u610f\u601d\u4e86\u3002\u6211\u4eec\u4fee\u6539\u4e00\u4e0b,\u6bd4\u5982: $goto&nbsp;=&nbsp;&#8220;\/abc.htm&#8221; \u767b\u5f55\u540e\u590d\u5236 \u5c31\u53ef\u4ee5\u8df3\u8f6c\u5230\u4f60\u60f3\u8981\u7684\u9875\u9762\u4e86,\u5982\u679c\u60f3\u8df3\u8f6c\u5230\u5f53\u524d\u9875\u9762\u7684\u8bdd: \u4ee3\u7801\u5982\u4e0b: if($dsql-&amp;gt;executenonequery($query))&nbsp; {&nbsp; $id&nbsp;=&nbsp;$dsql-&amp;gt;GetLastID();&nbsp; if($diy-&amp;gt;public&nbsp;==&nbsp;2)&nbsp; {&nbsp; \/\/diy.php?action=view&amp;amp;diyid={$diy-&amp;gt;diyid}&amp;amp;id=$id&nbsp; $goto&nbsp;=&nbsp;&#8220;diy.php?action=list&amp;amp;diyid={$diy-&amp;gt;diyid}&#8221;;&nbsp; $bkmsg&nbsp;=&nbsp;&#8216;\u53d1\u5e03\u6210\u529f\uff0c\u73b0\u5728\u8f6c\u5411\u8868\u5355\u5217\u8868\u9875\u2026&#8217;;&nbsp; echo&nbsp;&#8220;&#8221;;&nbsp; }&nbsp; else&nbsp; {&nbsp; $goto&nbsp;=&nbsp;!emptyempty($cfg_cmspath)&nbsp;?&nbsp;$cfg_cmspath&nbsp;:&nbsp;&#8216;\/&#8217;;&nbsp; $bkmsg&nbsp;=&nbsp;&#8216;\u53d1\u5e03\u6210\u529f\uff0c\u8bf7\u7b49\u5f85\u7ba1\u7406\u5458\u5904\u7406\u2026&#8217;;&nbsp; }&nbsp; showmsg($bkmsg,&nbsp;$goto); \u767b\u5f55\u540e\u590d\u5236 \u4ee5\u4e0a\u5c31\u662fDEDECMS\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u540e\u7684\u8df3\u8f6c\u94fe\u63a5\u600e\u4e48\u4fee\u6539\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-30418","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30418","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=30418"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30418\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}