{"id":35,"date":"2013-11-28T08:25:53","date_gmt":"2013-11-28T00:25:53","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/11\/28\/%e4%bc%98%e5%8c%96emlog%e6%a0%87%e7%ad%be-%e6%a0%87%e7%ad%be%e6%95%b0%e9%87%8f%e3%80%81%e9%a2%9c%e8%89%b2%e3%80%81%e5%ad%97%e4%bd%93\/"},"modified":"2013-11-28T08:25:53","modified_gmt":"2013-11-28T00:25:53","slug":"%e4%bc%98%e5%8c%96emlog%e6%a0%87%e7%ad%be-%e6%a0%87%e7%ad%be%e6%95%b0%e9%87%8f%e3%80%81%e9%a2%9c%e8%89%b2%e3%80%81%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/11\/28\/%e4%bc%98%e5%8c%96emlog%e6%a0%87%e7%ad%be-%e6%a0%87%e7%ad%be%e6%95%b0%e9%87%8f%e3%80%81%e9%a2%9c%e8%89%b2%e3%80%81%e5%ad%97%e4%bd%93\/","title":{"rendered":"\u4f18\u5316emlog\u6807\u7b7e-\u6807\u7b7e\u6570\u91cf\u3001\u989c\u8272\u3001\u5b57\u4f53"},"content":{"rendered":"<div class=\"post2\" style=\"margin:0px;padding:10px 0px 0px;border:0px;font-family:\u5fae\u8f6f\u96c5\u9ed1, Arial, Tahoma;font-size:13px;\">\n<p>\n\t\temlog\u7684\u5de6\u4fa7\u6807\u7b7e\u5b58\u5728\u7740\u51e0\u4e2a\u4e0d\u597d\u7684\u5730\u65b9\uff1a\n\t<\/p>\n<p>\n\t\t\u4e00\u3001\u6807\u7b7e\u6570\u91cf\u6ca1\u6709\u9650\u5236\uff0c\u5982\u679c\u6709200\u4e2a\u6807\u7b7e\u7684\u8bdd\uff0c\u662f\u4e0d\u662f\u8981\u5ef6\u4f38\u5230\u684c\u5b50\u5e95\u4e0b\u5462\uff1f<br \/>\n&nbsp;\u4e8c\u3001\u6807\u7b7e\u4f7f\u7528\u6b21\u6570\u8d8a\u591a\u5b57\u4f53\u8d8a\u5927\uff0c\u4e25\u91cd\u5f71\u54cd\u7f8e\u89c2\u3002<br \/>\n\u4e09\u3001\u6807\u7b7e\u989c\u8272\u5355\u4e00\u7f3a\u4e4f\u7f8e\u89c2\u3002\n\t<\/p>\n<p>\n\t\t<strong><span style=\"color:#E53333;\">\u6570\u91cf\u4f18\u5316\uff1a<\/span><\/strong>\n\t<\/p>\n<p>\n\t\t1<span style=\"color:#006600;\">.\u627e\u5230\\include\\lib\\cache.php\u5e76\u6253\u5f00<\/span><br \/>\n<span style=\"color:#006600;\">2.\u627e\u5230private function mc_tags()\u51fd\u6570<\/span>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#006600;\">3\u3001\u628a<\/span>\n\t<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">$query = $this-&gt;db-&gt;query(\"SELECT gid FROM \" . DB_PREFIX . \"tag\");<\/pre>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">\u6539\u4e3a\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">$query = $this-&gt;db-&gt;query(\"SELECT gid FROM \" . DB_PREFIX . \"tag ORDER BY tid DESC LIMIT 0,30\");<\/pre>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">4\u3001\u628a\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">$query = $this-&gt;db-&gt;query(\"SELECT tagname,gid FROM \" . DB_PREFIX . \"tag\");<\/pre>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">\u6539\u4e3a\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">$query = $this-&gt;db-&gt;query(\"SELECT tagname,gid FROM \" . DB_PREFIX . \"tag ORDER BY tid DESC LIMIT 0,30\");<\/pre>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">&nbsp;<\/pre>\n<p>\n\t\t<span style=\"color:#006600;\">5.\u4fdd\u5b58\uff0c\u4e0a\u4f20\u670d\u52a1\u5668\uff0c\u6267\u884c\u540e\u53f0\u66f4\u65b0\u7f13\u5b58\uff0c\u5237\u65b0\u7f51\u9875\uff0c\u53d1\u73b0\u7f13\u5b58\u53d8\u5c11\u4e86\uff0c\u5e76\u4e14\u6309\u7167\u65f6\u95f4\u987a\u5e8f\u4e86\u3002\u5176\u4e2dLIMIT 0,30\u662f\u663e\u793a30\u4e2a\uff0c\u8981\u60f3\u663e\u793a50\u4e2a\u53ef\u4ee5\u66f4\u6539\u4e3aLIMIT 0,50\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002<\/span>\n\t<\/p>\n<p>\n\t\t&nbsp;\n\t<\/p>\n<p>\n\t\t<strong><span style=\"color:#006600;\"><span style=\"color:#E53333;\">\u5b57\u4f53\u4f18\u5316\uff1a<\/span><\/span><\/strong>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#E53333;\"><span style=\"color:#006600;\">\u627e\u5230module.php\u6587\u4ef6<\/span><\/span>\n\t<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">&lt;?php\n\/\/widget\uff1a\u6807\u7b7e\nfunction widget_tag($title){\nglobal $CACHE;\n$tag_cache = $CACHE-&gt;readCache('tags');?&gt;\n&lt;li&gt;\n&lt;h3&gt;&lt;span&gt;&lt;?php echo $title; ?&gt;&lt;\/span&gt;&lt;\/h3&gt;\n&lt;ul id=\"blogtags\"&gt;\n&lt;?php foreach($tag_cache as $value): ?&gt;\n  &lt;span style=\"font-size:&lt;?php echo $value['fontsize']; ?&gt;pt; line-height:30px;\"&gt;\n  &lt;a href=\"&lt;?php echo [url=http:\/\/www.xglvyou.com\/admin\/:tag($value[]Url::tag($value['tagurl'[\/url]]); ?&gt;\" title=\"&lt;?php echo $value['usenum']; ?&gt; \u7bc7\u65e5\u5fd7\"&gt;&lt;?php echo $value['tagname']; ?&gt;&lt;\/a&gt;&lt;\/span&gt;\n&lt;?php endforeach; ?&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;?php }?&gt;<\/pre>\n<p>\n\t\t&nbsp;\n\t<\/p>\n<p>\n\t\t\u628a\n\t<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">&lt;span style=\"font-size:&lt;?php echo $value['fontsize']; ?&gt;pt; line-height:30px;\"&gt;<\/pre>\n<p>\n\t\t&nbsp;\n\t<\/p>\n<p>\n\t\t\u6539\u4e3a\n\t<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\">&lt;span style=\"font-size:12px; line-height:25px;\"&gt;<\/pre>\n<p>\n\t\t&nbsp;\n\t<\/p>\n<p>\n\t\t\u8fd9\u6837\u5b57\u4f53\u5c31\u53d8\u6210\u548c\u535a\u5ba2\u4e00\u6837\u7684\u5b57\u4f53\u5927\u5c0f\u4e86\uff0c\u800c\u4e14\u884c\u8ddd\u4e5f\u53d8\u6210\u6211\u8fd9\u6837\u7684\u4e86\u3002\u5982\u679c\u81ea\u5df1\u5bf9\u6548\u679c\u4e0d\u6ee1\u610f\uff0c\u53ef\u4ee5\u4fee\u6539\u90a3\u4e24\u4e2a\u6570\u5b5712\u548c25\u6765\u627e\u5230\u9002\u5408\u81ea\u5df1\u7684\u6548\u679c\u3002\n\t<\/p>\n<p>\n\t\t<strong><span style=\"color:#E53333;\">\u989c\u8272\u4f18\u5316<\/span><\/strong>\n\t<\/p>\n<p>\n\t\t<span style=\"color:#006600;\"><span style=\"color:#009900;\">\u63a5\u4e0a\u4e00\u6b65\uff0c\u628a\u989c\u8272\u4e5f\u4f18\u5316\u4e00\u4e0b\u3002\u53ef\u4ee5\u628a\u4ee3\u7801\u53d8\u6210\uff1a<\/span><\/span>\n\t<\/p>\n<pre class=\"brush:php; toolbar: true; auto-links: true;\"><span style=\"color:#000000;\">&lt;?php\n\/\/widget\uff1a\u6807\u7b7e\nfunction widget_tag($title){\nglobal $CACHE;\n$tag_cache = $CACHE-&gt;readCache('tags');?&gt;\n&lt;li&gt;\n&lt;h3&gt;&lt;span&gt;&lt;?php echo $title; ?&gt;&lt;\/span&gt;&lt;\/h3&gt;\n&lt;ul id=\"blogtags\"&gt;\n&lt;?php foreach($tag_cache as $value):$color = dechex(rand(-2048,25600)); ?&gt;\n  &lt;span style=\"font-size:12px; line-height:25px;\"&gt;\n  &lt;a href=\"&lt;?php echo [url=http:\/\/www.234.com\/admin\/:tag($value[]Url::tag($value['tagurl'[\/url]]); ?&gt;\" title=\"&lt;?php echo $value['usenum']; ?&gt; \u7bc7\u65e5\u5fd7\" style=\"color:#&lt;?php echo $color;?&gt;\"&gt;&lt;?php echo $value['tagname']; ?&gt;&lt;\/a&gt;&lt;\/span&gt;\n&lt;?php endforeach; ?&gt;\n&lt;\/ul&gt;\n&lt;\/li&gt;\n&lt;?php }?&gt;<\/span><\/pre>\n<p>\n\t\t&nbsp;<span style=\"color:#006600;\">dechex(rand(-2048,25600)); \u91cc\u9762\u7684\u6570\u5b57\u51b3\u5b9a\u7740\u989c\u8272\u7684\u53d8\u5316\u8303\u56f4\u3002\u8fd9\u91cc\u9762\u7684\u6570\u5b57\u662f10\u8fdb\u5236\u7684\u3002\u4e00\u822c\u7684\u989c\u8272\u90fd\u662f\u752816\u8fdb\u5236\u8868\u793a\uff0c\u8f6c\u5316\u4e00\u4e0b\uff0c\u5c31\u597d\u4e86\u3002<\/span>\n\t<\/p>\n<\/div>\n<div class=\"fujian\" style=\"margin:0px 0px 0px 32px;padding:0px 0px 0px 32px;border:0px;color:#666666;font-size:14px;font-weight:bold;font-family:\u5fae\u8f6f\u96c5\u9ed1, Arial, Tahoma;\">\n<\/div>\n<div class=\"content-footer\" style=\"margin:20px 0px 0px;padding:5px 5px 5px 10px;border:1px dashed #CCCCCC;background-color:#EEEEEE;font-weight:700;font-family:\u5fae\u8f6f\u96c5\u9ed1, Arial, Tahoma;font-size:13px;\">\n<div id=\"bdshare\" class=\"bdshare_t bds_tools_32 get-codes-bdshare\" style=\"margin:0px;padding:0px 0px 2px;border:0px;font-size:12px;\">\n\t\t<a class=\"bds_tsina\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_qzone\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_tqq\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_renren\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_t163\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_fx\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_kaixin001\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_tsohu\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_ty\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_tfh\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_xg\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_mail\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_print\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><a class=\"bds_copy\" href=\"http:\/\/www.234du.com\/post-135.html#\"><\/a><span class=\"bds_more\" style=\"font-family:\u5b8b\u4f53, Arial;\"><\/span><a class=\"shareCount\" href=\"http:\/\/www.234du.com\/post-135.html#\">0<\/a>\n\t<\/div>\n<\/div>\n<p><br class=\"Apple-interchange-newline\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>emlog\u7684\u5de6\u4fa7\u6807\u7b7e\u5b58\u5728\u7740\u51e0\u4e2a\u4e0d\u597d\u7684\u5730\u65b9\uff1a \u4e00\u3001\u6807\u7b7e\u6570\u91cf\u6ca1\u6709\u9650\u5236\uff0c\u5982\u679c\u6709200\u4e2a\u6807\u7b7e\u7684\u8bdd\uff0c\u662f\u4e0d\u662f\u8981\u5ef6\u4f38\u5230\u684c\u5b50\u5e95\u4e0b\u5462\uff1f &nbsp;\u4e8c\u3001\u6807\u7b7e\u4f7f\u7528\u6b21\u6570\u8d8a\u591a\u5b57\u4f53\u8d8a\u5927\uff0c\u4e25\u91cd\u5f71\u54cd\u7f8e\u89c2\u3002 \u4e09\u3001\u6807\u7b7e\u989c\u8272\u5355\u4e00\u7f3a\u4e4f\u7f8e\u89c2\u3002 \u6570\u91cf\u4f18\u5316\uff1a 1.\u627e\u5230\\include\\lib\\cache.php\u5e76\u6253\u5f00 2.\u627e\u5230private function mc_tags()\u51fd\u6570 3\u3001\u628a $query = $this-&gt;db-&#038;gt [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-35","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/35","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=35"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/35\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=35"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=35"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}