Exemple #1
0
$metaDescription = $colonySeo->getPageMetadescrip($colony['descrip']);
$metaKeywords = $colonySeo->getPageMetakeyword($colony['cname']);
if (empty($a)) {
    require_once R_P . 'require/showimg.php';
    $annouce = convert(nl2br($colony['annouce']), $db_windpost);
    list($faceurl) = showfacedesign($winddb['icon'], 1, 's');
    $colonyNums = PwColony::calculateCredit($colony);
    $udb = $uids = $newvisit = array();
    $indexModel = array('thread' => array(), 'galbum' => array(), 'write' => array());
    //话题区开始
    if ($groupRight['modeset']['thread']['ifopen'] && $groupRight['layout']['thread']['ifopen']) {
        $colony['count'] = 0;
        if ($colony['tnum'] > 0 && ($colony['ifopen'] || $ifadmin || $colony['ifcyer'])) {
            $_sql_where = $digest == 1 ? " AND a.digest=1" : '';
            $threadLimit = $groupRight['layout']['thread']['num'] > 0 ? intval($groupRight['layout']['thread']['num']) : 20;
            $argdb = $newColony->getArgument($_sql_where, 0, $threadLimit);
            $colony['count'] = $newColony->getArgumentCount($_sql_where);
            foreach ($argdb as $key => $rt) {
                $rt['postdate'] = get_date($rt['postdate'], 'm-d H:m:s');
                $rt['lastpost'] = get_date($rt['lastpost']);
                $rt['sub_subject'] = substrs($rt['subject'], 48, 'Y');
                $rt['sub_subject'] = $newColony->styleFormat($rt['sub_subject'], $rt['titlefont']);
                $indexModel['thread'][] = $rt;
                $uids[] = $rt['authorid'];
                $lastposter[] = $rt['lastposter'];
            }
        }
    }
    //相册区模块
    if ($groupRight['modeset']['galbum']['ifopen'] && $groupRight['layout']['galbum']['ifopen']) {
        if ($colony['photonum'] > 0) {