!$winduid && Showmsg('not_login'); S::gp(array('id')); require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveById($id)) || $active['cid'] != $cyid) { Showmsg('data_error'); } if (($return = $newActive->checkJoinStatus($id, $winduid)) !== true) { Showmsg($return); } if (empty($_POST['step'])) { require_once PrintEot('m_ajax'); ajax_footer(); } else { S::gp(array('realname', 'phone', 'mobile', 'address', 'anonymous')); $return = $newActive->appendMember($id, $winduid, array('realname' => $realname, 'phone' => $phone, 'mobile' => $mobile, 'address' => $address, 'anonymous' => $anonymous)); $return !== true && Showmsg($return); Showmsg("报名成功\treload"); } } elseif ($job == 'view') { S::gp(array('id', 'page'), '', 2); $page < 1 && ($page = 1); $tmpActionUrl .= '&job=view&id=' . $id; require_once A_P . 'groups/lib/active.class.php'; $newActive = new PW_Active(); if (!($active = $newActive->getActiveInfoById($id)) || $active['cid'] != $cyid) { Showmsg('data_error'); } //检查是否是群组的成员 $isJoin = $newActive->isJoin($id, $winduid); require_once R_P . 'require/showimg.php';