{"id":4725,"date":"2021-09-13T11:02:57","date_gmt":"2021-09-13T03:02:57","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=4725"},"modified":"2021-09-13T11:02:57","modified_gmt":"2021-09-13T03:02:57","slug":"%e7%bb%87%e6%a2%a6%e7%94%a8%e7%81%ab%e8%bd%a6%e5%a4%b4%e9%87%87%e9%9b%86%e5%86%85%e5%ae%b9%e5%8f%91%e5%b8%83%e5%90%8e%e8%87%aa%e5%8a%a8%e7%94%9f%e6%88%90html%e9%9d%99%e6%80%81%e4%b8%bb%e9%a1%b5","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/4725.html","title":{"rendered":"\u7ec7\u68a6\u7528\u706b\u8f66\u5934\u91c7\u96c6\u5185\u5bb9\u53d1\u5e03\u540e\u81ea\u52a8\u751f\u6210html\u9759\u6001\u4e3b\u9875"},"content":{"rendered":"

\u7ec7\u68a6\u7528\u706b\u8f66\u5934\u91c7\u96c6\u5185\u5bb9\u53d1\u5e03\u540e\u81ea\u52a8\u66f4\u65b0\u4e3b\u9875\u7684\u65b9\u6cd5\uff1a\u6253\u5f00\/dede\/inc\/inc_archives_functions.php\u00a0 \u00a0\u5728\u6700\u5e95\u90e8\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801\u5373\u53ef\u3002\u8fd9\u6837\uff0c\u6587\u7ae0\u91c7\u96c6\u53d1\u5e03\u540e\uff0c\u5b83\u4f1a\u81ea\u52a8\u751f\u6210html\u9759\u6001\u9996\u9875\uff01<\/p>\n

\/*\u706b\u8f66\u5934\u91c7\u96c6\u81ea\u52a8\u66f4\u65b0\u4e3b\u9875*\/\r\nfunction MakeIndex()\r\n{\r\nglobal $dsql,$cfg_basedir,$cfg_templets_dir,$cfg_df_style;\r\nrequire_once(DEDEINC.'\/arc.partview.class.php');\r\n$envs = $_sys_globals = array();\r\n$envs['aid'] = 0;\r\n$pv = new PartView();\r\n$row = $pv->dsql->GetOne('SELECT * FROM `#@__homepageset`');\r\n$templet = str_replace(\"{style}\", $cfg_df_style, $row['templet']);\r\n$homeFile = dirname(__FILE__).'\/..\/'.$row['position'];\r\n$homeFile = str_replace(\"\/\/\", \"\/\", str_replace(\"\\\\\", \"\/\", $homeFile));\r\n$fp = fopen($homeFile, 'w') or die(\"\u65e0\u6cd5\u66f4\u65b0\u7f51\u7ad9\u4e3b\u9875\u5230\uff1a$homeFile \u4f4d\u7f6e\");\r\nfclose($fp);\r\n$tpl = $cfg_basedir.$cfg_templets_dir.'\/'.$templet;\r\nif(!file_exists($tpl))\r\n{\r\n$tpl = $cfg_basedir.$cfg_templets_dir.'\/default\/index.htm';\r\nif(!file_exists($tpl)) exit(\"\u65e0\u6cd5\u627e\u5230\u4e3b\u9875\u6a21\u677f\uff1a$tpl \");\r\n}\r\n$GLOBALS['_arclistEnv'] = 'index';\r\n$pv->SetTemplet($tpl);\r\n$pv->SaveToHtml($homeFile);\r\n$pv->Close();\r\n}\r\n<\/code><\/pre>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u7ec7\u68a6\u7528\u706b\u8f66\u5934\u91c7\u96c6\u5185\u5bb9\u53d1\u5e03\u540e\u81ea\u52a8\u66f4\u65b0\u4e3b\u9875\u7684\u65b9\u6cd5\uff1a\u6253\u5f00\/dede\/inc\/inc_archives_functio […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1065,1492,180,1491],"class_list":["post-4725","post","type-post","status-publish","format-standard","hentry","category-web","tag-1065","tag-html","tag-180","tag-1491"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=4725"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/4725\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=4725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=4725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=4725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}