{"id":1638,"date":"2018-05-14T22:50:50","date_gmt":"2018-05-14T14:50:50","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1638"},"modified":"2019-12-16T15:46:43","modified_gmt":"2019-12-16T07:46:43","slug":"%e7%bb%87%e6%a2%a6dedecms%e8%87%aa%e5%ae%9a%e4%b9%89%e8%a1%a8%e5%8d%95%e8%8e%b7%e5%8f%96%e7%95%99%e8%a8%80%e8%80%85%e7%9a%84ip%e5%9c%b0%e5%9d%80%e5%8f%8a%e7%95%99%e8%a8%80%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1638.html","title":{"rendered":"\u7ec7\u68a6dedecms\u81ea\u5b9a\u4e49\u8868\u5355\u83b7\u53d6\u7559\u8a00\u8005\u7684IP\u5730\u5740\u53ca\u7559\u8a00\u65f6\u95f4"},"content":{"rendered":"

\u7f51\u7ad9\u8bbe\u7f6e\u4e86\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u529f\u80fd \uff0c\u6700\u8fd1\u767b\u5f55\u540e\u53f0\u53d1\u73b0\u5f88\u591a\u7559\u8a00\uff0c\u4f46\u770b\u4e0d\u5230\u7559\u8a00\u7684\u5177\u4f53\u53d1\u5e03\u65f6\u95f4 \u3002<\/p>\n

\u540e\u6765\u6ce8\u610f\u5230\u4e00\u4e2a\u7ec6\u8282,\u6bcf\u6b21\u767b\u9646\u540e\u53f0,\u7ec7\u68a6\u7cfb\u7edf\u90fd\u4f1a\u8bb0\u5f55\u767b\u9646\u65f6\u95f4\u548cIP\u5730\u5740,\u8fd9\u8bf4\u660e\u7ec7\u68a6\u81ea\u5e26IP\u83b7\u53d6\u548c\u65f6\u95f4\u83b7\u53d6\u3002<\/p>\n

\"QQ\u622a\u56fe20180514225104\"<\/a><\/p>\n

\u90a3\u4e48\u63a5\u4e0b\u6765\u5206\u6790\u4e86\u76f8\u5173\u7684\u6587\u4ef6\u4ee3\u7801\uff0c\u6574\u7406\u4e86\u4e00\u5957\u81ea\u52a8\u83b7\u53d6\u65f6\u95f4\u548cIP\u7684\u4ee3\u7801\u51fa\u6765\uff0c\u4fee\u6539\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n

\u9996\u5148\u4fee\u6539plus\/diy.php,\u5728\u5927\u698269\u884c\u7684\u5730\u65b9\u627e\u5230\uff1a<\/p>\n

if($fieldinfo[1] == 'textdata')  \r\n{  \r\n${$fieldinfo[0]} = FilterSearch(stripslashes(${$fieldinfo[0]}));  \r\n${$fieldinfo[0]} = addslashes(${$fieldinfo[0]});  \r\n}<\/code><\/pre>\n

\u5728\u5b83\u4e0b\u9762\u6dfb\u52a0<\/p>\n

if($fieldinfo[0] == 'ip')\r\n{\r\n${$fieldinfo[0]}=GetIP();\r\n}\r\nif($fieldinfo[0] == 'time')\r\n{\r\n${$fieldinfo[0]}=date(\"Y-m-d H:i:s\");\r\n}<\/code><\/pre>\n

 <\/p>\n

\u7136\u540e\u5728\u81ea\u5b9a\u4e49\u8868\u5355\u91cc\u6dfb\u52a0\u5b57\u6bb5<\/p>\n

IP\u5730\u5740:ip<\/p>\n

\u63d0\u4ea4\u65f6\u95f4:time<\/p>\n

\u5b57\u6bb5\u540d\u79f0\u4e00\u5b9a\u8981\u548cdiy.php\u6dfb\u52a0\u7684\u5b57\u6bb5\u540d\u4e00\u81f4<\/p>\n

\u6ce8\u610f\uff1a<\/strong>\u65b0\u589e\u8868\u5355\u5b57\u6bb5\u4e4b\u540e\uff0c\u5fc5\u987b\u8981\u66f4\u65b0\u4e00\u4e0b\u8868\u5355\u4e2d\u00a0dede_fields\u00a0\u548c\u00a0dede_fieldshash\u00a0\u8fd9\u4e24\u9879\u7684\u503c\uff0c\u5f88\u591a\u7ad9\u957f\u4f1a\u5ffd\u7565\u8fd9\u4e2a\u95ee\u9898\uff0c\u5bfc\u81f4\u540e\u53f0\u65e0\u6cd5\u63a5\u6536\u65b0\u589e\u5b57\u6bb5\u7684\u5185\u5bb9\u3002<\/strong><\/p>\n

\u5728\u8868\u5355\u4e2d\u8c03\u53d6:
\n<input type=\"hidden\" name=\"ip\" id=\"ip\" value=\"\">
\n<input type=\"hidden\" name=\"time\" id=\"time\" value=\"\">
\ntype=\"hidden\"\u00a0\u6807\u7b7e\u53ef\u4ee5\u628a\u8fd9\u4e24\u4e2a\u8868\u5355\u9690\u85cf\u8d77\u6765\uff0c\u4e0d\u4f1a\u5f71\u54cd\u4ee3\u7801\u6267\u884c\u3002<\/p>\n

\u8fd9\u6837\u7528\u6237\u6267\u884c\u63d0\u4ea4\u64cd\u4f5c\uff0c\u540e\u53f0\u5c31\u4f1a\u81ea\u52a8\u83b7\u53d6\u7528\u6237IP\u5730\u5740\u548c\u5f53\u524d\u7684\u65f6\u95f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u7f51\u7ad9\u8bbe\u7f6e\u4e86\u81ea\u5b9a\u4e49\u8868\u5355\u63d0\u4ea4\u529f\u80fd \uff0c\u6700\u8fd1\u767b\u5f55\u540e\u53f0\u53d1\u73b0\u5f88\u591a\u7559\u8a00\uff0c\u4f46\u770b\u4e0d\u5230\u7559\u8a00\u7684\u5177\u4f53\u53d1\u5e03\u65f6\u95f4 \u3002 \u540e\u6765\u6ce8\u610f\u5230\u4e00\u4e2a\u7ec6\u8282, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[43,1059,1060,180,687],"class_list":["post-1638","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-ip","tag-1060","tag-180","tag-687"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=1638"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1638\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}