{"id":31137,"date":"2024-11-25T08:01:33","date_gmt":"2024-11-25T00:01:33","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31137\/"},"modified":"2024-11-25T08:01:33","modified_gmt":"2024-11-25T00:01:33","slug":"phpcms-hash%e9%aa%8c%e8%af%81%e5%a4%b1%e8%b4%a5%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31137\/","title":{"rendered":"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e"},"content":{"rendered":"<p style=\"text-align: center\"><strong><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5e1e6754573e9439.jpg\" class=\"aligncenter\" title=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/strong><\/p>\n<p><strong> hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\uff1f<\/strong><\/p>\n<p><strong>\u89e3\u51b3 phpcms \u4fdd\u5b58\u6587\u7ae0\u51fa\u73b0 hash \u6570\u636e\u9a8c\u8bc1\u5931\u8d25\u7684\u4e00\u79cd\u65b9\u6cd5<\/strong><\/p>\n<p>\u6bcf\u5929\u8bb0\u5f55\u4e00\u4e0b\u5de5\u4f5c\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff0c\u4e0d\u7ba1\u662f\u5927\u95ee\u9898\u8fd8\u662f\u5c0f\u95ee\u9898\uff0c\u5bf9\u4e8e\u81ea\u5df1\u6216\u8005\u4ed6\u4eba\u4e5f\u8bb8\u4f1a\u6709\u5f88\u5927\u7684\u5e2e\u52a9\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u5199\u8fd9\u79cd\u6587\u7ae0\uff0c\u53ef\u80fd\u5199\u7684\u6709\u70b9\u4e71\uff0c\u5927\u5bb6\u89c1\u8c05\u54c8\uff01<\/p>\n<p>\u4eca\u5929\u5c31\u8bf4\u4e00\u4e0b \u5728\u4f7f\u7528PHPCMS\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u5427\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4eca\u5929\u6709\u4e2a\u7f16\u8f91\u53cd\u5e94 \u4fee\u6539\u4e2a\u522b\u6587\u7ae0\u7684\u65f6\u5019 \u4fdd\u5b58\u5931\u8d25 \uff0c\u63d0\u793ahash\u6570\u636e\u9a8c\u8bc1\u5931\u8d25\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/475\/318\/576\/1579050722623698.png\" class=\"aligncenter\" title=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe1\" alt=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe1\" \/><\/p>\n<p>\u6709\u4e9b\u4eba\u8bf4<\/p>\n<p>\u627e\u5230phpcmsmodulesttachment emplatesddress.tpl.php \u7b2c9\u884c \uff0c\u66ff\u6362\u5982\u4e0b\uff1a<\/p>\n<pre>\u03bfnsubmit=\u201creturn&nbsp;confirm(\u2019&lt;?php  echo L(&#039;form_submit_confirm&#039;);?&gt;\u2019)\u201d&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4e5f\u6709\u7684\u4eba\u8bf4\u66f4\u6362\u6d4f\u89c8\u5668 \uff0c\u6709\u4e0d\u540c\u7684\u8bf4\u6cd5\uff0c\u4f46\u662f\u6211\u5404\u79cd\u90fd\u8bd5\u8fc7\u4e86\uff0c\u8fd8\u662f\u89e3\u51b3\u4e0d\u4e86\u3002<\/p>\n<p>\u4e0d\u8fc7\u6211\u6362\u4e86\u4e00\u79cd\u65b9\u6cd5\u5b8c\u7f8e\u89e3\u51b3\u4e86\u3002\u4e0b\u9762\u8be6\u7ec6\u8bf4\u4e00\u4e0b\u8fc7\u7a0b\uff1a<\/p>\n<p>\u5148\u58f0\u660e\u4e00\u4e0b \u8fd9\u91cc\u4f7f\u7528\u7684\u662fLinux\u670d\u52a1\u5668<\/p>\n<p>\u627e\u5230 php.ini \u6587\u4ef6 \u6211\u7684\u662f\u653e\u5728(\/usr\/local\/php\/etc)\u76ee\u5f55\u4e0b\uff0c<\/p>\n<p>\u627e\u5230 max_input_vars \u53c2\u6570\uff0c\u770b\u4e00\u4e0b max_input_vars \u53c2\u6570\u524d\u9762\u662f\u5426\u6709\u5206\u53f7\uff08\uff1b\uff09\uff0c\u5982\u679c\u6709\uff0c\u628a\u5206\u53f7\u53bb\u6389\uff0c\u539f\u59cb\u7684\u53c2\u6570 max_input_vars \u7684\u503c\u5e94\u8be5\u662f1000\uff0c\u6539\u6210 10000 \u6216\u8005100000\uff0c\u610f\u601d\u5c31\u662f\u628a max_input_vars \u6539\u7684\u6bd4\u4ee5\u524d\u5927\u4e00\u70b9 \u7136\u540e\u4fdd\u5b58\u3002\u3002\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/528\/237\/701\/1579050733934232.png\" class=\"aligncenter\" title=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe2\" alt=\"phpcms hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\u63d2\u56fe2\" \/><\/p>\n<p>\u91cd\u542f php \u547d\u4ee4\uff08php service php-fpm restart\uff09 \u6216\u8005 \u91cd\u542f apache \u670d\u52a1\uff08service httpd restart\uff09 \u3002<\/p>\n<p>\u5230\u540e\u53f0\u5237\u65b0\u9875\u9762 \uff0c \u53ef\u4ee5\u6b63\u5e38\u4fdd\u5b58\u4e86\u3002<\/p>\n<p>\u8fd9\u662f\u672c\u4eba\u5de5\u4f5c\u4e2d\u771f\u5b9e\u9047\u5230\u7684\u95ee\u9898\u548c\u89e3\u51b3\u529e\u6cd5\uff0c\u5982\u679c\u6709\u66f4\u597d\u7684\u529e\u6cd5\uff0c\u8bf7\u5206\u4eab\u51fa\u6765\uff0c\u8ba9\u5927\u5bb6\u5b66\u4e60\u5b66\u4e60\u4e00\u4e0b\u3002\u8c22\u8c22\uff01<\/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 hash\u9a8c\u8bc1\u5931\u8d25\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>hash\u9a8c\u8bc1\u5931\u8d25\u600e\u4e48\u529e\uff1f \u89e3\u51b3 phpcms \u4fdd\u5b58\u6587\u7ae0\u51fa\u73b0 hash \u6570\u636e\u9a8c\u8bc1\u5931\u8d25\u7684\u4e00\u79cd\u65b9\u6cd5 \u6bcf\u5929\u8bb0\u5f55\u4e00\u4e0b\u5de5\u4f5c\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff0c\u4e0d\u7ba1\u662f\u5927\u95ee\u9898\u8fd8\u662f\u5c0f\u95ee\u9898\uff0c\u5bf9\u4e8e\u81ea\u5df1\u6216\u8005\u4ed6\u4eba\u4e5f\u8bb8\u4f1a\u6709\u5f88\u5927\u7684\u5e2e\u52a9\u3002 \u7b2c\u4e00\u6b21\u5199\u8fd9\u79cd\u6587\u7ae0\uff0c\u53ef\u80fd\u5199\u7684\u6709\u70b9\u4e71\uff0c\u5927\u5bb6\u89c1\u8c05\u54c8\uff01 \u4eca\u5929\u5c31\u8bf4\u4e00\u4e0b \u5728\u4f7f\u7528PHPCMS\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e2a\u95ee\u9898\u5427\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u4eca\u5929\u6709\u4e2a\u7f16\u8f91\u53cd\u5e94 \u4fee\u6539\u4e2a\u522b\u6587\u7ae0\u7684\u65f6\u5019 \u4fdd\u5b58\u5931\u8d25 \uff0c\u63d0\u793ahash\u6570\u636e\u9a8c\u8bc1\u5931\u8d25\u3002 \u6709\u4e9b\u4eba\u8bf4 \u627e\u5230phpcmsmodulesttachment emplatesddress.tpl.php \u7b2c9\u884c \uff0c\u66ff\u6362\u5982\u4e0b\uff1a \u03bfnsubmit=\u201creturn&nbsp;confirm(\u2019&lt;?php echo L(&#039;form_submit_confirm&#039;);?&gt;\u2019)\u201d&amp;gt; \u767b\u5f55\u540e\u590d\u5236 \u4e5f\u6709\u7684\u4eba\u8bf4\u66f4\u6362\u6d4f\u89c8\u5668 \uff0c\u6709\u4e0d\u540c\u7684\u8bf4\u6cd5\uff0c\u4f46\u662f\u6211\u5404\u79cd\u90fd\u8bd5\u8fc7\u4e86\uff0c\u8fd8\u662f\u89e3\u51b3\u4e0d\u4e86\u3002 \u4e0d\u8fc7\u6211\u6362\u4e86\u4e00\u79cd\u65b9\u6cd5\u5b8c\u7f8e\u89e3\u51b3\u4e86\u3002\u4e0b\u9762\u8be6\u7ec6\u8bf4\u4e00\u4e0b\u8fc7\u7a0b\uff1a \u5148\u58f0\u660e\u4e00\u4e0b \u8fd9\u91cc\u4f7f\u7528\u7684\u662fLinux\u670d\u52a1\u5668 \u627e\u5230 php.ini \u6587\u4ef6 \u6211\u7684\u662f\u653e\u5728(\/usr\/local\/php\/etc)\u76ee\u5f55\u4e0b\uff0c \u627e\u5230 max_input_vars \u53c2\u6570\uff0c\u770b\u4e00\u4e0b max_input_vars \u53c2\u6570\u524d\u9762\u662f\u5426\u6709\u5206\u53f7\uff08\uff1b\uff09\uff0c\u5982\u679c\u6709\uff0c\u628a\u5206\u53f7\u53bb\u6389\uff0c\u539f\u59cb\u7684\u53c2\u6570 max_input_vars \u7684\u503c\u5e94\u8be5\u662f1000\uff0c\u6539\u6210 10000 \u6216\u8005100000\uff0c\u610f\u601d\u5c31\u662f\u628a max_input_vars \u6539\u7684\u6bd4\u4ee5\u524d\u5927\u4e00\u70b9 \u7136\u540e\u4fdd\u5b58\u3002\u3002\u3002 \u91cd\u542f php \u547d\u4ee4\uff08php service php-fpm restart\uff09 \u6216\u8005 \u91cd\u542f apache \u670d\u52a1\uff08service [&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-31137","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31137","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=31137"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31137\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}