$j_url = "{$basename}&action=cache"; } elseif ($_POST['step'] == 'photo') { $j_url = "{$basename}&action=photo"; } $updatecache && updatecache_cnc(); adminmsg('operate_success', $j_url); } elseif ($action == 'thread') { S::gp(array('cyid')); if ($_POST['step'] == 'updatecache') { $j_url = "{$basename}&action=cache"; $cyid = (int) $cyid; !$cyid && adminmsg('illegal_group_cyid', $j_url); require_once R_P . 'apps/groups/lib/colony.class.php'; $newColony = new PwColony($cyid); $colony = $newColony->getInfo(); $count = $newColony->getArgumentCount(); if ($count != $colony['tnum']) { $newColony->updateInfoCount(array('tnum' => $count)); } adminmsg('operate_success', $j_url); } } elseif ($action == 'class') { $classdb = $isclass = array(); $query = $db->query("SELECT * FROM pw_cnclass"); while ($rt = $db->fetch_array($query)) { $classdb[$rt['fid']] = $rt; if ($rt['ifopen']) { $isclass[] = $rt['fid']; } } if (empty($_POST['step'])) {
$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) { $galbumLimit = $groupRight['layout']['galbum']['num'] > 0 ? intval($groupRight['layout']['galbum']['num']) : 8;