{"id":199244,"date":"2025-05-03T13:23:27","date_gmt":"2025-05-03T05:23:27","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199244\/"},"modified":"2025-05-03T13:23:27","modified_gmt":"2025-05-03T05:23:27","slug":"%e5%ae%9e%e7%8e%b0ecshop%e6%b3%a8%e5%86%8c%e5%bf%85%e9%a1%bb%e9%82%ae%e7%ae%b1%e9%aa%8c%e8%af%81","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199244\/","title":{"rendered":"\u5b9e\u73b0ecshop\u6ce8\u518c\u5fc5\u987b\u90ae\u7bb1\u9a8c\u8bc1"},"content":{"rendered":"<p>&nbsp;\u505a\u4e8c\u6b21\u5f00\u53d1\u8981\u6ce8\u518c\u540e\u81ea\u52a8\u53d1\u9001\u90ae\u4ef6\u9a8c\u8bc1\uff0c\u9a8c\u8bc1\u6210\u529f\u624d\u80fd\u767b\u5f55\uff1a<\/p>\n<p> \u4e00\u3001\u53ef\u4ee5\u63d0\u793a\u7528\u6237\u7acb\u5373\u53bb\u9a8c\u8bc1\u6ce8\u518c\u7684\u90ae\u4ef6 \u4e8c\u3001\u65b9\u9a8c\u4ee5\u540e\u63a8\u5e7f\u7b5b\u9009\u6709\u6548\u90ae\u7bb1 &nbsp; \u73b0\u5728\u597d\u6a21\u677f\u4ee5\u4e0b\u5982\u4f55\u6ce8\u518c\u81ea\u52a8\u53d1\u9001\u90ae\u4ef6\u9a8c\u8bc1\uff0c\u9a8c\u8bc1\u6210\u529f\u624d\u80fd\u767b\u5f55\uff1a<br \/>\n<span><strong>1\u3001\u6ce8\u518c\u6210\u529f\u81ea\u52a8\u53d1\u90ae\u4ef6\u5e76\u9000\u51fa\u767b\u5f55\u72b6\u6001\uff0c\u63d0\u793a\u9700\u8981\u9a8c\u8bc1\u90ae\u4ef6\u624d\u80fd\u767b\u5f55\u3002<\/strong><\/span><br \/>\n<span>\u5728user.php\u5927\u7ea6233\u884c\u5f88234\u884c<\/span> \u628a\uff1a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ucdata = empty($user-&gt;ucdata)? &#8220;&#8221; : $user-&gt;ucdata; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; show_message(sprintf($_LANG[&#8216;register_success&#8217;], $username . $ucdata), array($_LANG[&#8216;back_up_page&#8217;], $_LANG[&#8216;profile_lnk&#8217;]), array($back_act, &#8216;user.php&#8217;),&nbsp; &nbsp; &#8216;info&#8217;); &nbsp; \u66ff\u6362\u6210\uff1a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $cfg = $_CFG[&#8216;smtp_user&#8217;]; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!empty($cfg) ) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $sql=&#8221;select user_id from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;users&#8217;) .&#8221;where user_name = &#8216;$username'&#8221;; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $user_id=$db-&gt;getOne($sql); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; send_regiter_hash ($user_id);<br \/>\n<span> <\/span> &nbsp; }<br \/>\n<span> <\/span> &nbsp; $user-&gt;logout(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;show_message(&#8216;\u9700\u8981\u9a8c\u8bc1\u90ae\u4ef6\u624d\u80fd\u767b\u5f55&#8217;, array($_LANG[&#8216;back_up_page&#8217;], $_LANG[&#8216;back_home_lnk&#8217;]), array(&#8216;user.php&#8217;, &#8216;index.php&#8217;), &#8216;info&#8217;); &nbsp; \u8d2d\u7269\u6d41\u7a0b\u65f6\u6ce8\u518c\u4e5f\u8981\u76f8\u5e94\u7684\u4fee\u6539<br \/>\n<span>\u6253\u5f00flow.php\u5927\u7ea6282\u884c<\/span> \u67e5\u627e\uff1a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (register(trim($_POST[&#8216;username&#8217;]), trim($_POST[&#8216;password&#8217;]), trim($_POST[&#8217;email&#8217;]))) \u5c06\u4e0b\u9762\u4ee3\u7801\uff1a &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \/* \u7528\u6237\u6ce8\u518c\u6210\u529f *\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ecs_header(&#8220;Location: flow.php?step=consignee\\n&#8221;); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit; \u66ff\u6362\u6210\uff1a<br \/>\n<span> <\/span> &nbsp;$cfg = $_CFG[&#8216;smtp_user&#8217;];<br \/>\n<span> <\/span> &nbsp;if(!empty($cfg) )<br \/>\n<span> <\/span> &nbsp;{<br \/>\n<span> <\/span> &nbsp;$sql=&#8221;select user_id from &#8220;.$GLOBALS[&#8216;ecs&#8217;]-&gt;table(&#8216;users&#8217;) .&#8221;where user_name = &#8216;&#8221;.trim($_POST[&#8216;username&#8217;]).&#8221;&#8216;&#8221;;<br \/>\n<span> <\/span> &nbsp;$user_id=$db-&gt;getOne($sql);<br \/>\n<span> <\/span> &nbsp;send_regiter_hash ($user_id);<br \/>\n<span> <\/span> &nbsp; }<br \/>\n<span> <\/span> &nbsp; $user-&gt;logout(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; show_message(&#8216;\u9700\u8981\u9a8c\u8bc1\u90ae\u4ef6\u624d\u80fd\u767b\u5f55&#8217;, array($_LANG[&#8216;back_up_page&#8217;], &nbsp; &nbsp; $_LANG[&#8216;back_home_lnk&#8217;]), array(&#8216;flow.php?step=login&#8217;, &#8216;index.php&#8217;), &#8216;info&#8217;); &nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u505a\u4e8c\u6b21\u5f00\u53d1\u8981\u6ce8\u518c\u540e\u81ea&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199244","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199244"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199244\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}