{"id":30202,"date":"2024-11-25T08:50:24","date_gmt":"2024-11-25T00:50:24","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30202\/"},"modified":"2024-11-25T08:50:24","modified_gmt":"2024-11-25T00:50:24","slug":"%e5%b8%9d%e5%9b%bdcms%e6%80%8e%e4%b9%88%e8%87%aa%e5%8a%a8%e5%88%b7%e6%96%b0%e9%a6%96%e9%a1%b5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30202\/","title":{"rendered":"\u5e1d\u56fdCMS\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5df0423791a22384.jpg\" class=\"aligncenter\" title=\"\u5e1d\u56fdCMS\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875\u63d2\u56fe\" alt=\"\u5e1d\u56fdCMS\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong>\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875\uff1f<\/strong><\/p>\n<p>\u672c\u6587\u5b9e\u4f8b\u8bb2\u8ff0\u4e86\u5e1d\u56fdCMS\u81ea\u52a8\u5237\u65b0\u9996\u9875\u7684\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\u300a\u300b<\/p>\n<p>\u5728\u9996\u9875\u6a21\u677f\u4e2d\u52a0\u5165\u4e0b\u9762\u4ee3\u7801,\u5c3d\u91cf\u653e\u5728\u5e95\u90e8.<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>&lt;script&gt;&lt;\/script&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728 \/e\/ \u5efa\u7acb\u6587\u4ef6\u5939 htmlindex \u5e76\u8bbe\u7f6e 777\u6743\u9650,\u5c06\u4e0b\u9762\u4ee3\u7801\u4fdd\u5b58\u5728 \/e\/htmlindex\/index_html.php,\u4fee\u6539\u5237\u65b0\u65f6\u95f4,\u5c06\u6587\u4ef6\u4e2d1200\u6539\u4e3a\u4f60\u60f3\u8981\u7684\u65f6\u95f4,\u5355\u4f4d\u4e3a\u79d2.<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b:<\/p>\n<pre>&lt;?php  \nrequire(\"..\/class\/connect.php\"); \ninclude(\"..\/class\/db_sql.php\"); \ninclude(\"..\/class\/config.php\"); \ninclude(\"..\/class\/functions.php\"); \ninclude(\"..\/class\/t_functions.php\"); \nrequire LoadLang(\"pub\/fun.php\"); \nrequire(\"..\/data\/dbcache\/class.php\"); \nrequire(\"..\/data\/dbcache\/MemberLevel.php\"); \ninclude(\"..\/class\/chtmlfun.php\"); \n$link=db_connect(); \n$empire=new mysqlquery(); \n$filepath_s=\"indexhtmlhc.txt\"; \n$time=time(); \n@$filemtime=(int)filemtime($filepath_s)+1200; \n\/* \n\u51fd\u6570\u89e3\u91ca \nfile_exists() \u51fd\u6570\u68c0\u67e5\u6587\u4ef6\u6216\u76ee\u5f55\u662f\u5426\u5b58\u5728\u3002 \nmkdir() \u51fd\u6570\u521b\u5efa\u76ee\u5f55\u3002 \ntime() \u51fd\u6570\u8fd4\u56de\u5f53\u524d\u65f6\u95f4\u7684 Unix \u65f6\u95f4\u6233\u3002 \nfilemtime() \u51fd\u6570\u8fd4\u56de\u6587\u4ef6\u5185\u5bb9\u4e0a\u6b21\u7684\u4fee\u6539\u65f6\u95f4\u3002 \n*\/ \nif (!file_exists($filepath_s)){ \nfopen($filepath_s, &#039;w&#039;); \n@chmod($filepath_s, 0777); \nReIndex(); \n}elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)&lt;time()){\nfopen($filepath_s, &#039;w&#039;); \n@chmod($filepath_s, 0777); \nReIndex(); \n}else{ \n\/\/ do nothing \n} \ndb_close(); \n$empire=null; \n?&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5e1d\u56fdCMS\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875\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>\u600e\u4e48\u81ea\u52a8\u5237\u65b0\u9996\u9875\uff1f \u672c\u6587\u5b9e\u4f8b\u8bb2\u8ff0\u4e86\u5e1d\u56fdCMS\u81ea\u52a8\u5237\u65b0\u9996\u9875\u7684\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\u300a\u300b \u5728\u9996\u9875\u6a21\u677f\u4e2d\u52a0\u5165\u4e0b\u9762\u4ee3\u7801,\u5c3d\u91cf\u653e\u5728\u5e95\u90e8. \u4ee3\u7801\u5982\u4e0b: &lt;script&gt;&lt;\/script&gt; \u767b\u5f55\u540e\u590d\u5236 \u5728 \/e\/ \u5efa\u7acb\u6587\u4ef6\u5939 htmlindex \u5e76\u8bbe\u7f6e 777\u6743\u9650,\u5c06\u4e0b\u9762\u4ee3\u7801\u4fdd\u5b58\u5728 \/e\/htmlindex\/index_html.php,\u4fee\u6539\u5237\u65b0\u65f6\u95f4,\u5c06\u6587\u4ef6\u4e2d1200\u6539\u4e3a\u4f60\u60f3\u8981\u7684\u65f6\u95f4,\u5355\u4f4d\u4e3a\u79d2. \u4ee3\u7801\u5982\u4e0b: &lt;?php require(&#8220;..\/class\/connect.php&#8221;); include(&#8220;..\/class\/db_sql.php&#8221;); include(&#8220;..\/class\/config.php&#8221;); include(&#8220;..\/class\/functions.php&#8221;); include(&#8220;..\/class\/t_functions.php&#8221;); require LoadLang(&#8220;pub\/fun.php&#8221;); require(&#8220;..\/data\/dbcache\/class.php&#8221;); require(&#8220;..\/data\/dbcache\/MemberLevel.php&#8221;); include(&#8220;..\/class\/chtmlfun.php&#8221;); $link=db_connect(); $empire=new mysqlquery(); $filepath_s=&#8221;indexhtmlhc.txt&#8221;; $time=time(); @$filemtime=(int)filemtime($filepath_s)+1200; \/* \u51fd\u6570\u89e3\u91ca file_exists() \u51fd\u6570\u68c0\u67e5\u6587\u4ef6\u6216\u76ee\u5f55\u662f\u5426\u5b58\u5728\u3002 mkdir() \u51fd\u6570\u521b\u5efa\u76ee\u5f55\u3002 time() \u51fd\u6570\u8fd4\u56de\u5f53\u524d\u65f6\u95f4\u7684 Unix \u65f6\u95f4\u6233\u3002 filemtime() \u51fd\u6570\u8fd4\u56de\u6587\u4ef6\u5185\u5bb9\u4e0a\u6b21\u7684\u4fee\u6539\u65f6\u95f4\u3002 *\/ if (!file_exists($filepath_s)){ fopen($filepath_s, &#039;w&#039;); @chmod($filepath_s, 0777); ReIndex(); }elseif(!file_exists($filepath_s) || (filemtime($filepath_s)+1200)&lt;time()){ [&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-30202","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30202","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=30202"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30202\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}