{"id":29985,"date":"2024-11-25T09:36:58","date_gmt":"2024-11-25T01:36:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29985\/"},"modified":"2024-11-25T09:36:58","modified_gmt":"2024-11-25T01:36:58","slug":"%e7%bb%87%e6%a2%a6%e9%a6%96%e9%a1%b5index-html%e5%a6%82%e4%bd%95%e5%8e%bb%e6%8e%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29985\/","title":{"rendered":"\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5de483facec73616.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\u63d2\u56fe\" alt=\"\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\uff1f<\/strong><\/p>\n<p>\u5f88\u591a\u670b\u53cb\u5728\u4f7f\u7528\u7ec7\u68a6\u5efa\u7ad9\u6216\u8005\u4eff\u7ad9\u65f6\u90fd\u4f1a\u53d1\u73b0\uff0c\u5728\u8bbf\u95ee\u9996\u9875\u65f6\u540e\u9762\u90fd\u4f1a\u6dfb\u52a0\u4e0aindex.html<\/p>\n<p>\u73b0\u5728\u6211\u5c31\u628a\u8fd9\u89e3\u51b3\u529e\u6cd5\u5206\u4eab\u51fa\u6765\uff0c\u5927\u5bb6\u53ef\u4ee5\u8bd5\u4e00\u8bd5\uff0c\u770b\u6709\u6ca1\u6709\u7528<\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a<\/p>\n<p>\u5728www\/ \u8ddf\u76ee\u5f55\u4e0b\u6709\u4e2a\u81ea\u5e26\u7684index.php\u6587\u4ef6<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u539f\u4ee3\u7801<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>\/\/\u81ea\u52a8\u751f\u6210HTML\u7248\nif(isset($_GET['upcache']))\n{\nrequire_once&nbsp;(dirname(__FILE__)&nbsp;.&nbsp;\"\/include\/common.inc.php\");\nrequire_once&nbsp;DEDEINC.\"\/arc.partview.class.php\";\n$GLOBALS['_arclistEnv']&nbsp;=&nbsp;'index';\n$row&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(\"Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`\");\n$row['templet']&nbsp;=&nbsp;MfTemplet($row['templet']);\n$pv&nbsp;=&nbsp;new&nbsp;PartView();\n$pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;\"\/\"&nbsp;.&nbsp;$row['templet']);\n$pv-&amp;gt;SaveToHtml(dirname(__FILE__).'\/index.html');\ninclude(dirname(__FILE__).'\/index.html');\nexit();\n}\nelse\n{\nheader('HTTP\/1.1&nbsp;301&nbsp;Moved&nbsp;Permanently');\nheader('Location:index.html');\n}\n?&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u628a\u4e0a\u9762\u7684\u4ee3\u7801\u66ff\u6362\u4e3a<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>require_once&nbsp;(dirname(__FILE__)&nbsp;.&nbsp;\"\/include\/common.inc.php\");\nrequire_once&nbsp;DEDEINC.\"\/arc.partview.class.php\";\n$GLOBALS['_arclistEnv']&nbsp;=&nbsp;'index';\n$row&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(\"Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`\");\n$row['templet']&nbsp;=&nbsp;MfTemplet($row['templet']);\n$pv&nbsp;=&nbsp;new&nbsp;PartView();\n$pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;\"\/\"&nbsp;.&nbsp;$row['templet']);\n$pv-&amp;gt;Display();\n?&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\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\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\uff1f \u5f88\u591a\u670b\u53cb\u5728\u4f7f\u7528\u7ec7\u68a6\u5efa\u7ad9\u6216\u8005\u4eff\u7ad9\u65f6\u90fd\u4f1a\u53d1\u73b0\uff0c\u5728\u8bbf\u95ee\u9996\u9875\u65f6\u540e\u9762\u90fd\u4f1a\u6dfb\u52a0\u4e0aindex.html \u73b0\u5728\u6211\u5c31\u628a\u8fd9\u89e3\u51b3\u529e\u6cd5\u5206\u4eab\u51fa\u6765\uff0c\u5927\u5bb6\u53ef\u4ee5\u8bd5\u4e00\u8bd5\uff0c\u770b\u6709\u6ca1\u6709\u7528 \u63a8\u8350\u5b66\u4e60\uff1a \u5728www\/ \u8ddf\u76ee\u5f55\u4e0b\u6709\u4e2a\u81ea\u5e26\u7684index.php\u6587\u4ef6 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u539f\u4ee3\u7801 \u4ee3\u7801\u5982\u4e0b: \/\/\u81ea\u52a8\u751f\u6210HTML\u7248 if(isset($_GET[&#8216;upcache&#8217;])) { require_once&nbsp;(dirname(__FILE__)&nbsp;.&nbsp;&#8220;\/include\/common.inc.php&#8221;); require_once&nbsp;DEDEINC.&#8221;\/arc.partview.class.php&#8221;; $GLOBALS[&#8216;_arclistEnv&#8217;]&nbsp;=&nbsp;&#8216;index&#8217;; $row&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(&#8220;Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`&#8221;); $row[&#8216;templet&#8217;]&nbsp;=&nbsp;MfTemplet($row[&#8216;templet&#8217;]); $pv&nbsp;=&nbsp;new&nbsp;PartView(); $pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;&#8220;\/&#8221;&nbsp;.&nbsp;$row[&#8216;templet&#8217;]); $pv-&amp;gt;SaveToHtml(dirname(__FILE__).&#8217;\/index.html&#8217;); include(dirname(__FILE__).&#8217;\/index.html&#8217;); exit(); } else { header(&#8216;HTTP\/1.1&nbsp;301&nbsp;Moved&nbsp;Permanently&#8217;); header(&#8216;Location:index.html&#8217;); } ?&amp;gt; \u767b\u5f55\u540e\u590d\u5236 \u628a\u4e0a\u9762\u7684\u4ee3\u7801\u66ff\u6362\u4e3a \u4ee3\u7801\u5982\u4e0b: require_once&nbsp;(dirname(__FILE__)&nbsp;.&nbsp;&#8220;\/include\/common.inc.php&#8221;); require_once&nbsp;DEDEINC.&#8221;\/arc.partview.class.php&#8221;; $GLOBALS[&#8216;_arclistEnv&#8217;]&nbsp;=&nbsp;&#8216;index&#8217;; $row&nbsp;=&nbsp;$dsql-&amp;gt;GetOne(&#8220;Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`&#8221;); $row[&#8216;templet&#8217;]&nbsp;=&nbsp;MfTemplet($row[&#8216;templet&#8217;]); $pv&nbsp;=&nbsp;new&nbsp;PartView(); $pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;&#8220;\/&#8221;&nbsp;.&nbsp;$row[&#8216;templet&#8217;]); $pv-&amp;gt;Display(); ?&amp;gt; \u767b\u5f55\u540e\u590d\u5236 \u7136\u540e\u5c31\u53ef\u4ee5\u4e86\u3002 \u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u9996\u9875index.html\u5982\u4f55\u53bb\u6389\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-29985","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29985","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=29985"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29985\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}