'','body' => '','source' => '','writer' => '','description' => '','keywords' => ''); $redatas['source'] = preg_replace("/http:\/\//i","",$gurl); $redatas['source'] = preg_replace("/\/(.*)$/i","",$redatas['source']); $row = $dsql->GetOne("SELECT * FROM `#@__co_onepage` WHERE url LIKE '".$redatas['source']."' "); $s = $e = ''; if(is_array($row)) { list($s,$e) = explode('{@body}',$row['rule']); $s = trim($s); $e = trim($e); if($row['issource']==1) { $redatas['source'] = $row['title']; } } $htd = new DedeHttpDown(); $htd->OpenUrl($gurl); $body = $htd->GetHtml(); if($body!='') { //编码自动转换 if($cfg_soft_lang=='utf-8') { if($row['lang']=='gb2312') { $body = gb2utf8($body); } } else if($cfg_soft_lang=='gb2312') { if($row['lang']=='utf-8') { $body = utf82gb($body); } } //获取标题 $inarr = array(); preg_match("/