Showmsg('data_error'); } //检查是否是群组的成员 $isJoin = $newActive->isJoin($id, $winduid); require_once R_P . 'require/showimg.php'; list($active['icon']) = showfacedesign($active['icon'], 1, 'm'); $active = $newActive->convert($active); $membersLimit = 20; $actMembers = $newActive->getActMembers($id, $membersLimit); $webPageTitle = $colonySeo->getPageTitle($active['title'], $colony['cname']); $metaDescription = $colonySeo->getPageMetadescrip($active['introduction']); $metaKeywords = $colonySeo->getPageMetakeyword($active['title'], $colony['cname']); $active['content'] = str_replace("\n", '<br />', $active['content']); require_once R_P . 'require/bbscode.php'; $active['content'] = convert($active['content'], $db_windpost); if ($attachs = $newActive->getAttById($id)) { extract(L::style()); $attachShow = new attachShow($isGM || $pwSystem['delattach'], '', 0, 'active'); $attachShow->setData($attachs); $active += $attachShow->parseAttachs('tpc', $active['content'], $winduid == $active['uid']); } $newActive->updateHits($id); list($newactivedb) = $newActive->searchList(array('cid' => $cyid), 3, 0, 'id', 'DESC'); $hotactivedb = $newActive->getHotActive(3); $relateactivedb = $newActive->getRelateActive($id, 3); list($commentdb, $subcommentdb, $pages, $count) = getCommentDbByTypeid('active', $id, $page, "{$basename}a={$a}&job={$job}&cyid={$cyid}&id={$id}&"); $comment_type = 'active'; $comment_typeid = $id; list($isheader, $isfooter, $tplname, $isleft) = array(false, true, "m_group", true); } elseif ($job == 'quit') { define('AJAX', 1);
if ($active) { $active = $newActive->convert($active); $atc_content = $active['content']; ${'typeCheck_' . $active['type']} = ' checked'; ${'objecterCheck_' . $active['objecter']} = ' checked'; } else { $typeCheck_6 = $objecterCheck_0 = ' checked'; } $editor = getstatus($winddb['userstatus'], PW_USERSTATUS_EDITOR) ? 'wysiwyg' : 'textmode'; $_G['uploadtype'] && ($db_uploadfiletype = $_G['uploadtype']); $db_uploadfiletype = !empty($db_uploadfiletype) ? is_array($db_uploadfiletype) ? $db_uploadfiletype : unserialize($db_uploadfiletype) : array(); $attachAllow = pwJsonEncode($db_uploadfiletype); $imageAllow = pwJsonEncode(getAllowKeysFromArray($db_uploadfiletype, array('jpg', 'jpeg', 'gif', 'png', 'bmp'))); $attachUrl = 'pweditor.php?action=attach'; $attach = ''; if ($job == 'edit' && ($attachdb = $newActive->getAttById($id))) { foreach ($attachdb as $key => $value) { list($value['attachurl'], ) = geturl($value['attachurl'], 'lf'); $attach .= "'{$key}' : ['{$value['name']}', '{$value['size']}', '{$value['attachurl']}', '{$value['type']}', '{$value['special']}', '{$value['needrvrc']}', '{$value['ctype']}', '{$value['descrip']}'],"; } $attach = rtrim($attach, ','); } if ($db_allowupload && $_G['allowupload']) { $attachsService = L::loadClass('attachs', 'forum'); $mutiupload = intval($attachsService->countMultiUpload($winduid)); } require_once PrintEot('thread_active'); footer(); } else { S::gp(array('title', 'begintime', 'endtime', 'deadline', 'address', 'price', 'introduction', 'atc_content', 'limitnum'), 'P'); S::gp(array('type', 'objecter'), 'P', 2);