무통장 쇼핑몰 스킨
본문
무통장 쇼핑몰 스킨...
정말 간절히 찾던 스킨이 올라왔는데..
설치법이 없어 skin/board에 shopmall 업로드 했구요.
바로구매 버튼을 누르면 아래 이미지처럼 깨져 보이지 않네요.
[자료파일]
http://sir.kr/g4_skin/153833?sfl=wr_subject%7C%7Cwr_content&stx=%EB%AC%B4%ED%86%B5%EC%9E%A5
오류내용을 보면 이렇습니다.
Warning: include_once(../../) [function.include-once]: failed to open stream: Success in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 4
Warning: include_once() [function.include]: Failed opening '../../' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 4
Warning: include_once(/config.php) [function.include-once]: failed to open stream: No such file or directory in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 5
Warning: include_once() [function.include]: Failed opening '/config.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 5
==================================================================================
order.php 파일입니다.
혹시 어느 경로를 수정하면 될까요,
<?
include_once "_common.php";
include_once("$g4[path]/head.sub.php");
include_once("../../$board[bo_include_head]");
include_once("$board_skin_path/config.php");
//************************************************************
//
// 스킨명 : 카멜레온 간이몰 스킨
// 버 젼 : 2006-03-16일짜 버젼
// 제작자 : ⓒⓒⓒ (Soonho Choi) http://cm-builder.com
// MSN : top-*** 개인정보보호를 위한 이메일주소 노출방지 ***
//
// 저작권 : 이 주석 부분을 훼손하지않은 상태에서 수정및 사용이 자유롭습니다.
//
//************************************************************
$view = get_view($write, $board, $board_skin_path);
$view_w = 240; //썸네일 가로사이즈
$view_h = 240; //썸네일 세로사이즈
$icon_new = $icon_good = $icon_hit = $icon_point = $icon_aa = $icon_sellout ="";
if($view[wr_type1]) $icon_new = "<img src='$board_skin_path/img/icon_type1.gif' align=absmiddle>";
if($view[wr_type2]) $icon_good = "<img src='$board_skin_path/img/icon_type2.gif' align=absmiddle>";
if($view[wr_type3]) $icon_hit = "<img src='$board_skin_path/img/icon_type3.gif' align=absmiddle>";
if($view[wr_type4]) $icon_sellout = "<img src='$board_skin_path/img/icon_pumjul.gif' align=absmiddle>";
?>
<div style="height:12px; line-height:1px; font-size:1px;"> </div>
<!-- 게시글 보기 시작 -->
<table width="<?=$width?>" align="center" cellpadding="0" cellspcing="0"><tr><td>
<? if($is_admin =='super') { ?>
<table width='<?=$width?>' cellpadding=0 cellspacing=0>
<tr height=35>
<td width=75%>
<? echo "<a href=\"$g4[bbs_path]/board.php?bo_table=$bo_table\"><img src='$board_skin_path/img/btn_list.gif' border='0' align='absmiddle'></a> "; ?>
</td>
<td width=25% align=right>
</td>
</tr>
</table>
<? } ?>
<table width="<?=$width?>" border="0" cellpadding="0" cellspacing="1" bgcolor="EDF6FD">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="4" bgcolor="EDF6FD">
<tr><td bgcolor="FFFFFF" align="center" style="padding:10px">
<table width="100%" align="center" cellpadding="0" cellspacing="0">
<form name=order method="POST" action="javascript:order_submit(document.order);" autocomplete="off">
<input type=hidden name=bo_table value='<?=$bo_table?>'>
<input type=hidden name=wr_id value='<?=$wr_id?>'>
<input type=hidden name=od_price value='<?=$view[wr_9]?>'>
<input type=hidden name=od_total_price value='<?=($total_price+$view[wr_13])?>'>
<input type=hidden name=od_qty value='<?=$wr_qty?>'>
<tr><td width='290' align="center">
<!-- image view -->
<?
// 파일 출력
for ($i=0; $i < 1; $i++) {
//썸네일 코드 시작
$data_path = $g4['path'] . "/data/file/{$bo_table}";//라이브러리 파일 참조
$thumb_path = $data_path . '/thumbView';
if (!is_dir($thumb_path)) {
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
}
$filename = $view[file][$i][file]; //파일명
$thumb = $thumb_path.'/'.$filename; //썸네일
if (!file_exists($thumb))
{
$file = $data_path.'/'.$filename; //원본
if (preg_match("/\.(jp[e]?g|gif|png)$/i", $file) && file_exists($file))
{
$size = getimagesize($file);
if ($size[2] == 1)
$src = imagecreatefromgif($file);
else if ($size[2] == 2)
$src = imagecreatefromjpeg($file);
else if ($size[2] == 3)
$src = imagecreatefrompng($file);
else
continue;
$rate = $view_w / $size[0];
$height = (int)($size[1] * $rate);
if ($height < $view_h)
$dst = imagecreatetruecolor($view_w, $view_h);
else
$dst = imagecreatetruecolor($view_w, $view_h);
imagecopyresampled($dst, $src, 0, 0, 0, 0, $view_w, $height, $size[0], $size[1]);
imagejpeg($dst, $thumb_path.'/'.$filename, 100);
chmod($thumb_path.'/'.$filename, 0707);
}
}
if (file_exists($thumb) && $filename) {
echo "<img src='$thumb' style='border:1px solid #E2E2E2;'>";
}
}
?>
<br>
<a href='#' onclick="javascript:window.open('<?=$board_skin_path?>/view_open.php?bo_table=<?=$bo_table?>&wr_id=<?=$wr_id?>','view_open','width=800,height=560,top=50,left=50,scrollbars=yes,resizable=yes')"><img src="<?=$board_skin_path?>/img/icon_open.gif" border="0"></a>
<!-- /image view -->
</td>
<td width="450" valign=top>
<table cellpadding=0 cellspacing=0 border=0 width=100%>
<tr><td colspan=3 height=5></td></tr>
<tr>
<td colspan="3"><font color="#000000" size="3"><b><?=$view[subject]?></b></font>
<?=$icon_new?><?=$icon_good?><?=$icon_hit?><?=$icon_point?><?=$icon_aa?><?=$icon_sellout?></td></tr>
<tr><td colspan=3 height=5></td></tr>
<tr><td colspan=3 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td colspan=3 height=5></td></tr>
<tr><td height=20><b>ㆍ</b>상품코드</td>
<td>:</td>
<td><font color="#0000ff"><?=$view[wr_11]?></font></td></tr>
<tr><td height=20><b>ㆍ</b>옵션/기타</td>
<td>:</td>
<td><?=$view[wr_12]?></td></tr>
<tr><td width="100" height=20><b>ㆍ</b>판매가격</td>
<td width="10">:</td>
<td><strong><?=number_format($view[wr_9])?> 원</strong></td>
</tr>
<? if ($view[wr_1]) { ?>
<tr><td height=20><b>ㆍ</b><?=$view[wr_5]?></td>
<td>:</td>
<td><?=number_format($view[wr_1])?> 원</td>
</tr>
<? } ?>
<? if ($view[wr_2]) { ?>
<tr><td height=20><b>ㆍ</b><?=$view[wr_6]?></td>
<td>:</td>
<td><?=number_format($view[wr_2])?> 원</td>
</tr>
<? } ?>
<? if ($view[wr_3]) { ?>
<tr><td height=20><b>ㆍ</b><?=$view[wr_7]?></td>
<td>:</td>
<td><?=number_format($view[wr_3])?> 원</td>
</tr>
<? } ?>
<? if ($view[wr_4]) { ?>
<tr><td height=20><b>ㆍ</b><?=$view[wr_8]?></td>
<td>:</td>
<td><?=number_format($view[wr_4])?> 원</td>
</tr>
<? } ?>
<tr><td height=20><b>ㆍ</b>구매수량</td>
<td>:</td>
<td><strong><font color="#ff0000"><?=$wr_qty?></font></strong> 개</td></tr>
<tr><td height=20><b>ㆍ</b>배송비</td>
<td>:</td>
<td><strong><?=number_format($view[wr_13])?> 원<strong></td></tr>
<tr><td height=20><b>ㆍ</b>합계</td>
<td>:</td>
<td><?=number_format($total_price+$view[wr_13])?> 원</td></tr>
<tr><td colspan=3 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td colspan=3 height=10></td></tr>
</table>
<!-- /spec list -->
</td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
<div style='height:10px;'></div>
<TABLE cellpadding=0 cellspacing=0 border=0 width=100%>
<TR>
<TD colspan=2 height=2 bgcolor=#dddddd></TD>
</TR>
<TR>
<TD colspan=2 height=30 style='padding-left:20px;'><b>주문정보입력</b></TD>
</TR>
<TR>
<TD colspan=2 height=2 bgcolor=#dddddd></TD>
</TR>
<tr><td colspan="2" height="10"></td></tr>
<tr><td style='padding-left:25px;'>· 받는분 성명</td><td align=left><input type=text name=od_name value='<?=$od_name?>' class=input itemname="받는분 성함" required></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td style='padding-left:25px;'>· 연락처1</td><td><input type=text name=od_tel value='<?=$od_tel?>' class=input itemname="받는분 연락처" required></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td style='padding-left:25px;'>· 연락처2</td><td><input type=text name=od_hp value='<?=$od_hp?>' class=input></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td style='padding-left:25px;'>· 받는분 주소</td>
<td><input type=text name=od_zip1 size=4 value='<?=$od_zip1?>' class=input>-
<input type=text name=od_zip2 size=4 value='<?=$od_zip2?>' class=input>
<a href="javascript:;" onclick="win_zip('order', 'od_zip1', 'od_zip2', 'od_addr1', 'od_addr2');"><img width="91" height="20" src="<?=$g4[path]?>/skin/member/basic/img/post_search_btn.gif" border=0 align=absmiddle></a>
</td></tr>
<tr><td></td><td><input type=text name=od_addr1 style='width:70%' value='<?=$od_addr1?>' class=input itemname="주소" required><br>
<input type=text name=od_addr2 style='width:28%' value='<?=$od_addr2?>' class=input></td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td colspan="2" height="10"></td></tr>
<tr><td style='padding-left:25px;'>· 입금은행</td>
<td><!--<input type=text name=od_bank_use value='농협 307055-52-058134' class=input size=50 itemname="입금은행" required>-->
<select name='od_bank_use' class='ed' itemname='입금은행' required>
<option value='359-20-286020' <? if($write[od_bank_use] == "359-20-286020") echo "selected"; ?>>기업은행 (108-123623-04-014 / (주)참다운경제교육)</option>
</select>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#e7e7e7></td></tr>
<tr><td style='padding-left:25px;'>· 기 타</td>
<td><textarea name=od_memo rows="5" style="width:100%;" class=input></textarea>
</td></tr>
<tr><td colspan=2 height=1 bgcolor=#dddddd></td></tr>
<tr><td height=20></td></tr>
<tr><td height=20 colspan=2 align=center>
<input type=image src='<?=$board_skin_path?>/img/btn_order.gif'>
<a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$board_skin_path?>/img/btn_orlist.gif' border=0></a>
</td></tr>
</form>
</table>
</td></tr></table>
<script language="JavaScript">
function resize_image() {
var target = document.getElementsByName('target_resize_image[]');
for(i=0; i<target.length; i++) {
target[i].tmp_width = target[i].width;
target[i].tmp_height = target[i].height;
}
}
function order_submit(f)
{
f.action = "<?=$board_skin_path?>/order_u.php";
f.submit();
}
window.onload = resize_image;
</script>
<?
if ($board[bo_content_tail]) echo stripslashes($board[bo_content_tail]);
if ($board[bo_image_tail]) echo "<img src='$g4[path]/data/file/$bo_table/$board[bo_image_tail]' border='0'>";
if ($board[bo_include_tail]) @include ("../../$board[bo_include_tail]");
include_once("$g4[path]/tail.sub.php");
?>
답변 2
에러구문에 답이 있습니다. 아래 4행과 5행에서 인클루드가 되지 않아 발생된 에러구요.
include_once("../../$board[bo_include_head]");
include_once("$board_skin_path/config.php");
order.php 파일에서 $board[bo_include_head], $board_skin_path 두 변수값이 지정되지 않아 발생되는 것이니 제공받은 스킨을 참고하셔서 변수에 값이 지정되어야 합니다.
이미지에 엑박이 뜨는 문제 역시
$board_skin_path/img/icon_type1.gif 와 같이 $board_skin_path 변수가 지정되어 있으므로 해당 변수에 값이 지정되고 해당경로에 이미지가 존재한다면 정상적으로 이미지가 로드됩니다.
카츠님 혹시 이렇게 하라는 말씀인가요?
<?
include_once "_common.php";
include_once("$g4[path]/head.sub.php");
$board = sql_fetch(" select * from $g4[board_table] where bo_table='shopmall' ");
$board_skin_path = "$g4[path]/skin/board/shopmall";
include_once("../../$board[bo_include_head]");
include_once("$board_skin_path/config.php");
이렇게 적용하니 아래와 같은 오류메시지가 띄네요.
Warning: include_once(../../) [function.include-once]: failed to open stream: Success in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 6
Warning: include_once() [function.include]: Failed opening '../../' for inclusion (include_path='.:/usr/local/php/lib/php') in /www/hofwin.godohosting.com/board/skin/board/shopmall/order.php on line 6
"아래 구문에서 shopmall 은 실제 shopmall 스킨을 지정한 게시판의 bo_table 값을 지정해주세요."
라고 말씀하셨는데 이걸 어떡해 해야 하나요.
제가 초보라서 그러는데 좀 쉽게 설명 좀 부탁드려도 될까요. 죄송합니다.