답변 3개
채택된 답변
+20 포인트
영카트5 index.php에 보시면
<!-- 메인이미지 시작 { -->
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
<!-- } 메인이미지 끝 -->
이렇게 되어 있습니다.
라이브러리에는
Copy
// 배너출력function display_banner($position, $skin=''){ global $g5; if (!$position) $position = '왼쪽'; if (!$skin) $skin = 'boxbanner.skin.php'; $skin_path = G5_SHOP_SKIN_PATH.'/'.$skin; if(file_exists($skin_path)) { // 배너 출력 $sql = " select * from {$g5['g5_shop_banner_table']} where '".G5_TIME_YMDHIS."' between bn_begin_time and bn_end_time and bn_position = '$position' order by bn_order, bn_id desc "; $result = sql_query($sql); include $skin_path; } else { echo '<p>'.str_replace(G5_PATH.'/', '', $skin_path).'파일이 존재하지 않습니다.</p>'; }}
따라서 mainbanner.10.skin.php 을 확인 해보시는게 가장 좋은 방법이라 생각됩니다.
답변을 작성하려면 로그인이 필요합니다.