{"id":31255,"date":"2024-11-25T15:31:31","date_gmt":"2024-11-25T07:31:31","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31255\/"},"modified":"2024-11-25T15:31:31","modified_gmt":"2024-11-25T07:31:31","slug":"phpcms%e8%ae%be%e7%bd%ae%e6%96%87%e7%ab%a0%e9%a1%b5%e5%8f%91%e5%b8%83%e8%80%85","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31255\/","title":{"rendered":"phpcms\u8bbe\u7f6e\u6587\u7ae0\u9875\u53d1\u5e03\u8005"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/041\/5e3bd9eb8f07e107.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"phpcms\u8bbe\u7f6e\u6587\u7ae0\u9875\u53d1\u5e03\u8005\u63d2\u56fe\" alt=\"phpcms\u8bbe\u7f6e\u6587\u7ae0\u9875\u53d1\u5e03\u8005\u63d2\u56fe\" \/><\/p>\n<p><strong>\u7b2c\u4e00\u6b65\uff1a\u4fee\u6539 content_model.class.php \u6587\u4ef6<\/strong><\/p>\n<p>1\u3001\u5728add_content\u51fd\u6570\u6dfb\u52a0\u6587\u7ae0\u90e8\u5206<\/p>\n<p>\u7b2c222\u884c\u5728\u751f\u6210\u9759\u6001\u9875\u524d\u9762\u52a0\u4e0a<\/p>\n<pre>$username=$systeminfo['username'];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6539\u6210<\/p>\n<pre>$username=$systeminfo['username'];&nbsp;\/\/dhs\n\/\/\u751f\u6210\u9759\u6001\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!$isimport&nbsp;&amp;amp;&amp;amp;&nbsp;$data['status']==99)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5728\u6dfb\u52a0\u548c\u4fee\u6539\u5185\u5bb9\u5904\u5b9a\u4e49\u4e86&nbsp;INDEX_HTML\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(defined('INDEX_HTML'))&nbsp;$html-&amp;gt;index();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(defined('RELATION_HTML'))&nbsp;$html-&amp;gt;create_relation_html($catid);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u53e6\u5916\uff0c\u5982\u679c\u8981\u5728\u4fee\u6539\u65f6\u4e5f\u80fd\u66f4\u65b0\u6b64\u4fe1\u606f\uff0c\u53ef\u5728320\u884c\u9644\u8fd1<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>\/\/\u751f\u6210\u9759\u6001\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$html&nbsp;=&nbsp;pc_base::load_app_class('html',&nbsp;'content');\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($urls['content_ishtml'])&nbsp;{<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u5b83\u7684\u524d\u9762\u52a0\u4e0a<\/p>\n<pre>$username=$systeminfo['username'];<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u7b2c\u4e8c\u6b65\uff1a\u5728\u751f\u6210\u9875\u9762\u7684\u6a21\u677f\u4e2d\uff0c\u52a0\u4e0a\u53d1\u5e03\u4eba\u4fe1\u606f<\/strong><\/p>\n<pre>&lt;p&gt;\u8d23\u4efb\u7f16\u8f91\uff1a{$username}&lt;\/p&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u8fd9\u91cc\uff0c\u4f1a\u663e\u793a\u5728\u6587\u7ae0\u5de6\u4e0b\u65b9\uff0c\u4e0d\u7b26\u5408\u4e60\u60ef\u3002\u53ef\u5c06\u53f3\u6d6e\u52a8\u5199\u5728CSS\u6587\u4ef6\u4e2d\u3002\u5982\u679c\u4e0d\u60f3\u6539CSS\u6587\u4ef6\u3002\u53ef\u4ee5\u5199\u6210\u8fd9\u6837<\/p>\n<pre>&lt;p&gt;\u8d23\u4efb\u7f16\u8f91\uff1a{$username}&lt;\/p&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u76f8\u5173\u6587\u7ae0\u6559\u7a0b\u5206\u4eab\uff1a\/&#8221; target=&#8221;_blank&#8221;&gt;phpcms\u6559\u7a0b<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8bbe\u7f6e\u6587\u7ae0\u9875\u53d1\u5e03\u8005\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>\u7b2c\u4e00\u6b65\uff1a\u4fee\u6539 content_model.class.php \u6587\u4ef6 1\u3001\u5728add_content\u51fd\u6570\u6dfb\u52a0\u6587\u7ae0\u90e8\u5206 \u7b2c222\u884c\u5728\u751f\u6210\u9759\u6001\u9875\u524d\u9762\u52a0\u4e0a $username=$systeminfo[&#8216;username&#8217;]; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u6539\u6210 $username=$systeminfo[&#8216;username&#8217;];&nbsp;\/\/dhs \/\/\u751f\u6210\u9759\u6001 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(!$isimport&nbsp;&amp;amp;&amp;amp;&nbsp;$data[&#8216;status&#8217;]==99)&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/\u5728\u6dfb\u52a0\u548c\u4fee\u6539\u5185\u5bb9\u5904\u5b9a\u4e49\u4e86&nbsp;INDEX_HTML &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(defined(&#8216;INDEX_HTML&#8217;))&nbsp;$html-&amp;gt;index(); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if(defined(&#8216;RELATION_HTML&#8217;))&nbsp;$html-&amp;gt;create_relation_html($catid); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;} \u767b\u5f55\u540e\u590d\u5236 \u53e6\u5916\uff0c\u5982\u679c\u8981\u5728\u4fee\u6539\u65f6\u4e5f\u80fd\u66f4\u65b0\u6b64\u4fe1\u606f\uff0c\u53ef\u5728320\u884c\u9644\u8fd1 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \/\/\u751f\u6210\u9759\u6001 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$html&nbsp;=&nbsp;pc_base::load_app_class(&#8216;html&#8217;,&nbsp;&#8216;content&#8217;); &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if($urls[&#8216;content_ishtml&#8217;])&nbsp;{ \u767b\u5f55\u540e\u590d\u5236 \u5728\u5b83\u7684\u524d\u9762\u52a0\u4e0a $username=$systeminfo[&#8216;username&#8217;]; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u7b2c\u4e8c\u6b65\uff1a\u5728\u751f\u6210\u9875\u9762\u7684\u6a21\u677f\u4e2d\uff0c\u52a0\u4e0a\u53d1\u5e03\u4eba\u4fe1\u606f &lt;p&gt;\u8d23\u4efb\u7f16\u8f91\uff1a{$username}&lt;\/p&gt; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u8fd9\u91cc\uff0c\u4f1a\u663e\u793a\u5728\u6587\u7ae0\u5de6\u4e0b\u65b9\uff0c\u4e0d\u7b26\u5408\u4e60\u60ef\u3002\u53ef\u5c06\u53f3\u6d6e\u52a8\u5199\u5728CSS\u6587\u4ef6\u4e2d\u3002\u5982\u679c\u4e0d\u60f3\u6539CSS\u6587\u4ef6\u3002\u53ef\u4ee5\u5199\u6210\u8fd9\u6837 &lt;p&gt;\u8d23\u4efb\u7f16\u8f91\uff1a{$username}&lt;\/p&gt; \u767b\u5f55\u540e\u590d\u5236 \u767b\u5f55\u540e\u590d\u5236 \u76f8\u5173\u6587\u7ae0\u6559\u7a0b\u5206\u4eab\uff1a\/&#8221; target=&#8221;_blank&#8221;&gt;phpcms\u6559\u7a0b \u4ee5\u4e0a\u5c31\u662f\u8bbe\u7f6e\u6587\u7ae0\u9875\u53d1\u5e03\u8005\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-31255","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31255","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=31255"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31255\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}