{"id":980,"date":"2013-01-28T22:09:16","date_gmt":"2013-01-28T14:09:16","guid":{"rendered":"https:\/\/sdeno.com\/?p=980"},"modified":"2013-01-29T12:51:59","modified_gmt":"2013-01-29T04:51:59","slug":"%e7%bb%99wordpress%e8%af%84%e8%ae%ba%e6%b7%bb%e5%8a%a0%e9%aa%8c%e8%af%81%e7%a0%81%e9%98%b2%e6%ad%a2%e5%9e%83%e5%9c%be%e7%95%99%e8%a8%80","status":"publish","type":"post","link":"https:\/\/sdeno.com\/?p=980","title":{"rendered":"\u7ed9WordPress\u8bc4\u8bba\u6dfb\u52a0\u9a8c\u8bc1\u7801\u9632\u6b62\u5783\u573e\u7559\u8a00"},"content":{"rendered":"<p>\u4e0d\u60f3\u7528\u63d2\u4ef6\u4f46\u662f\u53c8\u60f3\u9632\u6b62\u4e00\u4e9b\u5783\u573e\u7559\u8a00\u7684\u53d1\u5e03\uff0c\u5c31\u5728\u7559\u8a00\u677f\u5904\u6dfb\u52a0\u4e00\u9053\u7b97\u6570\u9a8c\u8bc1\u7801\u8ba9\u4f60\u8f93\u5165\u7cfb\u7edf\u968f\u673a\u4ea7\u751f\u7684\u4e00\u4e2a\u5c0f\u7b97\u672f\u9898\uff0c\u8f93\u5165\u6b63\u786e\u4e86\u5c31\u53ef\u4ee5\u6b63\u5e38\u6dfb\u52a0\u8bc4\u8bba\uff0c\u8f93\u5165\u9519\u8bef\u6216\u8005\u4e0d\u586b\u5219\u63d0\u793a\u9519\u8bef\uff0c\u800c\u4e0d\u80fd\u8fdb\u884c\u6dfb\u52a0\u8bc4\u8bba\u3002<\/p>\n<p>\u5177\u4f53\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>\u4fee\u6539 wp-comments-post.php \uff1a<br \/>\n\u67e5\u627e\uff1a<br \/>\n[code]if ( \u201d == $comment_content )<br \/>\n\u5728\u5176\u4e0a\u9762\u6dfb\u52a0\u4ee3\u7801\uff1a<br \/>\n\/\/Fufu_checkcode<br \/>\nif ( !$user-&gt;ID ) {<br \/>\n$aaa = trim($_POST[aaa]);<br \/>\n$bbb = trim($_POST[bbb]);<br \/>\n$subab = trim($_POST[subab]);<br \/>\nif((($aaa+$bbb)!=$subab)|| empty($subab)){<br \/>\nwp_die( __(\u2018Error: Please enter the correct results of the math problems.\u2019) );<br \/>\n}<br \/>\n}<br \/>\n\/\/Fufu_end[\/code]<br \/>\n\u7136\u540e\u4fee\u6539\u5f53\u524d\u4e3b\u9898\u76ee\u5f55\u4e0b\u7684 comments.php (\u6211\u7528\u7684 iNove) \uff0c\u5728\u9002\u5f53\u7684\u4f4d\u7f6e\u6dfb\u52a0\u4ee3\u7801\uff0c\u6211\u662f\u5728\u63d0\u4ea4\u6309\u94ae\u4e4b\u524d\u6dfb\u52a0\u7684\uff0c\u5373\u67e5\u627e\uff1a<br \/>\n[code]&lt;input name=\u201dsubmit\u201d type=\u201dsubmit\u201d id=\u201dsubmit\u201d[\/code]<br \/>\n\u5728\u5176\u524d\u9762\u6dfb\u52a0\u4ee3\u7801\uff1a<br \/>\n[code]&lt;?php $aaa=rand(0,5); $bbb=rand(3,9); ?&gt;&lt;?php echo $aaa; ?&gt;+&lt;?php echo $bbb; ?&gt;=<br \/>\n&lt;input type=\u201dtext\u201d name=\u201dsubab\u201d id=\u201dsubab\u201d size=\u201d2\u2033 tabindex=\u201d5\u2033 style=\u201dwidth:20px\u201d \/&gt;&lt;?php if ($req) _e(\u2018(required)\u2019, \u2018inove\u2019); ?&gt;<br \/>\n&lt;input name=\u201daaa\u201d value=\u201d&lt;?php echo $aaa; ?&gt;\u201d type=\u201dhidden\u201d \/&gt;<br \/>\n&lt;input name=\u201dbbb\u201d value=\u201d&lt;?php echo $bbb; ?&gt;\u201d type=\u201dhidden\u201d \/&gt;[\/code]<br \/>\n\u5982\u679c\u4f60\u7684\u4e3b\u9898\u4e0d\u662f iNove \u7684\u8bdd\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\u8981\u505a\u76f8\u5e94\u7684\u4fee\u6539\uff0c\u8fd9\u6bb5\u4ee3\u7801\u7684\u610f\u601d\u662f\u201c(\u5fc5\u586b)\u201d\u9700\u8981\u5bf9\u5e94\u6a21\u677f\u7684\u8bed\u8a00\u3002<br \/>\n[code]&lt;?php if ($req) _e(\u2018(required)\u2019, \u2018inove\u2019); ?&gt;[\/code]<br \/>\n\u4fee\u6539\u597d\u540e\uff0c\u7528\u7528\u770b\u5b9e\u9645\u7684\u6548\u679c\u5982\u4f55\u5427\u3002<\/p>\n<div>\u6587\u7ae0\u6765\u6e90\uff1awordpress\u5efa\u7ad9\u6559\u7a0b|wordpress\u4e3b\u9898\u5236\u4f5c|wordpress\u6a21\u677f|wordpress\u4e0b\u8f7d<br \/>\n(<a href=\"https:\/\/sdeno.com\">www.xgllseo.com<\/a>)\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff0c\u8bf7\u5c0a\u91cd\u7248\u6743\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u60f3\u7528\u63d2\u4ef6\u4f46\u662f\u53c8\u60f3\u9632\u6b62\u4e00\u4e9b\u5783\u573e\u7559\u8a00\u7684\u53d1\u5e03\uff0c\u5c31\u5728\u7559\u8a00\u677f\u5904\u6dfb\u52a0\u4e00\u9053\u7b97\u6570\u9a8c\u8bc1\u7801\u8ba9\u4f60\u8f93\u5165\u7cfb\u7edf\u968f\u673a\u4ea7\u751f\u7684\u4e00\u4e2a\u5c0f\u7b97\u672f\u9898\uff0c\u8f93 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,11],"tags":[],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-11"],"_links":{"self":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/980","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=980"}],"version-history":[{"count":0,"href":"https:\/\/sdeno.com\/index.php?rest_route=\/wp\/v2\/posts\/980\/revisions"}],"wp:attachment":[{"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sdeno.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}