Exemple #1
0
SCR == 'mode' && ObHeader('apps.php?' . $pwServer['QUERY_STRING']);
if ($db_question && $o_groups_p_qcheck) {
    $qkey = array_rand($db_question);
}
S::gp(array('cyid', 'page'), null, 2);
$db_perpage = 10;
require_once R_P . 'apps/groups/lib/colony.class.php';
$newColony = new PwColony($cyid);
if (!($colony =& $newColony->getInfo())) {
    Showmsg('data_error');
}
//当群组视图关闭状态下
$ajaxList = array('join', 'out', 'uintro', 'writepost', 'writedel', 'del', 'ajaxedit', 'fanoutmsg', 'checkpostright');
$acList = array('join', 'quit', 'delmember', 'sendmsg', 'exportmember', 'del');
if ($colony['viewtype'] == 1 && !(in_array($a, $ajaxList) || $a == 'active' && in_array($job, $acList))) {
    $newColony->jumpToBBS($q, $a, $cyid);
} elseif ($colony['viewtype'] == '0') {
    $cnclass['fid'] = $db->get_value("SELECT fid FROM pw_cnclass WHERE fid=" . S::sqlEscape($colony['classid']) . " AND ifopen=1");
}
require_once R_P . 'require/bbscode.php';
$newColony->initBanner();
$groupRight =& $newColony->getRight();
if ($groupRight['modeset']['thread']['ifopen'] != 1 && $a == 'thread') {
    ObHeader("apps.php?q=group&cyid={$cyid}");
}
$colony_name = $newColony->getNameStyle();
$descrip = convert($colony['descrip'], array());
if ($colony['ifcyer']) {
    if ($timestamp - $colony['lastvisit'] > 3600) {
        $db->update("UPDATE pw_cmembers SET lastvisit=" . S::sqlEscape($timestamp) . ' WHERE id=' . S::sqlEscape($colony['ifcyer']));
    }