{"id":30885,"date":"2024-11-25T08:59:15","date_gmt":"2024-11-25T00:59:15","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30885\/"},"modified":"2024-11-25T08:59:15","modified_gmt":"2024-11-25T00:59:15","slug":"%e7%bb%87%e6%a2%a6%e6%90%9c%e7%b4%a2%e7%bb%93%e6%9e%9c%e9%a1%b5%e6%80%8e%e4%b9%88%e6%8c%89%e9%a2%91%e9%81%93%e6%a8%a1%e5%9e%8b%e6%98%be%e7%a4%ba%e4%b8%8d%e5%90%8c%e6%a8%a1%e6%9d%bf","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30885\/","title":{"rendered":"\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e128a100e975961.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f\u63d2\u56fe\" alt=\"\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f\uff1f<\/strong><\/p>\n<p>\u7ec7\u68a6DEDECMS\u641c\u7d22\u7ed3\u679c\u9875\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u601d\u8def\uff1a \u7ed9\u641c\u7d22\u6846\u52a0\u4e00\u4e2a\u5224\u5b9a\uff0c\u4f8b\u5982\u641c\u7d22\u8f6f\u4ef6\u6a21\u578b\u7684\u65f6\u5019\u663e\u793a\u4e00\u4e2a\u6a21\u677f\uff0c\u641c\u7d22\u6587\u7ae0\u6a21\u578b\u7684\u65f6\u5019\u663e\u793a\u4e00\u4e2a\u6a21\u677f\u3002<\/p>\n<p>1.\u5728head\u533a\u57df\u52a0\u5165<\/p>\n<pre>&lt;script&gt; \n&lt;!-- \n function check(){ \n  if(document.formsearch.channeltype.value==\"3\") \n  document.formsearch.action=\"{dede:field name=&#039;phpurl&#039;\/}\/search_images.php\" \n  else \n  document.formsearch.action=\"{dede:field name=&#039;phpurl&#039;\/}\/search.php\" \n } \n--&gt; \n&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>2.\u66f4\u6539\u641c\u7d22\u4ee3\u7801<\/p>\n<pre><\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;\u65b0\u95fb&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8f6f\u4ef6&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u641c\u7d22&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; <\/p>\n<p>\u5176\u4e2d\u91cd\u70b9\u5c31\u662f<\/p>\n<pre>&lt;select&gt;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;\u65b0\u95fb&lt;\/option&gt;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;\u8f6f\u4ef6&lt;\/option&gt;&nbsp;\n&lt;\/select&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u91cc\u8bbe\u7f6e\u7684\u6309\u6e38\u620f\u6a21\u578b\u641c\u7d22&nbsp; 1\u662f\u6587\u7ae0\u6a21\u578b 3\u662f\u8f6f\u4ef6\u6a21\u578b<\/p>\n<p>3.\u590d\u5236serach.php \u66f4\u540d\u4e3a search_images.php<\/p>\n<p>4.\u6253\u5f00 search_images.php&nbsp;<\/p>\n<pre>require_once(DEDEINC.\"\/arc.searchview.class.php\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u66f4\u6539\u4e3a<\/p>\n<pre>require_once(DEDEINC.\"\/arc.searchimg.class.php\");<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>5.\u590d\u5236 arc.searchview.class.php \u66f4\u540d\u4e3a arc.searchimg.class.php<\/p>\n<p>6.\u6253\u5f00 arc.searchimg.class.php<\/p>\n<p>\u4fee\u6539<\/p>\n<pre>$tempfile&nbsp;=&nbsp;$GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'].\"\/\".$GLOBALS['cfg_df_style'].\"\/search.htm\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e3a<\/p>\n<pre>$tempfile&nbsp;=&nbsp;$GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'].\"\/\".$GLOBALS['cfg_df_style'].\"\/search_images.htm\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6838\u5fc3\u7684\u4fee\u6539\u5df2\u7ecf\u7ed3\u675f\u4e86\uff0c\u5269\u4e0b\u7684\u5c31\u662f\u5728search_images.htm\u8fd9\u4e2a\u6a21\u677f\u91cc\u81ea\u7531\u53d1\u6325\u4e86\u3002\u540c\u7406\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u6309\u680f\u76eetype\u641c\u7d22\u663e\u793a\u4e0d\u540c\u98ce\u683c\u7684\u7ed3\u679c\u9875\u5f97\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f\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>\u7ec7\u68a6\u641c\u7d22\u7ed3\u679c\u9875\u600e\u4e48\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f\uff1f \u7ec7\u68a6DEDECMS\u641c\u7d22\u7ed3\u679c\u9875\u6309\u9891\u9053\u6a21\u578b\u663e\u793a\u4e0d\u540c\u6a21\u677f \u63a8\u8350\u5b66\u4e60\uff1a \u601d\u8def\uff1a \u7ed9\u641c\u7d22\u6846\u52a0\u4e00\u4e2a\u5224\u5b9a\uff0c\u4f8b\u5982\u641c\u7d22\u8f6f\u4ef6\u6a21\u578b\u7684\u65f6\u5019\u663e\u793a\u4e00\u4e2a\u6a21\u677f\uff0c\u641c\u7d22\u6587\u7ae0\u6a21\u578b\u7684\u65f6\u5019\u663e\u793a\u4e00\u4e2a\u6a21\u677f\u3002 1.\u5728head\u533a\u57df\u52a0\u5165 &lt;script&gt; &lt;!&#8211; function check(){ if(document.formsearch.channeltype.value==&#8221;3&#8243;) document.formsearch.action=&#8221;{dede:field name=&#039;phpurl&#039;\/}\/search_images.php&#8221; else document.formsearch.action=&#8221;{dede:field name=&#039;phpurl&#039;\/}\/search.php&#8221; } &#8211;&gt; &lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 2.\u66f4\u6539\u641c\u7d22\u4ee3\u7801 \u767b\u5f55\u540e\u590d\u5236 &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;\u65b0\u95fb&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u8f6f\u4ef6&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u641c\u7d22&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; \u5176\u4e2d\u91cd\u70b9\u5c31\u662f &lt;select&gt;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;\u65b0\u95fb&lt;\/option&gt;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;\u8f6f\u4ef6&lt;\/option&gt;&nbsp; &lt;\/select&gt; \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u91cc\u8bbe\u7f6e\u7684\u6309\u6e38\u620f\u6a21\u578b\u641c\u7d22&nbsp; 1\u662f\u6587\u7ae0\u6a21\u578b 3\u662f\u8f6f\u4ef6\u6a21\u578b 3.\u590d\u5236serach.php \u66f4\u540d\u4e3a search_images.php 4.\u6253\u5f00 search_images.php&nbsp; require_once(DEDEINC.&#8221;\/arc.searchview.class.php&#8221;); \u767b\u5f55\u540e\u590d\u5236 [&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-30885","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30885","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=30885"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30885\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30885"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30885"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}