示例#1
0
文件: thread.php 项目: jechiy/PHPWind
pwCache::getData(D_P . 'data/bbscache/cache_thread.php');
S::gp(array('cyid'), '', 2);
S::gp(array('search', 'topicsearch', 'searchname'));
if ($cyid) {
    !$db_groups_open && Showmsg('groups_close');
    S::gp(array('showtype'));
    require_once R_P . 'apps/groups/lib/colony.class.php';
    //* include_once pwCache::getPath(D_P . 'data/bbscache/o_config.php',true);
    pwCache::getData(D_P . 'data/bbscache/o_config.php');
    $newColony = new PwColony($cyid);
    if (!($colony =& $newColony->getInfo())) {
        Showmsg('data_error');
    }
    $ifadmin = $newColony->getIfadmin();
    //当群组视图关闭状态下
    $colony['viewtype'] == 2 && $newColony->jumpToColony($showtype, $cyid);
    $fid = $colony['classid'];
    $tmpUrlAdd .= '&a=thread';
    if ($showtype && in_array($showtype, array('galbum', 'member', 'active', 'write', 'set'))) {
        $tmpUrlAdd = '';
        require_once S::escapePath(R_P . "require/thread_{$showtype}.php");
    }
    require_once R_P . 'require/bbscode.php';
    require_once R_P . 'require/functions.php';
    $colony['descrip'] = convert($colony['descrip'], array());
    $annouce = convert(nl2br($colony['annouce']), $db_windpost);
    $colonyNums = PwColony::calculateCredit($colony);
    $magdb = $newColony->getManager();
}
$viewcolony = $cyid ? "cyid={$cyid}" : "fid={$fid}";
//读取版块信息