{ global $DB_CONNECT; $Group_Data = db_query("SELECT * FROM kimsmall7_members_group ORDER BY MG_TYPE", $DB_CONNECT); while ($MEMBER_GROUP = db_fetch_array($Group_Data)) { $MemberType_Array[] = $MEMBER_GROUP[MG_NAME]; } return $MemberType_Array; } function getClose($alert) { echo "<meta http-equiv='content-type' content='text/html; charset=euc-kr'>"; echo "<script language=javascript>\n"; if ($alert) { echo "alert('\\n{$alert} \\n');\n"; } echo "opener.location.reload();"; echo "window.close();"; echo "</script>\n"; exit; } $MB_GROUP = getMemberGroup(); $MYDATA = getMyID(); // 회원의 데이터를 배열의 형태로 얻는다. $v_LogId = $MYDATA[MB_ID]; // 로그인한 회원의 아이디 if (!$v_LogId) { exit; } // 로그인하지 않았다면 Stop $TERM = explode('/', $mbr[term_cash]); $TNUM = sizeof($TERM);
return '../../../table/' . $table . '/upload/' . urldecode($file); } else { if ($link) { return urldecode($link); } } return ''; } function Skin_Line($color, $height, $cols, $full) { $line = $full ? "<table width=100% cellspacing=0 cellpadding=0>" : ""; $line .= "<tr bgcolor='" . $color . "' height='" . $height . "'><td colspan='" . $cols . "'><img width=1 height=1></td></tr>"; $line .= $full ? "</table>" : ""; return $line; } $MEMBER = getMyID(); // 회원의 데이터를 배열의 형태로 얻는다. $v_LogId = $MEMBER[MB_ID]; // 로그인한 회원의 아이디 $isRoot = getIsRoot(); $isAdmin = getIsAdmin($v_LogId, $bbs[AdminMember]); $gSkinImg = '../../../../bbs/skin/' . $bbs[Skin] . '/image'; $ViewPerm = getEnterPerm($bbs[ViewPm], "", true, true); if (!$ViewPerm) { echo "<script>"; echo "alert('손님께서는 접근권한이 없습니다. ');"; echo "window.close();"; echo "</script>"; exit; } $WritePerm = getEnterPerm($bbs[WritePm], "", true, true);