コード例 #1
0
ファイル: index.php プロジェクト: baiyunping333/seo-marketing
        $result = $db->query($sqlSelect);
        $arrResult = $db->fetch_array($result);
        $key = $arrResult['key'];
        $epath = $arrResult['epath'];
        $arrPath = explode('/', $epath);
        echo '<li><a href="http://' . $arrPath[0] . $indexContent->mainDomain . '/' . $arrPath[1] . '">' . $key . '</a></li>';
    }
    echo '</body></html>';
    $db->close();
    die;
}
//--------------------初始化数据--------------------------------------------
$indexContent->AnalysisData($arrResult, $arrBaiduViewId);
$arrResult = null;
unset($arrResult);
$indexContent->SetCreateTime($createTime);
$indexContent->AnalysisCache();
//--------------------无需更新--------------------------------------------
if (!$indexContent->NeedUp() && $indexContent->conIndex != '') {
    $db->close();
    $indexContent->Show($cfg->isMemcached, $memcached);
    die;
}
$upTimes = $indexContent->cid > 500 ? 86400 : 432000;
$indexContent->SetUpTimes($upTimes);
//--------------------更新百度--------------------------------------------
$sqlUpBaidu = '';
$indexContent->CleanBaiduArray();
$baiduLinks = '';
foreach ($arrBaiduViewId as $k => $v) {
    $baidu = new baidu();