getModuleConfig('point'); } $config = $GLOBALS['_pointConfig']; // 포인트 모델을 구해 놓음 if(!$GLOBALS['_pointModel']) $GLOBALS['_pointModel'] = getModel('point'); $oPointModel = &$GLOBALS['_pointModel']; // 포인트를 구함 $point = $oPointModel->getPoint($member_srl); // 레벨을 구함 $level = $oPointModel->getLevel($point, $config->level_step); $text = $matches[5]; // 레벨 아이콘의 위치를 구함 $level_icon = sprintf("./modules/point/icons/%s/%d.gif", $config->level_icon, $level); // 최고 레벨이 아니면 다음 레벨로 가기 위한 per을 구함 if($level < $config->max_level) { $next_point = $config->level_step[$level+1]; if($next_point > 0) $per = (int)($point / $next_point*100); } $title = sprintf("%s:%s%s %s, %s:%s/%s", Context::getLang('point'), $point, $config->point_name, $per?"(".$per."%)":"", Context::getLang('level'), $level, $config->max_level); $text = sprintf('%s%s', $member_srl, $level_icon, $title, $title, $text); $GLOBALS['_pointLevelIcon'][$member_srl] = $text; } return $GLOBALS['_pointLevelIcon'][$member_srl]; } ?>