{"id":5538,"date":"2024-04-26T11:05:13","date_gmt":"2024-04-26T03:05:13","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5538"},"modified":"2024-04-26T11:08:22","modified_gmt":"2024-04-26T03:08:22","slug":"%e7%bb%87%e6%a2%a6%ef%bc%88dedecms%ef%bc%89%e5%86%85%e5%ae%b9%e9%a1%b5%e5%85%b3%e9%94%ae%e5%ad%97%e5%8a%a0%e9%93%be%e6%8e%a5%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5538.html","title":{"rendered":"\u7ec7\u68a6\uff08DEDECMS\uff09\u5185\u5bb9\u9875\u5173\u952e\u5b57\u52a0\u94fe\u63a5\u7684\u65b9\u6cd5"},"content":{"rendered":"

\u5185\u94fe\u5728seo\u7f51\u7ad9\u4f18\u5316\u4e2d\uff0c\u8fd8\u662f\u5f88\u91cd\u8981\u7684\uff0c\u53ea\u8981\u505aseo\uff0c\u6587\u7ae0\u4e2d\u57fa\u672c\u4e0a\u90fd\u6709\u5185\u94fe\uff0c\u4f46\u5982\u679c\u6bcf\u7bc7\u6587\u7ae0\u90fd\u624b\u52a8\u6765\u8bbe\u7f6e\u7684\u8bdd\uff0c\u90a3\u5c31\u5f88\u8d39\u65f6\u8d39\u529b\u4e86\uff0c\u7ec7\u68a6\u81ea\u8eab\u5c31\u5e26\u6709\u81ea\u52a8\u5185\u94fe\u7684\u529f\u80fd\uff0c\u4e0b\u9762\u6211\u4eec\u5c31\u6765\u770b\u770b\u64cd\u4f5c\u6d41\u7a0b\u3002<\/p>\n

 <\/p>\n

\u4e00\u3001\u201c\u7cfb\u7edf\u201d--\u201c\u7cfb\u7edf\u57fa\u672c\u53c2\u6570\u201d--\u201c\u6838\u5fc3\u8bbe\u7f6e\u201d--\u201c\u5173\u952e\u5b57\u66ff\u6362(\u662f\/\u5426)\u201d\u628a\u4ed6\u8bbe\u7f6e\u4e3a\u201c\u662f\u201d<\/p>\n

\"\"<\/a><\/p>\n

\u4e8c\u3001\u201c\u7cfb\u7edf\u201d--\u201c\u7cfb\u7edf\u57fa\u672c\u53c2\u6570\u201d--\u201c\u5176\u4ed6\u9009\u9879\u201d--\u201c\u5173\u952e\u8bcd\u66ff\u6362\u6b21\u6570(0\u4e3a\u5168\u90e8\u66ff\u6362)\u201d\u628a\u4ed6\u8bbe\u7f6e\u4e3a\u201c0\u201d<\/p>\n

\u6211\u8fd9\u91cc\u8bbe\u7f6e\u4e3a1\u7684\u8bdd\uff0c\u5173\u952e\u5b57\u5e76\u4e0d\u81ea\u52a8\u52a0\u4e0a\u94fe\u63a5 \u3002\u8bbe\u7f6e0\u662f\u81ea\u52a8\u52a0\u4e0a\u94fe\u63a5\u7684\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u4e09\u3001\u201c\u6838\u5fc3\u201d--\u201c\u6279\u91cf\u7ef4\u62a4\u201d--\u201c\u6587\u6863\u5173\u952e\u8bcd\u7ef4\u62a4\u201d<\/p>\n

\u8fd9\u91cc\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u5173\u952e\u5b57\u53ca\u94fe\u63a5\u5730\u5740\uff0c<\/p>\n

\"\"<\/a><\/p>\n

\u8fd9\u91cc\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u8fd9\u91cc\u8bbe\u7f6e\u7684\u5173\u952e\u5b57\uff0c\u5728\u4f60\u7684\u6587\u6863\u5173\u952e\u5b57\u4e00\u680f\u91cc\u4e5f\u5fc5\u987b\u6709\u8fd9\u4e2a\u8bcd\u624d\u4f1a\u751f\u6548\u3002<\/p>\n

\"\"<\/a><\/p>\n

\u5982\u679c\u60f3\u8981\u5176\u4ed6 \u5173\u952e\u5b57\u4e5f\u81ea\u52a8\u52a0\u4e0a\u94fe\u63a5\uff0c\u53ef\u8fdb\u884c\u4e0b\u9762\u64cd\u4f5c\u3002<\/p>\n

\u6253\u5f00\/include\/arc.archives.class.php<\/p>\n

\u641c\u7d22\u4e0b\u9762\u4ee3\u7801<\/p>\n

foreach($kws as $k)\r\n{\r\n$k = trim($k);\r\nif($k!=\"\")\r\n{\r\nif($i > $maxkey)\r\n{\r\nbreak;\r\n}\r\n$myrow = $this->dsql->GetOne(\"select * from #@__keywords where keyword='$k' And rpurl<>'' \");\r\nif(is_array($myrow))\r\n{\r\n$karr[] = $k;\r\n$GLOBALS['replaced'][$k] = 0;\r\n$kaarr[] = \"<a href='{$myrow['rpurl']}'><u>$k<\/u><\/a>\";\r\n}\r\n$i++;\r\n}\r\n}<\/code><\/pre>\n

\u628a\u5b83\u66ff\u6362\u6210\u4e0b\u9762\u4ee3\u7801\uff1a<\/p>\n

$query=\"select keyword,rpurl from #@__keywords where rpurl<>'' order by rank desc limit 0,$maxkey\";\r\n$this->dsql->SetQuery($query); \r\n$this->dsql->Execute(); \r\nwhile($row = $this->dsql->GetArray()) \r\n{ \r\n\t$key = trim($row['keyword']); \r\n\t$rul = trim($row['rpurl']); \r\n\tif(substr_count($body,$key)<10) \r\n\t{            \r\n\t\t$karr[] = $key; \r\n\t\t$kaarr[] = \"<a href='$rul'><u>$key<\/u><\/a>\"; \r\n\t} \r\n}\r\n<\/code><\/pre>\n

 <\/p>\n

\u94fe\u63a5\u91cc\u9762\u4f1a\u6709\u4e0b\u5212\u7ebf\uff0c\u4f60\u53ef\u4ee5\u628a\u4e0a\u9762\u4ee3\u7801\u91cc\u9762\u7684<u>\u548c<\/u>\uff0c\u5220\u9664\u6389\u5c31\u884c\u4e86\u3002<\/p>\n

\u6709\u65f6\u5173\u952e\u5b57\u6709\u957f\u77ed\u4f18\u5148\u7ea7\u7684\u95ee\u9898\u3002\u53ef\u53c2\u8003\u4e0b\u9762\u5730\u5740\u89e3\u51b3\u3002<\/p>\n

\u7ec7\u68a6DEDECMS\u5173\u952e\u8bcd\u81ea\u52a8\u5185\u94fe\u548c\u5173\u952e\u8bcd\u957f\u77ed\u4f18\u5148\u7ea7\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u5185\u94fe\u5728seo\u7f51\u7ad9\u4f18\u5316\u4e2d\uff0c\u8fd8\u662f\u5f88\u91cd\u8981\u7684\uff0c\u53ea\u8981\u505aseo\uff0c\u6587\u7ae0\u4e2d\u57fa\u672c\u4e0a\u90fd\u6709\u5185\u94fe\uff0c\u4f46\u5982\u679c\u6bcf\u7bc7\u6587\u7ae0\u90fd\u624b\u52a8\u6765\u8bbe\u7f6e\u7684\u8bdd\uff0c\u90a3\u5c31 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1739,180],"class_list":["post-5538","post","type-post","status-publish","format-standard","hentry","category-web","tag-1739","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5538","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=5538"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5538\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}