{"id":31111,"date":"2024-11-25T11:36:43","date_gmt":"2024-11-25T03:36:43","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31111\/"},"modified":"2024-11-25T11:36:43","modified_gmt":"2024-11-25T03:36:43","slug":"phpcms-500%e5%86%85%e9%83%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%94%99%e8%af%af%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31111\/","title":{"rendered":"phpcms 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e1d163f9d8c7886.jpg\" class=\"aligncenter\" title=\"phpcms 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"phpcms 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p> 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\uff1fphpcms\u4e2d\u7684\u81ea\u5b9a\u8868\u5355\u8bbf\u95ee\u62a5\u670d\u52a1\u5668500\u9519\u8bef<\/p>\n<p>\u6700\u8fd1\u516c\u53f8\u4e13\u9898\u9700\u8981\u7528\u5230\u81ea\u5b9a\u4e49\u8868\u5355\uff0c\u4f46\u662f\u5728\u8bbf\u95ee\u548c\u63d0\u4ea4phpcms\u81ea\u5b9a\u4e49\u8868\u5355\u63d2\u4ef6\u65f6\u51fa\u73b0\u4e86\u670d\u52a1\u5668500\u9519\u8bef\u3002<\/p>\n<p>\u5728\u8fdb\u884c\u8c37\u6b4c\u4e00\u4e24\u5c0f\u65f6\u548c\u53bbPHPCMS\u8bba\u575b\u53d1\u5e16\u540e,\u90fd\u6ca1\u6709\u627e\u5230\u89e3\u51b3\u529e\u6cd5\u3002<\/p>\n<p>\u6c42\u4eba\u4e0d\u5982\u9760\u81ea\u5df1\uff0c\u9996\u5148\u60f3\u5230\u7684\u662f\u662f\u4e0d\u662fIIS7\u670d\u52a1\u5668\u7684\u914d\u7f6e\u95ee\u9898\uff0c\u4e8e\u662f\u6211\u5728\u672c\u5730\u7684Apache\u670d\u52a1\u5668\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u4f46\u662f\u53d1\u73b0\u4f9d\u65e7\u6709\u8fd9\u4e2a\u95ee\u9898\u3002\u82e6\u903c\u7684\u6211\u53ea\u80fd\u81ea\u5df1\u53bbphpcms\u7684\u8868\u5355\u6a21\u5757\u4e2d\u8fdb\u884c\u4e00\u6b65\u6b65\u8c03\u8bd5\uff0c\u7ecf\u8fc7\u8c03\u8bd5\u540e,\u6211\u53d1\u73b0\u9519\u8bef\u51fa\u73b0\u5728<\/p>\n<p>phpcmsmodules ormguideindex.php\u768465\u884c\u5de6\u53f3\u7684showmessage()\u65b9\u6cd5\u4e2d<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4e8e\u662f\u53c8\u53bbphpcmslibs unctionsglobal.func.php\u4e2d\u7684showmessage()\u65b9\u6cd5\u8fdb\u884c\u8c03\u8bd5<\/p>\n<p>\u7136\u540e\u53d1\u73b0bug\u51fa\u73b0\u5728\u5f15\u7528template()\u65b9\u6cd5\u7684\u65f6\u5019,\u56e0\u4e3atemplate()\u65b9\u6cd5\u4e3a\u516c\u5171\u65b9\u6cd5,\u4e0d\u80fd\u968f\u610f\u8fdb\u884c\u66f4\u6539\uff0c\u6211\u53c8\u8fd4\u56de\u5230phpcmsmodules ormguideindex.php\u768465\u884c\u5904\u5c06showmessage\uff08\uff09\u65b9\u6cd5\u6ce8\u6389\u6539\u6210<\/p>\n<pre>$url=APP_PATH;\necho&nbsp;\"&lt;script&gt; alert(&#039;\u63d0\u4ea4\u6210\u529f!&#039;); &lt;\/script&gt;\";&nbsp;\necho&nbsp;\"&lt;meta&gt;\";&nbsp;\n\/\/&nbsp;showmessage(L('thanks'),&nbsp;APP_PATH);<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u81f3\u6b64\u81ea\u5b9a\u4e49\u8868\u5355\u4e2d\u7684\u5404\u4e2a\u529f\u80fd\u90fd\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\u3002\u5982\u6709\u66f4\u597d\u7684\u89e3\u51b3\u529e\u6cd5\uff0c\u6b22\u8fce\u5927\u5bb6\u4ea4\u6d41\uff0c\u5171\u540c\u8fdb\u6b65\u3002<\/p>\n<p>PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\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>500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\uff1fphpcms\u4e2d\u7684\u81ea\u5b9a\u8868\u5355\u8bbf\u95ee\u62a5\u670d\u52a1\u5668500\u9519\u8bef \u6700\u8fd1\u516c\u53f8\u4e13\u9898\u9700\u8981\u7528\u5230\u81ea\u5b9a\u4e49\u8868\u5355\uff0c\u4f46\u662f\u5728\u8bbf\u95ee\u548c\u63d0\u4ea4phpcms\u81ea\u5b9a\u4e49\u8868\u5355\u63d2\u4ef6\u65f6\u51fa\u73b0\u4e86\u670d\u52a1\u5668500\u9519\u8bef\u3002 \u5728\u8fdb\u884c\u8c37\u6b4c\u4e00\u4e24\u5c0f\u65f6\u548c\u53bbPHPCMS\u8bba\u575b\u53d1\u5e16\u540e,\u90fd\u6ca1\u6709\u627e\u5230\u89e3\u51b3\u529e\u6cd5\u3002 \u6c42\u4eba\u4e0d\u5982\u9760\u81ea\u5df1\uff0c\u9996\u5148\u60f3\u5230\u7684\u662f\u662f\u4e0d\u662fIIS7\u670d\u52a1\u5668\u7684\u914d\u7f6e\u95ee\u9898\uff0c\u4e8e\u662f\u6211\u5728\u672c\u5730\u7684Apache\u670d\u52a1\u5668\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u4f46\u662f\u53d1\u73b0\u4f9d\u65e7\u6709\u8fd9\u4e2a\u95ee\u9898\u3002\u82e6\u903c\u7684\u6211\u53ea\u80fd\u81ea\u5df1\u53bbphpcms\u7684\u8868\u5355\u6a21\u5757\u4e2d\u8fdb\u884c\u4e00\u6b65\u6b65\u8c03\u8bd5\uff0c\u7ecf\u8fc7\u8c03\u8bd5\u540e,\u6211\u53d1\u73b0\u9519\u8bef\u51fa\u73b0\u5728 phpcmsmodules ormguideindex.php\u768465\u884c\u5de6\u53f3\u7684showmessage()\u65b9\u6cd5\u4e2d \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u4e8e\u662f\u53c8\u53bbphpcmslibs unctionsglobal.func.php\u4e2d\u7684showmessage()\u65b9\u6cd5\u8fdb\u884c\u8c03\u8bd5 \u7136\u540e\u53d1\u73b0bug\u51fa\u73b0\u5728\u5f15\u7528template()\u65b9\u6cd5\u7684\u65f6\u5019,\u56e0\u4e3atemplate()\u65b9\u6cd5\u4e3a\u516c\u5171\u65b9\u6cd5,\u4e0d\u80fd\u968f\u610f\u8fdb\u884c\u66f4\u6539\uff0c\u6211\u53c8\u8fd4\u56de\u5230phpcmsmodules ormguideindex.php\u768465\u884c\u5904\u5c06showmessage\uff08\uff09\u65b9\u6cd5\u6ce8\u6389\u6539\u6210 $url=APP_PATH; echo&nbsp;&#8220;&lt;script&gt; alert(&#039;\u63d0\u4ea4\u6210\u529f!&#039;); &lt;\/script&gt;&#8221;;&nbsp; echo&nbsp;&#8220;&lt;meta&gt;&#8221;;&nbsp; \/\/&nbsp;showmessage(L(&#8216;thanks&#8217;),&nbsp;APP_PATH); \u767b\u5f55\u540e\u590d\u5236 \u81f3\u6b64\u81ea\u5b9a\u4e49\u8868\u5355\u4e2d\u7684\u5404\u4e2a\u529f\u80fd\u90fd\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\u3002\u5982\u6709\u66f4\u597d\u7684\u89e3\u51b3\u529e\u6cd5\uff0c\u6b22\u8fce\u5927\u5bb6\u4ea4\u6d41\uff0c\u5171\u540c\u8fdb\u6b65\u3002 PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01 \u4ee5\u4e0a\u5c31\u662f 500\u5185\u90e8\u670d\u52a1\u5668\u9519\u8bef\u600e\u4e48\u529e\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-31111","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31111","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=31111"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31111\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}