{"id":850,"date":"2014-10-04T02:32:46","date_gmt":"2014-10-04T02:32:46","guid":{"rendered":"http:\/\/www.aiti123.com\/?p=850"},"modified":"2014-10-04T02:32:46","modified_gmt":"2014-10-04T02:32:46","slug":"phpmps%e5%90%8e%e5%8f%b0%e7%bb%9f%e8%ae%a1-%e5%90%8c%e4%b8%80%e4%b8%aa%e6%89%8b%e6%9c%ba%e5%8f%b7%e5%92%8cqq%e5%87%ba%e7%8e%b0%e6%ac%a1%e6%95%b0%e7%9a%84%e6%96%b9%e6%b3%95-%e6%96%b9%e4%be%bf%e5%ae%a1","status":"publish","type":"post","link":"http:\/\/www.aiti123.com\/?p=850","title":{"rendered":"phpmps\u540e\u53f0\u7edf\u8ba1 \u540c\u4e00\u4e2a\u624b\u673a\u53f7\u548cQQ\u51fa\u73b0\u6b21\u6570\u7684\u65b9\u6cd5 \u65b9\u4fbf\u5ba1\u6838"},"content":{"rendered":"<p>phpmps\u540e\u53f0\u7edf\u8ba1 \u540c\u4e00\u4e2a\u624b\u673a\u53f7\u548cQQ\u51fa\u73b0\u6b21\u6570\u7684\u65b9\u6cd5 \u8fd9\u6837\u53ef\u4ee5\u770b\u51fa\u540c\u4e00\u4e2a\u624b\u673a\u53f7\u53d1\u4e86\u591a\u5c11\u6761\u4fe1\u606f\uff0c\u6709\u6548\u9632\u6b62\u4e2d\u4ecb\u7b49\u6076\u610f\u53d1\u4fe1\u606f\u7684\u884c\u4e3a\u3002<\/p>\n<p>\u65b9\u6cd5 \u5728\u540e\u53f0\u76ee\u5f55\u5b66\u627e\u5230 info.php\u6587\u4ef6 \u641c\u7d22 editi<\/p>\n<p>&nbsp;<\/p>\n<p>case &#8216;edit&#8217;:<\/p>\n<p>$id = intval($_REQUEST[&#8216;id&#8217;]);<\/p>\n<p>$sql = &#8220;SELECT * FROM {$table}info WHERE id = &#8216;$id'&#8221;;<\/p>\n<p>$info = $db-&gt;getrow($sql);<\/p>\n<p>if(empty($info)){show(&#8216;\u4fe1\u606f\u4e0d\u5b58\u5728&#8217;,&#8217;index.php&#8217;);}<\/p>\n<p>extract($info);<\/p>\n<p>$sql = &#8220;SELECT * FROM {$table}info_image WHERE infoid = &#8216;$id&#8217; &#8220;;<\/p>\n<p>$images = array();<\/p>\n<p>$images = $db-&gt;getall($sql);<\/p>\n<p>$up_img_count = count($images);<\/p>\n<p>$img_count = 6-$up_img_count;<\/p>\n<p>$postdate = date(&#8216;Y\u5e74m\u6708d\u65e5&#8217;, $postdate);<\/p>\n<p>$enddate \u00a0= round(($enddate&gt;0 ? ($enddate-time()) : &#8216;0&#8217;)\/(3600*24));<\/p>\n<p>$is_pro = $is_pro &gt; &#8216;0&#8217; ? date(&#8216;Y-m-d&#8217;, $is_pro) : &#8221;;<\/p>\n<p>$is_top = $is_top &gt; &#8216;0&#8217; ? date(&#8216;Y-m-d&#8217;, $is_top) : &#8221;;<\/p>\n<p>$custom = cat_post_custom($catid,$id);<\/p>\n<p>$info_area = area_options($areaid);<\/p>\n<p>$info_cat = cat_options($catid);<\/p>\n<p>if($phone!=&#8221;){<\/p>\n<p>$count_phone = $db-&gt;getOne(&#8220;select COUNT(1) \u00a0FROM {$table}info WHERE phone=&#8217;$phone&#8217; &#8220;);<\/p>\n<p>}\/\/\u7edf\u8ba1\u7535\u8bdd\u6b21\u6570<\/p>\n<p>if($qq!=&#8221;){<\/p>\n<p>$count_qq = $db-&gt;getOne(&#8220;select COUNT(1) \u00a0FROM {$table}info WHERE qq=&#8217;$qq&#8217; &#8220;);<\/p>\n<p>}\/\/\u7edf\u8ba1QQ\u6b21\u6570<\/p>\n<p>if(!empty($mappoint)) {<\/p>\n<p>$mappoints = explode(&#8216;,&#8217;, $mappoint);<\/p>\n<p>} elseif (!empty($CFG[&#8216;map&#8217;])) {<\/p>\n<p>$mappoints = explode(&#8216;,&#8217;, $CFG[&#8216;map&#8217;]);<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>\u6dfb\u52a0\u4e0a\u9762\u7ea2\u8272\u7684\u90a3\u4e24\u6761 \u00a0\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>&nbsp;<\/p>\n<p>\u7136\u540e\u5728\u540e\u53f0\u00a0templates \u76ee\u5f55\u4e0b\u627e\u5230\u00a0edit_info.htm \u6587\u4ef6 \u5728\u6a21\u677f\u91cc \u8c03\u7528\u4e00\u4e0b \u5c31\u53ef\u4ee5\u4e86 \u8c03\u7528\u65b9\u6cd5 \u89c1\u7ea2\u8272\u7684\u5b57\u4f53<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td align=&#8221;right&#8221;&gt;\u7535\u8bdd\uff1a&lt;\/td&gt;<\/p>\n<p>&lt;td&gt;&lt;input name=phone type=text id=phone value=&#8221;&lt;?=$phone?&gt;&#8221; maxLength=20&gt;\u51fa\u73b0\u6b21\u6570\uff1a&lt;b&gt;&lt;?=$count_phone?&gt;&lt;\/b&gt;&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td align=&#8221;right&#8221;&gt;QQ\uff1a&lt;\/td&gt;<\/p>\n<p>&lt;td&gt;&lt;input name=qq type=text id=qq value=&#8221;&lt;?=$qq?&gt;&#8221; maxLength=15&gt;\u51fa\u73b0\u6b21\u6570\uff1a&lt;b&gt;&lt;?=$count_qq?&gt;&lt;\/b&gt;&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u4e86<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<div>\u00a0$count_phone\u00a0=\u00a0$db-&gt;getOne(&#8220;select\u00a0COUNT(1)\u00a0\u00a0FROM\u00a0{$table}info\u00a0WHERE\u00a0phone=&#8217;$phone&#8217;\u00a0and\u00a0is_check=1\u00a0&#8220;);\/\/\u7edf\u8ba1\u5df2\u5ba1\u6838\u7684\u4fe1\u606f\u4e2d\u901a\u4e00\u4e2a\u7535\u8bdd\u51fa\u73b0\u7684\u6b21\u6570<\/div>\n","protected":false},"excerpt":{"rendered":"<p>phpmps\u540e\u53f0\u7edf\u8ba1 \u540c\u4e00\u4e2a\u624b\u673a\u53f7\u548cQQ\u51fa\u73b0\u6b21\u6570\u7684\u65b9\u6cd5 \u8fd9\u6837\u53ef\u4ee5\u770b\u51fa\u540c\u4e00\u4e2a\u624b\u673a\u53f7\u53d1\u4e86\u591a\u5c11\u6761\u4fe1\u606f\uff0c\u6709\u6548\u9632\u6b62\u4e2d\u4ecb\u7b49 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[218,219,238,643],"_links":{"self":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/850"}],"collection":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=850"}],"version-history":[{"count":0,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=\/wp\/v2\/posts\/850\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.aiti123.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}