{"id":1786,"date":"2018-07-03T10:29:23","date_gmt":"2018-07-03T02:29:23","guid":{"rendered":"http:\/\/www.baishitou.cn\/?p=1786"},"modified":"2018-07-03T10:29:23","modified_gmt":"2018-07-03T02:29:23","slug":"%e7%bb%87%e6%a2%a6dedecms%e5%a2%9e%e5%8a%a0%e6%96%87%e7%ab%a0%e9%a1%b5%e5%ae%9e%e7%8e%b0%e9%98%85%e8%af%bb%e5%85%a8%e6%96%87%e5%8a%9f%e8%83%bd","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/1786.html","title":{"rendered":"\u7ec7\u68a6DedeCMS\u589e\u52a0\u6587\u7ae0\u9875\u5b9e\u73b0\u9605\u8bfb\u5168\u6587\u529f\u80fd"},"content":{"rendered":"
\u73b0\u5728\u5f88\u591a\u7f51\u7ad9\u5c24\u5176\u662f\u65b0\u95fb\u7c7b\u7f51\u7ad9\u90fd\u6709\u9605\u8bfb\u5168\u6587\u529f\u80fd\uff0c\u5f53\u4e00\u4e2a\u9875\u9762\u6709\u591a\u4e2a\u5206\u9875\u7684\u65f6\u5019\u5c31\u4f1a\u663e\u793a\u51fa\u8fd9\u4e2a\u201c\u9605\u8bfb\u5168\u6587\u201d\u7684\u94fe\u63a5\uff0c\u70b9\u51fb\u8fd9\u4e2a\u94fe\u63a5\u4e4b\u540e\u5c31\u662f\u8fd9\u7bc7\u6587\u7ae0\u4ee5\u6ca1\u6709\u5206\u9875\u51fa\u73b0\u7684\u5f62\u5f0f\uff0c\u90a3\u4e48dedecms\u5982\u4f55\u5728\u6587\u7ae0\u5185\u5bb9\u9875\u4e5f\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u5462\uff1f<\/p>\n
\u4fee\u6539\u65b9\u6cd5\uff1a<\/p>\n
\u627e\u5230\u5e76\u6253\u5f00\/include\/arc.archives.class.php\u6587\u4ef6\uff0c\u5728\u5927\u6982\u7b2c145\u884c\u5de6\u53f3\u7684\u4f4d\u7f6e\u627e\u5230\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n
$this->Fields['userip'] = $this->addTableRow['userip'];<\/code><\/pre>\n\u5728\u5b83\u4e0b\u9762\u6dfb\u52a0<\/p>\n
$this->Fields['body2'] = $this->addTableRow['body'];<\/code><\/pre>\n\u641c\u7d22\uff1a<\/p>\n
$this->dsql->ExecuteNoneQuery(\"Update `#\u3010\u5206\u9694\u7b26\u3011@__archives` SET ismake=1 WHERE id='\".$this->ArcID.\"'\");<\/code><\/pre>\n\u6ce8\u610f\uff0c\u67e5\u627e\u7684\u65f6\u5019\u624b\u52a8\u53bb\u6389\u4e0a\u9762\u7684\u90a3\u4e2a\u3010\u5206\u9694\u7b26\u3011\u5b57\u6837\uff0c\u627e\u5230\u540e\u5728\u5176\u4e0a\u9762\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n
\/\/\u9605\u8bfb\u5168\u6587\u5f00\u59cb \r\nif($this->TotalPage > 1) {\r\n \/\/\u7528\u6b63\u5219\u5339\u914d\u628a\u5206\u9875\u7b26\u53bb\u6389\r\n $this->Fields['body2'] = preg_replace('\/#p#\u526f\u6807\u9898#e#\/U', '',$this->Fields['body2']);\r\n $this->SplitFields = explode(\"#p2222#\",$this->Fields['body2']);\r\n $this->Fields['tmptitle'] = (empty($this->Fields['tmptitle']) ? $this->Fields['title'] : $this->Fields['tmptitle']);\r\n $this->Fields['title'] = $this->Fields['tmptitle'];\r\n $this->TotalPage = count($this->SplitFields);\r\n $this->Fields['totalpage'] = $this->TotalPage;\r\n $TRUEfilenameall = $this->GetTruePath().$fileFirst.\"_all.\".$this->ShortName;\r\n $this->ParseDMFields(1,0);\r\n $this->dtp->SaveTo($TRUEfilenameall); \r\n if($cfg_remote_site=='Y' && $isremote == 1)\r\n {\r\n \/\/\u5206\u6790\u8fdc\u7a0b\u6587\u4ef6\u8def\u5f84\r\n $remotefile = str_replace(DEDEROOT, '', $TRUEfilename);\r\n $localfile = '..'.$remotefile;\r\n \/\/\u521b\u5efa\u8fdc\u7a0b\u6587\u4ef6\u5939\r\n $remotedir = preg_replace(\"#[^\uff3c\/]*\uff3c.html#\", '', $remotefile);\r\n $this->ftp->rmkdir($remotedir);\r\n $this->ftp->upload($localfile, $remotefile, 'ascii');\r\n }\r\n } \r\n \/\/\u9605\u8bfb\u5168\u6587\u7ed3\u675f<\/code><\/pre>\n\u6dfb\u52a0\u5b8c\u6210\u4e4b\u540e\u7ee7\u7eed\u5728\u91cc\u9762\u67e5\u627e\u83b7\u5f97\u9759\u6001\u9875\u9762\u5206\u9875\u5217\u8868\u7684\u4ee3\u7801\uff0c\u91cc\u9762\u6709return $PageList;\u5728\u5b83\u4e0a\u9762\u6dfb\u52a0\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n
$PageList.= \"<a href='\".$this->NameFirst.\"_all.\".$this->ShortName.\"'>\u9605\u8bfb\u5168\u6587<\/a>\";<\/code><\/pre>\n\u4fee\u6539\u5b8c\u6210\u540e\uff0c\u751f\u6210\u4e00\u4e0b\u5185\u5bb9\u9875\u5c31\u53ef\u4ee5\u770b\u5230\u6548\u679c\u4e86\uff0c\u5f53\u6587\u7ae0\u5185\u5bb9\u592a\u591a\u5206\u6210\u591a\u9875\u4e4b\u540e\u5c31\u4f1a\u5728\u5217\u8868\u540e\u9762\u51fa\u73b0\u9605\u8bfb\u5168\u6587\u7684\u94fe\u63a5\u4e86\uff0c\u5927\u5bb6\u8d76\u5feb\u8bd5\u8bd5\u5427\u3002<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u73b0\u5728\u5f88\u591a\u7f51\u7ad9\u5c24\u5176\u662f\u65b0\u95fb\u7c7b\u7f51\u7ad9\u90fd\u6709\u9605\u8bfb\u5168\u6587\u529f\u80fd\uff0c\u5f53\u4e00\u4e2a\u9875\u9762\u6709\u591a\u4e2a\u5206\u9875\u7684\u65f6\u5019\u5c31\u4f1a\u663e\u793a\u51fa\u8fd9\u4e2a\u201c\u9605\u8bfb\u5168\u6587\u201d\u7684\u94fe\u63a5\uff0c\u70b9\u51fb […]<\/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,180],"class_list":["post-1786","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1786","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=1786"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/1786\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=1786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=1786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=1786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}