{"id":25059,"date":"2020-02-14T19:41:27","date_gmt":"2020-02-14T11:41:27","guid":{"rendered":"http:\/\/4563.org\/?p=25059"},"modified":"2020-02-14T19:41:27","modified_gmt":"2020-02-14T11:41:27","slug":"%e5%b8%ae%e5%bf%99%e7%9c%8b%e4%b8%8b%e6%88%91%e8%bf%99%e4%b8%aaphp%e8%af%ad%e6%b3%95%e6%9c%89%e6%b2%a1%e6%9c%89%e9%94%99%e8%af%af%ef%bc%8c%e4%b8%ba%e5%95%a5%e4%b8%8d%e8%83%bd%e6%ad%a3%e5%b8%b8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=25059","title":{"rendered":"\u5e2e\u5fd9\u770b\u4e0b\u6211\u8fd9\u4e2aPHP\u8bed\u6cd5\u6709\u6ca1\u6709\u9519\u8bef\uff0c\u4e3a\u5565\u4e0d\u80fd\u6b63\u5e38\u8fd0\u884c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u5168\u7403VPS\u5927\u5b66<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u5e2e\u5fd9\u770b\u4e0b\u6211\u8fd9\u4e2aPHP\u8bed\u6cd5\u6709\u6ca1\u6709\u9519\u8bef\uff0c\u4e3a\u5565\u4e0d\u80fd\u6b63\u5e38\u8fd0\u884c<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u5168\u7403VPS\u5927\u5b66 \u4e8e 2020-2-14 19:41 \u7f16\u8f91 <\/p>\n<p> if($GLOBALS[&#8216;config&#8217;][&#8216;app&#8217;][&#8216;encrypt&#8217;]==&#8217;3&#8242;){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; require_once &#8216;encryption.php&#8217;;\/\/\u5f15\u7528\u52a0\u5bc6\u6587\u4ef6<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; $player_info[&#8216;url&#8217;] = encryption_en::encode($player_info[&#8216;url&#8217;],&#8217;123&#8242;);<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;$player_info[&#8216;url_next&#8217;] = encryption_en::encode($player_info[&#8216;url_next&#8217;],&#8217;123&#8242;);<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>  &nbsp; &nbsp;&nbsp; &nbsp;}&nbsp; &nbsp; &nbsp; &nbsp; <\/p>\n<p>  \/\/\u5176\u4e2d&nbsp; &nbsp; $player_info[&#8216;url&#8217;]\u662f\u4e00\u4e2a\u6807\u7b7e\u3002<\/p>\n<p>  \/ \u52a0\u5bc6\u65b9\u5f0f\u662f\u8fd9\u4e2a\u8c03\u7528\u7684&nbsp; &nbsp;encryption_en::encode(&#8216;abc&#8217;,&#8217;123&#8242;);<br \/>  \/\/\u5176\u4e2d123\u662f\u5bc6\u94a5<\/p>\n<p>  \u7136\u540e\u603b\u662f\u63d0\u793aencryption_en&#8217; not found \u9519\u8bef<\/p>\n<p>  \/\/encryption.php \u90e8\u5206\u4ee3\u7801<br \/>  class encryption_en{<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; private static $default_key = &#8216;123&#8217;;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; <\/p>\n<p>  &nbsp; &nbsp; &nbsp; &nbsp; public static function encode($string,$key = &#8221;, $expiry = 0){<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $ckeyLength = 4;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $key = md5($key ? $key : self::$default_key); <br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $keya = md5(substr($key, 0, 16));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $keyb = md5(substr($key, 16, 16));&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $keyc = substr(md5(microtime()), &#8211; $ckeyLength);<\/p>\n<p>  \t\t\t\t\t<strong>\u53eb\u5987<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u51e0\u884c\u4ee3\u7801\u6ca1\u8bed\u6cd5\u95ee\u9898 \t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5168\u7403VPS\u5927\u5b66 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u5e2e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/25059"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=25059"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/25059\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=25059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=25059"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=25059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}