{"id":28662,"date":"2024-11-25T12:51:46","date_gmt":"2024-11-25T04:51:46","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28662\/"},"modified":"2024-11-25T12:51:46","modified_gmt":"2024-11-25T04:51:46","slug":"phpcms%e4%bd%9c%e8%80%85%e5%90%8d%e4%b8%8d%e6%98%be%e7%a4%ba%e6%80%8e%e4%b9%88%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28662\/","title":{"rendered":"phpcms\u4f5c\u8005\u540d\u4e0d\u663e\u793a\u600e\u4e48\u89e3\u51b3"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/039\/5e19838bbf9d5775.jpg\" class=\"aligncenter\" title=\"phpcms\u4f5c\u8005\u540d\u4e0d\u663e\u793a\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" alt=\"phpcms\u4f5c\u8005\u540d\u4e0d\u663e\u793a\u600e\u4e48\u89e3\u51b3\u63d2\u56fe\" \/><\/p>\n<p>V9\u524d\u53f0\u9759\u6001\u6709\u65f6\u5019\u4e0d\u663e\u793a\u66f4\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\uff0c\u5177\u4f53\u4fee\u6539\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u9996\u5148\u8981\u5728\u6839\u76ee\u5f55\u6587\u4ef6\u91cc\u9762\u627e\u5230content_model.class.php\u6587\u4ef6\uff0c\u7528EditPlus\u5de5\u5177\u6216\u8005\u5176\u4ed6\u7f16\u8f91\u5668\u5de5\u5177\u6253\u5f00<\/p>\n<p>content_model.class.php\u7b2c120\u884c<\/p>\n<pre>$urls['data']['username']&nbsp;=&nbsp;$systeminfo['username'];\n\/\/end<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>html.class.php\u7b2c29\u884c\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>\/\/\u5fc5\u987b\u8981\u5728\u8fd9\u91cc\u83b7\u53d6\u4f20\u9012\u8fc7\u6765\u7684\u6570\u7ec4\u503c\n$username=$data['username'];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>edit_content\u65b9\u6cd5\uff0c\u7ea6280\u884c\uff1a<\/p>\n<pre>\/*\u7f16\u8f91\u90e8\u5206\u4ece\u4e3b\u8868\u6570\u636e\u5e93\u4e2d\u67e5\u51fa\u7528\u6237\u540d\uff0c\u4f20\u9012\u6a21\u7248*\/\n$temp&nbsp;=&nbsp;$this-&amp;gt;get_one(array(\u2018id\u2019=&amp;gt;$id));\n$urls['data']['username']&nbsp;=&nbsp;$temp['username'];\n\/\/end<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\/&#8221; target=&#8221;_blank&#8221;&gt;PHPCMS\u6559\u7a0b\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4f5c\u8005\u540d\u4e0d\u663e\u793a\u600e\u4e48\u89e3\u51b3\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>V9\u524d\u53f0\u9759\u6001\u6709\u65f6\u5019\u4e0d\u663e\u793a\u66f4\u65b0\u7528\u6237\u7684\u7528\u6237\u540d\uff0c\u5177\u4f53\u4fee\u6539\u65b9\u6cd5\u5982\u4e0b\uff1a \u9996\u5148\u8981\u5728\u6839\u76ee\u5f55\u6587\u4ef6\u91cc\u9762\u627e\u5230content_model.class.php\u6587\u4ef6\uff0c\u7528EditPlus\u5de5\u5177\u6216\u8005\u5176\u4ed6\u7f16\u8f91\u5668\u5de5\u5177\u6253\u5f00 content_model.class.php\u7b2c120\u884c $urls[&#8216;data&#8217;][&#8216;username&#8217;]&nbsp;=&nbsp;$systeminfo[&#8216;username&#8217;]; \/\/end \u767b\u5f55\u540e\u590d\u5236 html.class.php\u7b2c29\u884c\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \/\/\u5fc5\u987b\u8981\u5728\u8fd9\u91cc\u83b7\u53d6\u4f20\u9012\u8fc7\u6765\u7684\u6570\u7ec4\u503c $username=$data[&#8216;username&#8217;]; \u767b\u5f55\u540e\u590d\u5236 edit_content\u65b9\u6cd5\uff0c\u7ea6280\u884c\uff1a \/*\u7f16\u8f91\u90e8\u5206\u4ece\u4e3b\u8868\u6570\u636e\u5e93\u4e2d\u67e5\u51fa\u7528\u6237\u540d\uff0c\u4f20\u9012\u6a21\u7248*\/ $temp&nbsp;=&nbsp;$this-&amp;gt;get_one(array(\u2018id\u2019=&amp;gt;$id)); $urls[&#8216;data&#8217;][&#8216;username&#8217;]&nbsp;=&nbsp;$temp[&#8216;username&#8217;]; \/\/end \u767b\u5f55\u540e\u590d\u5236 PHP\u4e2d\u6587\u7f51\uff0c\u5927\u91cf\u7684\u514d\u8d39\/&#8221; target=&#8221;_blank&#8221;&gt;PHPCMS\u6559\u7a0b\uff0c\u6b22\u8fce\u5728\u7ebf\u5b66\u4e60\uff01 \u4ee5\u4e0a\u5c31\u662f\u4f5c\u8005\u540d\u4e0d\u663e\u793a\u600e\u4e48\u89e3\u51b3\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-28662","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28662","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=28662"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28662\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}