if ($db_apps_list['17']['status'] == 1) { $forumappinfo = array(); $forumappinfo = $appclient->showForumappinfo($fid, 'read', '17'); } if (is_array($db_threadconfig)) { $threadright = array(); $threadright = $appclient->getThreadRight(); } } /*The app client*/ //读取版块信息及权限判断 if (!($foruminfo = L::forum($fid))) { Showmsg('data_error'); } if (!S::inArray($windid, $manager)) { wind_forumcheck($foruminfo); } $forumset = $foruminfo['forumset']; if (!$foruminfo['allowvisit'] && $_G['allowread'] == 0 && $_COOKIE) { Showmsg('read_group_right'); } /**************************************/ $isTucool = $forumset['iftucool'] && getstatus($read['tpcstatus'], 5); if (is_array($customfield)) { foreach ($customfield as $key => $value) { if ($value['ifsys']) { continue; } $fieldinfo .= ',mi.field_' . (int) $value['id']; } }
$per['maxgraft'] = !$gRight['maxgraft'] ? 0 : $gRight['maxgraft']; $per['uploadmaxsize'] = ceil(($gRight['uploadmaxsize'] ? $gRight['uploadmaxsize'] : $db_uploadmaxsize) / 1024); !$gRight['uploadtype'] && ($gRight['uploadtype'] = $db_uploadfiletype); $gRight['uploadtype'] = unserialize($gRight['uploadtype']); $per['uptype'] = ''; foreach ($gRight['uploadtype'] as $key => $value) { $per['uptype'] .= ($per['uptype'] ? ', ' : '') . "{$key}:{$value}"; } unset($creditdb, $groups, $value, $ltitle, $gRight); } else { require_once R_P . 'require/forum.php'; if (!($rt = L::forum($fid))) { Showmsg('data_error'); } (!$rt || $rt['type'] == 'category') && Showmsg('data_error'); wind_forumcheck($rt); $forumset = $rt['forumset']; $forumset['link'] && Showmsg('data_error'); $per = $forumright = array(); $creditset = $credit->creditset($rt['creditset'], $db_creditset); foreach ($creditset as $key => $value) { foreach ($value as $k => $v) { $forumright[$k][$key] = (int) $v; } } $per['upload'] = $per['down'] = $per['rp'] = $per['post'] = $per['visit'] = 1; $per['name'] = strip_tags($rt['name']); if ($rt['allowvisit'] && strpos($rt['allowvisit'], ',' . $groupid . ',') === false) { $per['visit'] = 0; } if ($rt['allowpost'] && strpos($rt['allowpost'], ',' . $groupid . ',') === false || !$rt['allowpost'] && $_G['allowpost'] == 0) {