コード例 #1
0
ファイル: detail.inc.php プロジェクト: TiMoChao/lc_ad_first
}
if ($arrInfo['stars'] > 0) {
    if (!empty($_SESSION['user_id'])) {
        if ($arrInfo['stars'] > $_SESSION['user_grade']) {
            check::AlertExit("会展信息会展信息法查看", -1);
        }
    } else {
        check::AlertExit("会展信息", -1);
    }
}
//会展信息题
$intTypeID = $arrInfo['type_id'];
if (is_array($arrMType) && !empty($arrMType)) {
    $arrMOutput["smarty_assign"]['strTypeTitle'] = $arrMType[$intTypeID];
} else {
    $arrTypeInfo = $objWebInit->getTypeInfo($intTypeID);
    $strTypeTitle = $arrTypeInfo['type_title'];
    $arrMOutput["smarty_assign"]['strTypeTitle'] = $strTypeTitle;
}
//SEO优化
if (!empty($arrInfo['meta_Title'])) {
    $strTitle = $arrInfo['meta_Title'];
} else {
    $strTitle = $arrInfo['title'];
}
if (!empty($arrInfo['meta_Description'])) {
    $strDescription = $arrInfo['meta_Description'];
} else {
    $strDescription = $strTitle . ',' . $arrInfo['summary'];
}
if (!empty($arrInfo['meta_Keywords'])) {