{"id":2506,"date":"2019-03-27T14:31:39","date_gmt":"2019-03-27T06:31:39","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2506"},"modified":"2019-04-24T01:24:43","modified_gmt":"2019-04-23T17:24:43","slug":"%e7%bb%87%e6%a2%a6dedecms%e5%85%a8%e7%ab%99%e4%bc%aa%e9%9d%99%e6%80%81%ef%bc%88%e7%94%b5%e8%84%91%e6%89%8b%e6%9c%ba%e7%a7%bb%e5%8a%a8%ef%bc%89pinyin%e6%8b%bc%e9%9f%b3%e7%89%88","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2506.html","title":{"rendered":"\u7ec7\u68a6DEDECMS\u5168\u7ad9\u4f2a\u9759\u6001\uff08\u7535\u8111+\u624b\u673a\u79fb\u52a8\uff09{pinyin}\u62fc\u97f3\u7248"},"content":{"rendered":"

\u6b64\u6559\u7a0b\u9002\u5408\u9700\u8981\u628a\u6587\u7ae0\u6807\u9898URL\u62fc\u97f3\u5316\u670b\u53cb\u4eec\uff0c\u4e5f\u5c31\u662f\u6587\u7ae0\u547d\u540d\u4e3a{pinyin},\u5982\u679c\u4f60\u7684\u6587\u7ae0\u662f{aid} \u6587\u7ae0ID\u7684\u547d\u540d\uff0c\u8bf7\u67e5\u770b\u81ea\u7531\u5316\u76ee\u5f55\u4f2a\u9759\u6001\u89c4\u5219\u914d\u7f6e<\/a><\/p>\n

\u505a\u597d\u4f2a\u9759\u6001\u4ee5\u540e\uff0c\u6587\u7ae0\u540d\u79f0\u5c31\u662f\u62fc\u97f3\u7684\u4e86<\/p>\n

\u7535\u8111\u7aef\u8bbf\u95ee\u7684URL\u5730\u5740\u7c7b\u4f3c\u6548\u679c\u5982\u4e0b<\/h2>\n

\u65b0\u95fb\u5217\u8868\u9875\u2003 http:\/\/www.123.com\/xinwenzixun\/
\n\u65b0\u95fb\u5217\u8868\u5206\u9875 http:\/\/www.123.com\/xinwenzixun\/list_9_1.html
\n\u5185\u5bb9\u9875\u2003\u2003\u2003 http:\/\/www.123.com\/xinwenzixun\/weijingtaiceshi.html
\n\u5185\u5bb9\u9875\u5206\u9875\u2003 http:\/\/www.123.com\/xinwenzixun\/weijingtaiceshi_2.html
\nTAG\u6807\u7b7e\u9875\u2003 http:\/\/www.123.com\/tags\/\u624b\u673a\/
\nTAG\u6807\u7b7e\u5206\u9875 http:\/\/www.123.com\/tags\/\u624b\u673a\/2\/
\n\u641c\u7d22\u9875\u2003\u2003\u2003 http:\/\/www.123.com\/search\/\u624b\u673a.html
\n\u641c\u7d22\u9875\u5206\u9875\u2003 http:\/\/www.123.com\/search\/\u624b\u673a-2.html<\/p>\n

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

\u624b\u673a\u7aef\u8bbf\u95ee\u7684URL\u5730\u5740\u7c7b\u4f3c\u6548\u679c\u5982\u4e0b<\/h2>\n

\u65b0\u95fb\u5217\u8868\u9875\u2003 http:\/\/m.123.com\/xinwenzixun\/
\n\u65b0\u95fb\u5217\u8868\u5206\u9875 http:\/\/m.123.com\/xinwenzixun\/list_9_1.html
\n\u5185\u5bb9\u9875\u2003\u2003\u2003 http:\/\/m.123.com\/xinwenzixun\/weijingtaiceshi.html
\n\u5185\u5bb9\u9875\u5206\u9875\u2003 http:\/\/m.123.com\/xinwenzixun\/weijingtaiceshi_2.html
\nTAG\u6807\u7b7e\u9875\u2003 http:\/\/m.123.com\/tags\/\u624b\u673a\/
\nTAG\u6807\u7b7e\u5206\u9875 http:\/\/m.123.com\/tags\/\u624b\u673a\/2\/
\n\u641c\u7d22\u9875\u2003\u2003\u2003 http:\/\/m.123.com\/search\/\u624b\u673a.html
\n\u641c\u7d22\u9875\u5206\u9875\u2003 http:\/\/m.123.com\/search\/\u624b\u673a-2.html<\/p>\n

\u4e0b\u9762\uff0c\u6211\u4eec\u5c31\u5f00\u59cb\u8bbe\u7f6e\u4f2a\u9759\u6001\u4e86<\/p>\n

\u7b2c\u4e00\u6b65\uff0c\u540e\u53f0\u8bbe\u7f6e<\/h2>\n

1\u3001\u5b89\u88c5\u7ec7\u68a6\u5168\u7ad9\u52a8\u6001\u9759\u6001\u63d2\u4ef6<\/p>\n\n\n\t\"Placeholder\"\n\t\u4e0b\u8f7d1101<\/div>\n\n\t\n\n\t\t

dedecms\u7ec7\u68a6\u5168\u7ad9\u52a8\u9759\u6001\u8bbe\u7f6e.zip<\/h1>\n\n\t\t\t\t\t\t\n\t\t\t\u4e0b\u8f7d\u6587\u4ef6\t\t\tdedecms\u7ec7\u68a6\u5168\u7ad9\u52a8\u9759\u6001\u8bbe\u7f6e.zip\t\t\t\t– 8.53 KB<\/small>\n\t\t<\/a>\n\t\t\t<\/div>\n<\/aside>\n\n\n\n

\u4e0b\u8f7d\u540e\uff0c\u6839\u636e\u4f60\u7684\u7f51\u7ad9\u7f16\u7801\u5b89\u88c5\u76f8\u5e94\u63d2\u4ef6\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u628a\u5168\u7ad9\u8bbe\u7f6e\u4e3a\u52a8\u6001<\/p>\n

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

2\u3001\u540e\u53f0\u5f00\u542f\u4f2a\u9759\u6001<\/p>\n

\u7cfb\u7edf\u57fa\u672c\u53c2\u6570-\u6838\u5fc3\u53c2\u6570\u91cc\u9762\u5f00\u542f\u4f2a\u9759\u6001\uff0c<\/p>\n

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

\u5185\u5bb9\u542f\u7528\u7edd\u5bf9\u7f51\u5740\u6539\u6210\u201c\u5426\u201d<\/p>\n

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

3\u3001\u540e\u53f0\u8bbe\u7f6e\u680f\u76ee\u6587\u7ae0\u547d\u540d\u89c4\u5219\u4e3a\u62fc\u97f3{pinyin}\uff0c\u5982\u679c\u662f\u65b0\u7ad9\uff0c\u680f\u76ee\u5c11\uff0c\u624b\u52a8\u4fee\u6539\u5c31\u884c\u4e86\uff0c\u5982\u679c \u5df2\u7ecf\u6709\u5f88\u591a\u680f\u76ee\u4e86\uff0c\u4e0d\u60f3\u4e00\u4e2a\u4e2a\u680f\u76ee\u8bbe\u7f6e\u7684\u8bdd\uff0c\u53ef\u4ee5\u7528SQL\u6279\u91cf\u8bbe\u7f6e\u6240\u6709\u680f\u76ee<\/p>\n

UPDATE `#@__arctype` SET `namerule` = '{typedir}\/{pinyin}.html';<\/code><\/pre>\n

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

4\u3001\u5728\u6570\u636e\u5e93\u6587\u6863\u6570\u636e\u8868\u662f\u52a0\u5165\u62fc\u97f3\u5b57\u6bb5\uff0c\u540e\u53f0-\u7cfb\u7edf-SQL\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u6267\u884c\u4e0b\u5217\u4ee3\u7801<\/p>\n

ALTER TABLE `#@__archives` ADD `pinyin` VARCHAR( 255 ) NOT NULL DEFAULT '';<\/code><\/pre>\n

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

5\u3001\u628a\u6587\u6863\u6570\u636e\u8868\u5df2\u6709\u6570\u636e\u7684\u62fc\u97f3\u5b57\u6bb5\u751f\u6210\u62fc\u97f3\uff0c\u5728\u7f51\u7ad9\u6839\u76ee\u5f55\u4e0b\u65b0\u5efa\u4e00\u4e2aPHP\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n

<?php\r\nrequire_once (dirname(__FILE__) . \"\/include\/common.inc.php\");\r\n$dsql->SetQuery(\"SELECT id,title FROM `#@__archives`\");\r\n$dsql->Execute('c');\r\nwhile($row = $dsql->GetObject('c'))\r\n{\r\n\t$pinyin = GetPinyin($row->title);\r\n\t$dsql->ExecuteNoneQuery(\"UPDATE `#@__archives` SET pinyin='{$pinyin}' WHERE id='{$row->id}'\");\r\n}\r\nShowMsg(\"\u5b8c\u6210\",\"javascript:;\");\r\nexit();<\/code><\/pre>\n

\u6211\u547d\u540d\u4e3a1.php\uff0c\u7136\u540e\u5728\u6d4f\u89c8\u5668\u91cc\u9762\u6267\u884c\u8fd9\u4e2a\u6587\u4ef6\uff0c\u6267\u884c\u5b8c\u6210\u540e\uff0c\u5220\u9664\u3002\u5982\u679c\u4f60\u7684\u7ad9\u6ca1\u5185\u5bb9\uff0c\u5168\u65b0\u8bbe\u7f6e\uff0c\u8fd9\u4e00\u6b65\u53ef\u4ee5\u5ffd\u7565\u3002<\/p>\n

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

6\u3001\u4fee\u6539\u540e\u53f0\u6587\u4ef6\u8ba9\u4ee5\u540e\u7f16\u8f91\u548c\u6dfb\u52a0\u6587\u6863\u81ea\u52a8\u751f\u6210\u62fc\u97f3{pinyin}\u5230\u62fc\u97f3\u5b57\u6bb5\uff0c\u6253\u5f00 \/dede\/inc\/inc_archives_functions.php \uff0c\u641c\u7d22<\/p>\n

global $envs, $typeid;<\/code><\/pre>\n

\u5927\u7ea6\u5728398\u884c\uff0c\u5728\u5b83\u4e0b\u9762\u52a0\u5165<\/p>\n

global $dsql;<\/code><\/pre>\n

\u641c\u7d22<\/p>\n

$arc = new Archives($aid);<\/code><\/pre>\n

402\uff0c\u884c\u5728\u5b83\u4e0b\u9762\u52a0\u5165<\/p>\n

$pinyin = GetPinyin($arc->Fields['title']);\r\n$dsql->ExecuteNoneQuery(\"Update `#@__archives` set pinyin='{$pinyin}' where id='{$aid}'\");<\/code><\/pre>\n

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

\u7ea2\u6846\u91cc\u5373\u662f\u52a0\u5165\u7684\u4ee3\u7801<\/p>\n

\u7b2c\u4e8c\u6b65\uff0c\u7535\u8111\u7248\u4f2a\u9759\u6001\u6559\u7a0b\u5f00\u59cb\uff0c\u4fee\u6539\u7a0b\u5e8f\u6587\u4ef6<\/h2>\n

1\u3001\u5217\u8868\u9875\u548c\u5185\u5bb9\u9875\u4f2a\u9759\u6001\u94fe\u63a5<\/strong><\/p>\n

\u6253\u5f00 \/plus\/list.php \u641c\u7d22<\/p>\n

$tid = (isset($tid) && is_numeric($tid) ? $tid : 0);<\/code><\/pre>\n

\u5927\u7ea6\u572816\u884c\uff0c\u628a\u5b83\u4fee\u6539\u4e3a\uff1a<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n    if(!is_numeric($tid))\r\n    {\r\n        $typedir = parse_url($tid, PHP_URL_PATH);\r\n        $PageNo = stripos(GetCurUrl(), '.html') ? intval(str_replace('.html', '', end(explode(\"_\", GetCurUrl())))) : 1;\r\n        $tinfos = $dsql->GetOne(\"SELECT * FROM `#@__arctype` WHERE typedir='\/$typedir' or typedir='{cmspath}\/$typedir'\");\r\n\r\n        if(is_array($tinfos))\r\n        {\r\n            $tid = $tinfos['id'];\r\n            $typeid = GetSonIds($tid);\r\n            $row = $dsql->GetOne(\"Select count(id) as total From `#@__archives` where typeid in({$typeid})\");\r\n        }\r\n        else\r\n        {\r\n            $tid = 0;\r\n        }\r\n    }\r\n}\r\nelse\r\n{\r\n\t$tid = (isset($tid) && is_numeric($tid) ? $tid : 0);\r\n}<\/code><\/pre>\n

\u6253\u5f00 \/plus\/view.php \u641c\u7d22<\/p>\n

$t1 = ExecTime();<\/code><\/pre>\n

\u5927\u7ea6\u572819\u884c\uff0c\u5728\u5b83\u4e0b\u9762\u52a0\u5165<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n\t$aid = stripos(GetCurUrl(), '.html') ? str_replace('.html', '', end(explode(\"\/\", GetCurUrl()))) : 0;\r\n\t$row = $dsql->GetOne(\"SELECT id FROM `#@__archives` WHERE pinyin='$aid'\");\r\n\t$aid = $row['id'];\r\n}<\/code><\/pre>\n

\u6253\u5f00 \/include\/arc.listview.class.php \u641c\u7d22<\/p>\n

\/\/\u83b7\u5f97\u4e0a\u4e00\u9875\u548c\u4e0b\u4e00\u9875\u7684\u94fe\u63a5<\/code><\/pre>\n

\u5927\u7ea6\u57281136\u884c\uff0c\u5728\u5b83\u4e0a\u9762\u52a0\u5165<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n\t$purl = \"\";\r\n}\r\nelse\r\n{\r\n\t$geturl = \"tid=\".$this->TypeID.\"&TotalResult=\".$this->TotalResult.\"&\";\r\n\t$purl .= '?'.$geturl;\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$plist = str_replace('.php?tid=', '-', $plist);<\/code><\/pre>\n

\u5728\u5b83\u4e0a\u9762\u52a0\u5165<\/p>\n

$tnamerule = $this->GetMakeFileRule($this->Fields['id'],\"list\",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields['namerule2']);\r\n$tnamerule = preg_replace(\"\/^(.*)\\\/\/\", '', $tnamerule);\r\n$plist = preg_replace(\"\/PageNo=(\\d+)\/i\",str_replace(\"{page}\",\"\\\\1\",$tnamerule),$plist);<\/code><\/pre>\n

\u6253\u5f00 \/include\/helpers\/channelunit.helper.php\uff0c\u641c\u7d22<\/p>\n

global $cfg_typedir_df;<\/code><\/pre>\n

\u4fee\u6539\u4e3a\uff1a<\/p>\n

global $cfg_typedir_df, $cfg_rewrite;<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$reurl = $GLOBALS['cfg_phpurl'].\"\/list.php?tid=\".$typeid;<\/code><\/pre>\n

\u4fee\u6539\u4e3a\uff1a<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n    $reurl = $typedir.'\/';\r\n}\r\nelse\r\n{\r\n    \/\/\u52a8\u6001\r\n    $reurl = $GLOBALS['cfg_phpurl'].\"\/list.php?tid=\".$typeid;\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

return $GLOBALS[\"cfg_plus_dir\"].\"\/view-\".$aid.'-1.html';<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

$articleDir = MfTypedir($typedir);\r\n$articleRule = strtolower($namerule);\r\nif($articleRule=='')\r\n{\r\n\t$articleRule = strtolower($GLOBALS['cfg_df_namerule']);\r\n}\r\nif($typedir=='')\r\n{\r\n\t$articleDir  = $GLOBALS['cfg_cmspath'].$GLOBALS['cfg_arcdir'];\r\n}\r\n$dtime = GetDateMk($timetag);\r\nlist($y, $m, $d) = explode('-', $dtime);\r\n$arr_rpsource = array('{typedir}','{y}','{m}','{d}','{timestamp}','{aid}','{cc}');\r\n$arr_rpvalues = array($articleDir,$y, $m, $d, $timetag, $aid, dd2char($m.$d.$aid.$y));\r\nif($filename != '')\r\n{\r\n\t$articleRule = dirname($articleRule).'\/'.$filename.$GLOBALS['cfg_df_ext'];\r\n}\r\n$articleRule = str_replace($arr_rpsource,$arr_rpvalues,$articleRule);\r\nif(preg_match(\"\/\\{p\/\", $articleRule))\r\n{\r\n\t$articleRule = str_replace('{pinyin}',GetPinyin($title),$articleRule);\r\n\t$articleRule = str_replace('{py}',GetPinyin($title,1).'_'.$aid,$articleRule);\r\n}\r\n$articleUrl = '\/'.preg_replace(\"\/^\\\/\/\", '', $articleRule);\r\nif(preg_match(\"\/index\\.html\/\", $articleUrl) && $cfg_arc_dirname=='Y')\r\n{\r\n\t$articleUrl = str_replace('index.html', '', $articleUrl);\r\n}\r\nreturn $articleUrl;<\/code><\/pre>\n

2\u3001TAG\u6807\u7b7e\u4f2a\u9759\u6001\u94fe\u63a5<\/strong><\/p>\n

\u6253\u5f00 \/include\/taglib\/tag.lib.php \u641c\u7d22<\/p>\n

$row['link'] = $cfg_cmsurl.\"\/tags.php?\/\".urlencode($row['keyword']).\"\/\";<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

$row['link'] = $cfg_cmsurl.\"\/tags\/\".urlencode($row['keyword']).\"\/\";<\/code><\/pre>\n

3\u3001TAG\u6807\u7b7e\u5206\u9875\u4f2a\u9759\u6001\u94fe\u63a5<\/strong><\/p>\n

\u6253\u5f00 \/include\/arc.taglist.class.php \u641c\u7d22<\/p>\n

$this->PageNo = $GLOBALS['PageNo'];<\/code><\/pre>\n

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

if($this->PageNo == 0)\r\n{\r\n    $this->PageNo = 1;\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$prepage=\"\";<\/code><\/pre>\n

\u5728\u5b83\u4e0a\u9762\u52a0\u5165<\/p>\n

global $cfg_rewrite;<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$purl .= \"?\/\".urlencode($this->Tag);<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n    $purl = \"\/tags\/\".urlencode($this->Tag);\r\n}\r\nelse\r\n{\r\n    $purl .= \"?\/\".urlencode($this->Tag);\r\n}<\/code><\/pre>\n

4\u3001\u641c\u7d22\u9875\u4f2a\u9759\u6001\u94fe\u63a5<\/strong><\/p>\n

\u6253\u5f00 \/plus\/search.php \u641c\u7d22<\/p>\n

$mid = (isset($mid) && is_numeric($mid)) ? $mid : 0;<\/code><\/pre>\n

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

if ( $mobile==1 )\r\n{\r\n    define('DEDEMOB', 'Y');\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$t1 = ExecTime();<\/code><\/pre>\n

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

$keyword = preg_replace(\"\/-(\\d+)\/i\",'',$keyword);\r\n$oldkeyword = preg_replace(\"\/-(\\d+)\/i\",'',$oldkeyword);<\/code><\/pre>\n

\u6253\u5f00 \/include\/arc.searchview.class.php \u641c\u7d22<\/p>\n

global $oldkeyword;<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

global $oldkeyword, $cfg_rewrite;<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

$purl .= \"?\".$geturl;<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

if($cfg_rewrite != 'Y' && !defined('DEDEMOB'))\r\n{\r\n    $purl .= \"?\".$geturl;\r\n}\r\nelse\r\n{\r\n    $purl = '\/search\/'.urlencode($oldkeyword);\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

return $plist;<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

if($cfg_rewrite == 'Y')\r\n{\r\n\t$plist = preg_replace(\"\/PageNo=(\\d+)\/i\",'-\\\\1.html',$plist);\r\n}\r\nreturn $plist;<\/code><\/pre>\n

\u7535\u8111\u7248\u6a21\u677f\u91cc\u628a\u641c\u7d22\u6846\u4ee3\u7801\u6539\u6210\u9759\u6001\u7684js\u63d0\u4ea4\u641c\u7d22\uff0c\u53c2\u8003\u4e0b\u9762\u4ee3\u7801\uff0c\u6ce8\u610f\u6807\u7ea2\u7684\u5730\u65b9<\/p>\n

<script type=\"text\/javascript\">\r\nfunction search()<\/span>\r\n{\r\n    var q = document.getElementById(\"q\").value;\r\n    window.location.href = \"http:\/\/www.123.com\/search\/\"+q+\".html\";\r\n}\r\nfunction enterIn(obj,evt)\r\n{\r\n    var evt = evt ? evt : (window.event ? window.event : null);\r\n    if (evt.keyCode == 13)\r\n    {\r\n        var q = obj.value;\r\n        window.location.href = \"http:\/\/www.123.com\/search\/\"+q+\".html\";\r\n    }\r\n}\r\n<\/script><\/code><\/pre>\n

<form\u00a0action=\"\"<\/span>\u00a0method=\"post\"\u00a0onsubmit=\"return false\"<\/span>>
\n<div class=\"form\">
\n<h4>\u641c\u7d22<\/h4>
\n<input\u00a0name=\"q\" id=\"q\"\u00a0onkeydown=\"enterIn(this,event);\"<\/span>\u00a0type=\"text\" \/>
\n<button type=\"submit\" class=\"search-submit\"\u00a0onclick=\"search()\"<\/span>>\u641c\u7d22<\/button>
\n<\/div>
\n<\/form><\/p>\n

\u7b2c\u4e09\u6b65\u3001\u624b\u673a\u7248\u4f2a\u9759\u6001\u6559\u7a0b<\/h2>\n

1\u3001\u79fb\u52a8\u7248\u57df\u540d m.123.com \u89e3\u6790\u5e76\u6307\u5411\u548c\u7ed1\u5b9a\u76ee\u5f55\u5230\u7f51\u7ad9\u76ee\u5f55\u7684m\u6587\u4ef6\u5939<\/strong><\/p>\n

2\u3001\u540e\u53f0-\u7cfb\u7edf\u914d\u7f6e \u6dfb\u52a0\u53d8\u91cf<\/strong><\/p>\n

\u53d8\u91cf\u540d\u79f0:cfg_mobile
\n\u53d8\u91cf\u7c7b\u578b:\u6587\u672c
\n\u53c2\u6570\u8bf4\u660e:\u624b\u673a\u7248\u7f51\u5740
\n\u53d8\u91cf\u503c:http:\/\/m.123.com
\n\u6240\u5c5e\u7ec4:\u7ad9\u70b9\u8bbe\u7f6e
\n\"\"<\/a>
\n\u53d8\u91cf\u540d\u79f0:cfg_rewritem
\n\u53d8\u91cf\u7c7b\u578b:\u5e03\u5c14(Y\/N)
\n\u53c2\u6570\u8bf4\u660e:\u624b\u673a\u7248\u4f2a\u9759\u6001
\n\u53d8\u91cf\u503c:Y
\n\u6240\u5c5e\u7ec4:\u7ad9\u70b9\u8bbe\u7f6e<\/p>\n

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

\u6dfb\u52a0\u597d\u540e\u5982\u4e0b\uff1a<\/p>\n

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

3\u3001\u79fb\u52a8\u7248\u5f53\u524d\u4f4d\u7f6e {dede:field.position\/} \u6807\u7b7e\u52a8\u6001\u6539\u6210\u4f2a\u9759\u6001<\/strong><\/p>\n

\u6253\u5f00 \/include\/typelink.class.php \u641c\u7d22<\/p>\n

$indexpage = \"<a href='index.php'>\".$this->indexName.\"<\/a>\";<\/code><\/pre>\n

\u4fee\u6539\u4e3a\uff1a<\/p>\n

if($GLOBALS['cfg_rewritem'] == 'Y')\r\n{\r\n\t$indexpage = \"<a href='\".$GLOBALS['cfg_mobile'].\"'>\".$this->indexName.\"<\/a>\";\r\n}\r\nelse\r\n{\r\n\t$indexpage = \"<a href='index.php'>\".$this->indexName.\"<\/a>\";\r\n}<\/code><\/pre>\n

\u7ee7\u7eed\u641c\u7d22<\/p>\n

return 'list.php?tid='.$typeinfos['id'];<\/code><\/pre>\n

\u4fee\u6539\u4e3a<\/p>\n

if($GLOBALS['cfg_rewritem'] == 'Y')\r\n{\r\n\treturn GetTypeUrl($typeinfos['id'],MfTypedir($typeinfos['typedir']),$typeinfos['isdefault'],$typeinfos['defaultname'],$typeinfos['ispart'],$typeinfos['namerule2'],$typeinfos['moresite'],$typeinfos['siteurl'],$typeinfos['sitepath']);\r\n}\r\nelse\r\n{\r\n\treturn 'list.php?tid='.$typeinfos['id'];\r\n}<\/code><\/pre>\n

4\u3001m\u6587\u4ef6\u5939\u6587\u4ef6\u6dfb\u52a0\u548c\u66ff\u6362<\/strong><\/p>\n

\u4e0b\u8f7d\u540e\u8986\u76d6
\n
<\/i>\u7f51\u76d8\u4e0b\u8f7d \u5bc6\u7801: 1kap<\/a><\/p>\n

\u672c\u5730\u4e0b\u8f7d\uff1a<\/p>\n\n\n\t\"Placeholder\"\n\t\u4e0b\u8f7d798<\/div>\n\n\t\n\n\t\t

\u7ec7\u68a6\u624b\u673a\u7ad9\u81ea\u7531\u62fc\u97f3\u7248\u4f2a\u9759\u6001\u624b\u673a\u76ee\u5f55\u6587\u4ef6.zip<\/h1>\n\n\t\t\t\t\t\t\n\t\t\t\u4e0b\u8f7d\u6587\u4ef6\t\t\t\u7ec7\u68a6\u624b\u673a\u7ad9\u81ea\u7531\u62fc\u97f3\u7248\u4f2a\u9759\u6001\u624b\u673a\u76ee\u5f55\u6587\u4ef6.zip\t\t\t\t– 14.88 KB<\/small>\n\t\t<\/a>\n\t\t\t<\/div>\n<\/aside>\n\n\n\n

5\u3001\u628a\u6240\u6709\u79fb\u52a8\u7248\u6a21\u677f\u6587\u4ef6(_m.htm \u7ed3\u5c3e\u7684)\u91cc\u9762\u7684\u4ee3\u7801\u90fd\u6539\u6210\u7535\u8111\u7248<\/strong><\/p>\n

\u8bf7\u53c2\u8003\u4e0b\u9762\u4fee\u6539<\/p>\n

css\u3001js\u3001images<\/span> \u6539\u6210\u7edd\u5bf9\u8def\u5f84\uff0c\u4f8b\u5982 assets\/css\/\u00a0\u6539\u6210\u00a0\/assets\/css\/<\/p>\n

index.php<\/span>\u00a0\u6539\u6210\u00a0{dede:global.cfg_mobile\/}<\/p>\n

list.php?tid=[field:id\/]\u00a0<\/span>\u6539\u6210\u00a0[field:typelink\/]<\/p>\n

list.php?tid=~id~\u00a0<\/span>\u6539\u6210\u00a0~typelink~<\/p>\n

list.php?tid={dede:field name='id'\/}\u00a0<\/span>\u6539\u6210\u00a0{dede:field.typeurl\/}<\/p>\n

view.php?aid=[field:id\/]\u00a0<\/span>\u6539\u6210\u00a0[field:arcurl\/]<\/p>\n

[field:litpic\/]\u00a0<\/span>\u6539\u6210\u00a0[field:global.cfg_basehost\/][field:litpic\/]<\/p>\n

[field:image\/]\u00a0<\/span>\u6539\u6210\u00a0<img src=\"[field:global.cfg_basehost\/][field:litpic\/]\"><\/p>\n

\u4e0a\u4e00\u9875\u6807\u7b7e\u00a0{dede:prenext get='pre'\/}<\/p>\n

\u6539\u6210<\/p>\n

{dede:prenext get=pre runphp=yes}\r\n$preurl = @me;\r\npreg_match('\/aid=(d*)\/'<\/span>,$preurl,$match);\r\n$result = GetOneArchive($match[1<\/span>]);\r\n@me = !empty($result) ? \"\u4e0a\u4e00\u7bc7\uff1a<a href=\"<\/span>\/m<\/span>{$result['arcurl'<\/span>]}\">{$result['title']}<\/a>\"<\/span> : \"\u4e0a\u4e00\u7bc7\uff1a\u6ca1\u6709\u4e86\"<\/span>;\r\n{\/dede:prenext}<\/span><\/pre>\n

\u4e0b\u4e00\u9875\u6807\u7b7e\u00a0{dede:prenext get='next'\/}<\/p>\n

\u6539\u6210<\/p>\n

{dede:prenext get=next<\/span> runphp=yes}\r\n$preurl = @me;\r\npreg_match('\/aid=(d*)\/'<\/span>,$preurl,$match);\r\n$result = GetOneArchive($match[1<\/span>]);\r\n@me = !empty($result) ? \"\u4e0b\u4e00\u7bc7\uff1a<a href=\"<\/span>\/m<\/span>{$result['arcurl'<\/span>]}\">{$result['title']}<\/a>\"<\/span> : \"\u4e0b\u4e00\u7bc7\uff1a\u6ca1\u6709\u4e86\"<\/span>;\r\n{\/dede:prenext}<\/span><\/pre>\n

\u6587\u7ae0\u5185\u5bb9\u00a0{dede:field.body\/} \u6539\u6210<\/p>\n

{dede:field.body runphp=yes}\r\nglobal $cfg_basehost;\r\n$str = @me;\r\n$search = '\/(<img.*?)width=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search1 = '\/(<img.*?)height=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search2 = '#(<img.*?style=\".*?)width:\\d+px;([^\"]*?.*?>)#i';\r\n$search3 = '#(<img.*?style=\".*?)height:\\d+px;([^\"]*?.*?>)#i';\r\n$content = preg_replace($search,'$1$3',$str);\r\n$content = preg_replace($search1,'$1$3',$content);\r\n$content = preg_replace($search2,'$1$2',$content);\r\n$content = preg_replace($search3,'$1$2',$content);\r\n@me = $content;\r\n@me = str_replace('\/uploads\/allimg\/', $cfg_basehost.'\/uploads\/allimg\/', $content);\r\n{\/dede:field.body}<\/code><\/pre>\n

 <\/p>\n

\u680f\u76ee\u5185\u5bb9\u00a0{dede:field.content\/}<\/p>\n

\u6539\u6210<\/p>\n

{dede:field.content runphp=yes}\r\nglobal $cfg_basehost;\r\n$str = @me;\r\n$search = '\/(<img.*?)width=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search1 = '\/(<img.*?)height=([\"\\'])?.*?(?(2)\\2|\\s)([^>]+>)\/is';\r\n$search2 = '#(<img.*?style=\".*?)width:\\d+px;([^\"]*?.*?>)#i';\r\n$search3 = '#(<img.*?style=\".*?)height:\\d+px;([^\"]*?.*?>)#i';\r\n$content = preg_replace($search,'$1$3',$str);\r\n$content = preg_replace($search1,'$1$3',$content);\r\n$content = preg_replace($search2,'$1$2',$content);\r\n$content = preg_replace($search3,'$1$2',$content);\r\n@me = $content;\r\n@me = str_replace('\/uploads\/allimg\/', $cfg_basehost.'\/uploads\/allimg\/', $content);\r\n{\/dede:field.content}<\/code><\/pre>\n

 <\/p>\n

\u641c\u7d22\u6846\u4ee3\u7801\u6539\u6210\u9759\u6001\u7684js\u63d0\u4ea4\u641c\u7d22\uff0c\u53c2\u8003\u4e0b\u9762\u4ee3\u7801\uff0c\u6ce8\u610f\u6807\u7ea2\u7684\u5730\u65b9<\/p>\n

<script type=\"text\/javascript\">
\nfunction\u00a0search()<\/span>
\n{
\nvar q = document.getElementById(\"q<\/span>\").value;
\nwindow.location.href = \"http:\/\/m.123.com\/search<\/span>\/\"+q+\".html\";
\n}
\nfunction enterIn(obj,evt)
\n{
\nvar evt = evt ? evt : (window.event ? window.event : null);
\nif (evt.keyCode == 13)
\n{
\nvar q = obj.value;
\nwindow.location.href = \"http:\/\/m.123.com\/search<\/span>\/\"+q+\".html\";
\n}
\n}
\n<\/script>
\n<form\u00a0action=\"\"<\/span>\u00a0method=\"post\"\u00a0onsubmit=\"return false\"<\/span>>
\n<div class=\"form\">
\n<h4>\u641c\u7d22<\/h4>
\n<input\u00a0name=\"q\" id=\"q\"\u00a0onkeydown=\"enterIn(this,event);\"<\/span>\u00a0type=\"text\" \/>
\n<button type=\"submit\" class=\"search-submit\"\u00a0onclick=\"search()\"<\/span>>\u641c\u7d22<\/button>
\n<\/div>
\n<\/form><\/p>\n

\u7535\u8111\u7aef\u8df3\u8f6c\u79fb\u52a8\u7aef\u4ee3\u7801\uff1a<\/p>\n

\u9996\u9875<\/p>\n

<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobile\/}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobile\/}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n

\u5217\u8868\u8868<\/p>\n

<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobile\/}{dede:type}[field:typeurl\/]{\/dede:type}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobile\/}{dede:type}[field:typeurl\/]{\/dede:type}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n

\u5185\u5bb9\u9875<\/p>\n

<meta http-equiv=\"mobile-agent\" content=\"format=xhtml;url={dede:global.cfg_mobile\/}{dede:field.id runphp=yes}$result=GetOneArchive(@me);@me=$result['arcurl'];{\/dede:field.id}\">\r\n<script type=\"text\/javascript\">if(window.location.toString().indexOf('pref=padindex') != -1){}else{if(\/AppleWebKit.*Mobile\/i.test(navigator.userAgent) || (\/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE\/.test(navigator.userAgent))){if(window.location.href.indexOf(\"?mobile\")<0){try{if(\/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry\/i.test(navigator.userAgent)){window.location.href=\"{dede:global.cfg_mobile\/}{dede:field.id runphp=yes}$result=GetOneArchive(@me);@me=$result['arcurl'];{\/dede:field.id}\";}else if(\/iPad\/i.test(navigator.userAgent)){}else{}}catch(e){}}}}<\/script><\/code><\/pre>\n

 <\/p>\n

\u7ec7\u68a6\u7535\u8111\u7248+\u624b\u673a\u7248\u4f2a\u9759\u6001\u89c4\u5219-\u81ea\u7531\u62fc\u97f3\u7248\u4e0b\u8f7d
\n<\/i>\u7f51\u76d8\u4e0b\u8f7d \u5bc6\u7801: nrdk<\/a><\/p>\n

\u672c\u5730\u4e0b\u8f7d\n\n\t\"Placeholder\"\n\t\u4e0b\u8f7d796<\/div>\n\n\t\n\n\t\t

\u7ec7\u68a6\u7535\u8111\u7ad9\u624b\u673a\u7ad9\u4f2a\u9759\u6001\u89c4\u5219-\u81ea\u7531\u62fc\u97f3\u7248.zip<\/h1>\n\n\t\t\t\t\t\t\n\t\t\t\u4e0b\u8f7d\u6587\u4ef6\t\t\t\u7ec7\u68a6\u7535\u8111\u7ad9\u624b\u673a\u7ad9\u4f2a\u9759\u6001\u89c4\u5219-\u81ea\u7531\u62fc\u97f3\u7248.zip\t\t\t\t– 9.41 KB<\/small>\n\t\t<\/a>\n\t\t\t<\/div>\n<\/aside>\n\n\n<\/p>\n

\u8865\u5145<\/h2>\n

1\u3001\u8bbe\u7f6e\u5168\u7ad9\u4f2a\u9759\u6001\u540e\uff0c\u767b\u5f55\u540e\u53f0\u65f6\uff0c\u5fc5\u987b\u5728\u5730\u5740\u680f\u8865\u52a0\u4e0aindex.php\uff0c\u4f8b\u5982\uff1ahttp:\/\/www.123.com\/dede\/index.php\uff0c\u5426\u5219\u4f1a\u63d0\u793aRequest Error!\u9519\u8bef\u3002\u5982\u679c\u4f60\u767b\u5f55\u4e0d\u60f3\u52a0index.php\u6216\u8005\u67d0\u4e2a\u6587\u4ef6\u5939\u60f3\u6392\u9664\u7684\u670b\u53cb\uff0c\u53ef\u4ee5\u5728\u680f\u76ee\u5217\u8868\u4f2a\u9759\u6001\u89c4\u5219\u524d\u9762\u52a0\u4e2a\u6392\u9664\u76ee\u5f55\uff0c\u6392\u9664\u540e\u53f0\u76ee\u5f55\u4e0d\u4f7f\u7528\u4f2a\u9759\u6001<\/p>\n

#\u5217\u8868\u680f\u76ee\r\nRewriteRule ^(?!dede|m|admin)(.*)\/$ \/plus\/list.php?tid=$1<\/code><\/pre>\n

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

2\u3001\u6211\u5728\u672c\u5730IIS\u6d4b\u8bd5\u65f6\u53d1\u73b0\u641c\u7d22\u4f2a\u9759\u6001\u663e\u793a\u9519\u8bef\uff1aRequest Error!\uff0c\u539f\u6765\u662f\u6709\u4e2aBUG\uff0c\u6587\u7ae0\u7684\u4f2a\u9759\u6001\u89c4\u5219\u548c\u641c\u7d22\u7684\u89c4\u5219\u6709\u51b2\u7a81\uff0c\u89e3\u51b3\u65b9\u6cd5\u5c31\u662f\u628a\u641c\u7d22\u7684\u4f2a\u9759\u6001\u89c4\u5219\u653e\u5230\u6587\u7ae0\u4f2a\u9759\u6001\u89c4\u5219\u524d\u9762\u5e76\u5728\u540e\u9762\u52a0\u4e0a\u52a0[L]<\/span>\u5c31\u89e3\u51b3\u4e86\u3002<\/p>\n

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

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u6b64\u6559\u7a0b\u9002\u5408\u9700\u8981\u628a\u6587\u7ae0\u6807\u9898URL\u62fc\u97f3\u5316\u670b\u53cb\u4eec\uff0c\u4e5f\u5c31\u662f\u6587\u7ae0\u547d\u540d\u4e3a{pinyin},\u5982\u679c\u4f60\u7684\u6587\u7ae0\u662f{aid} \u6587\u7ae0I […]<\/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,844,358,843,842,841,180],"class_list":["post-2506","post","type-post","status-publish","format-standard","hentry","category-web","tag-dedecms","tag-pinyin","tag-358","tag-843","tag-842","tag-841","tag-180"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2506","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=2506"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2506\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}