diff --git a/lib/cheditor.lib.php b/lib/cheditor.lib.php deleted file mode 100644 index 4bfe377a1..000000000 --- a/lib/cheditor.lib.php +++ /dev/null @@ -1,33 +0,0 @@ -{$content}"; -} - -function cheditor2($form, $id, $width='100%', $height='250') -{ - global $g4; - - return " - - "; -} - -function cheditor3($id) -{ - //return "document.getElementById('{$id}').value = ed_{$id}.outputHTML();"; - // body 태그 안의 내용만 반환 (백경동 님) - return "document.getElementById('{$id}').value = ed_{$id}.outputBodyHTML();"; -} -?> \ No newline at end of file diff --git a/lib/cheditor4.lib.php b/lib/cheditor4.lib.php deleted file mode 100644 index af2b201b2..000000000 --- a/lib/cheditor4.lib.php +++ /dev/null @@ -1,56 +0,0 @@ - - var ed_{$id} = new cheditor('ed_{$id}'); - ed_{$id}.config.editorHeight = '{$height}'; - ed_{$id}.config.editorWidth = '{$width}'; - ed_{$id}.inputForm = 'tx_{$id}'; - "; - } -} -else -{ - function cheditor1($id, $width='100%', $height='250') - { - global $g4; - - return " - "; - } -} - -function cheditor2($id, $content='') -{ - global $g4; - - return " - - "; -} - -function cheditor3($id) -{ - return "document.getElementById('tx_{$id}').value = ed_{$id}.outputBodyHTML();"; -} -?> diff --git a/shop/_common.php b/shop/_common.php index 3dadd2a9e..8f558eafb 100644 --- a/shop/_common.php +++ b/shop/_common.php @@ -1,4 +1,3 @@ \ No newline at end of file diff --git a/shop/_head.php b/shop/_head.php index a3adcd264..c3e0a4a26 100644 --- a/shop/_head.php +++ b/shop/_head.php @@ -1,4 +1,4 @@ \ No newline at end of file diff --git a/shop/_tail.php b/shop/_tail.php index ecb08437a..90772dd85 100644 --- a/shop/_tail.php +++ b/shop/_tail.php @@ -1,4 +1,4 @@ \ No newline at end of file diff --git a/shop/bannerhit.php b/shop/bannerhit.php index 8ccc7e37a..3bc36551d 100644 --- a/shop/bannerhit.php +++ b/shop/bannerhit.php @@ -1,12 +1,12 @@ - +\n"; + echo "$it_name\n"; } if ($i==0) - echo "\n"; + echo "\n"; ?>
  · "; - $it_name = get_text($row[it_name]); + $it_name = get_text($row['it_name']); // 이미지로 할 경우 //$it_name = get_it_image($row[it_id]."_s", 50, 50, $row[it_id]); - echo "$it_name
diff --git a/shop/boxcategory.inc.php b/shop/boxcategory.inc.php index eb43d855a..f9bfcff68 100644 --- a/shop/boxcategory.inc.php +++ b/shop/boxcategory.inc.php @@ -9,10 +9,10 @@ $sub_menu_left = 100; // 2단계 메뉴 왼쪽 좌표 (1단계 좌표에서 부 ?> - +"; + $menubody .= ""; // 맨밑줄은 출력하지 않음 if ($j < $hnum2) - $menubody .= ""; + $menubody .= ""; } if ($menubody) @@ -45,9 +45,9 @@ for ($i=0; $row=sql_fetch_array($hresult); $i++) $onmouseout = " layer_view('lmenu{$i}', 'lmenu_layer{$i}', 'hide'); "; } - $category_link = ""; + $category_link = ""; echo ""; - echo "\n"; if ($i<$hnum-1) // 맨밑줄은 출력하지 않음 - echo "\n"; + echo "\n"; } if ($i==0) diff --git a/shop/boxcommunity.inc.php b/shop/boxcommunity.inc.php index 41a60a48d..61ebd5b01 100644 --- a/shop/boxcommunity.inc.php +++ b/shop/boxcommunity.inc.php @@ -1,18 +1,18 @@
  · $row2[ca_name]
  · {$row2['ca_name']}
- + 0) - echo "\n"; + echo "\n"; - echo "\n"; + echo "\n"; } if ($i==0) diff --git a/shop/boxevent.inc.php b/shop/boxevent.inc.php index 53f4152ad..12e7430ec 100644 --- a/shop/boxevent.inc.php +++ b/shop/boxevent.inc.php @@ -1,25 +1,25 @@
  · $row[bo_subject]
  · {$row['bo_subject']}
- + 0) - echo "\n"; + echo "\n"; - $href = "$g4[shop_path]/event.php?ev_id=$row[ev_id]"; + $href = G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}"; // 이벤트 메뉴이미지가 있다면 - $event_img = "$g4[path]/data/event/$row[ev_id]_m"; + $event_img = G4_DATA_PATH."/event/{$row['ev_id']}_m"; if (file_exists($event_img)) { - echo ""; + echo ""; } else { - echo "\n";; + echo "\n";; } } diff --git a/shop/boxtodayview.inc.php b/shop/boxtodayview.inc.php index b979ba6cb..3028a87b4 100644 --- a/shop/boxtodayview.inc.php +++ b/shop/boxtodayview.inc.php @@ -1,27 +1,27 @@ - +
  · $row[ev_subject]
  · {$row['ev_subject']}
- + $tv_div[img_length]) - echo ""; + if ($tv_idx > $tv_div['img_length']) + echo ""; // 오늘 본 상품 이미지 출력 - echo ""; } @@ -44,5 +44,5 @@ include_once("./_head.php");
  
  
"; - for ($i=1; $i<=$tv_div[img_length]; $i++) + echo ""; // 오늘 본 상품갯수가 보여지는 최대 이미지 수 보다 크다면 아래로 화살표를 보임 - if ($tv_idx > $tv_div[img_length]) - echo ""; + if ($tv_idx > $tv_div['img_length']) + echo ""; } else { - echo ""; + echo ""; } ?> - +
"; + for ($i=1; $i<=$tv_div['img_length']; $i++) { echo "
"; echo ""; @@ -30,15 +30,15 @@ if ($tv_idx) echo "
@@ -47,7 +47,7 @@ else var goods_link = new Array(); 0 ; i--) + for (i=goods_current; i>0 ; i--) { k++; if (k > goods_length) @@ -110,10 +110,10 @@ function todayview_dn() 0; $i--) +for ($i=$tv_idx; $i>0; $i--) { $k++; - if ($k > $tv_div[img_length]) + if ($k > $tv_div['img_length']) break; $tv_it_id = get_session("ss_tv[$i]"); @@ -128,15 +128,15 @@ if ($tv_idx) "; } } @@ -162,7 +162,7 @@ else // 장바구니에 담기 // 변조 검사 //-------------------------------------------------------- $opt_amount = 0; - $sql = " select * from $g4[yc4_item_table] where it_id = '$_POST[it_id]' "; + $sql = " select * from {$g4['yc4_item_table']} where it_id = '{$_POST['it_id']}' "; $it = sql_fetch($sql); for ($i=1; $i<=6; $i++) { //$dst_opt = $_POST["it_opt".$i]; @@ -189,12 +189,12 @@ else // 장바구니에 담기 $amount = get_amount($it) + $opt_amount; // 상품가격이 다름 - if ((int)$amount !== (int)$_POST[it_amount]) + if ((int)$amount !== (int)$_POST['it_amount']) die("Error.."); - $point = $it[it_point]; + $point = $it['it_point']; // 포인트가 다름 - if ((int)$point !== (int)$_POST[it_point] && $config[cf_use_point]) + if ((int)$point !== (int)$_POST['it_point'] && $config['cf_use_point']) die("Error..."); //-------------------------------------------------------- @@ -203,66 +203,66 @@ else // 장바구니에 담기 // 재고 검사 //-------------------------------------------------------- // 이미 장바구니에 있는 같은 상품의 수량합계를 구한다. - $sql = " select SUM(ct_qty) as cnt from $g4[yc4_cart_table] - where it_id = '$_POST[it_id]' + $sql = " select SUM(ct_qty) as cnt from {$g4['yc4_cart_table']} + where it_id = '{$_POST['it_id']}' and on_uid = '$tmp_on_uid' "; $row = sql_fetch($sql); - $sum_qty = $row[cnt]; + $sum_qty = $row['cnt']; // 재고 구함 - $it_stock_qty = get_it_stock_qty($_POST[it_id]); - if ($ct_qty + $sum_qty > $it_stock_qty) + $it_stock_qty = get_it_stock_qty($_POST['it_id']); + if ($ct_qty + $sum_qty > $it_stock_qty) { alert("$it_name 의 재고수량이 부족합니다.\\n\\n현재 재고수량 : " . number_format($it_stock_qty) . " 개"); } //-------------------------------------------------------- // 바로구매에 있던 장바구니 자료를 지운다. - $result = sql_query(" delete from $g4[yc4_cart_table] where on_uid = '$tmp_on_uid' and ct_direct = 1 ", false); + $result = sql_query(" delete from {$g4['yc4_cart_table']} where on_uid = '$tmp_on_uid' and ct_direct = 1 ", false); if (!$result) { // 삭제중 에러가 발생했다면 필드가 없다는 것이므로 바로구매 필드를 생성한다. - sql_query(" ALTER TABLE `$g4[yc4_cart_table]` ADD `ct_direct` TINYINT NOT NULL "); + sql_query(" ALTER TABLE `{$g4['yc4_cart_table']}` ADD `ct_direct` TINYINT NOT NULL "); } // 포인트 사용하지 않는다면 - if (!$config[cf_use_point]) { $_POST[it_point] = 0; } + if (!$config['cf_use_point']) { $_POST['it_point'] = 0; } // 장바구니에 Insert - $sql = " insert $g4[yc4_cart_table] + $sql = " insert {$g4['yc4_cart_table']} set on_uid = '$tmp_on_uid', - it_id = '$_POST[it_id]', - it_opt1 = '$_POST[it_opt1]', - it_opt2 = '$_POST[it_opt2]', - it_opt3 = '$_POST[it_opt3]', - it_opt4 = '$_POST[it_opt4]', - it_opt5 = '$_POST[it_opt5]', - it_opt6 = '$_POST[it_opt6]', + it_id = '{$_POST['it_id']}', + it_opt1 = '{$_POST['it_opt1']}', + it_opt2 = '{$_POST['it_opt2']}', + it_opt3 = '{$_POST['it_opt3']}', + it_opt4 = '{$_POST['it_opt4']}', + it_opt5 = '{$_POST['it_opt5']}', + it_opt6 = '{$_POST['it_opt6']}', ct_status = '쇼핑', - ct_amount = '$_POST[it_amount]', - ct_point = '$_POST[it_point]', + ct_amount = '{$_POST['it_amount']}', + ct_point = '{$_POST['it_point']}', ct_point_use = '0', ct_stock_use = '0', - ct_qty = '$_POST[ct_qty]', - ct_time = '$g4[time_ymdhis]', + ct_qty = '{$_POST['ct_qty']}', + ct_time = '".G4_TIME_YMDHIS."', ct_ip = '$REMOTE_ADDR', ct_direct = '$sw_direct' "; sql_query($sql); } // 바로 구매일 경우 -if ($sw_direct) +if ($sw_direct) { - if ($member[mb_id]) + if ($member['mb_id']) { - goto_url("$g4[shop_url]/orderform.php?sw_direct=$sw_direct"); - } - else - { - goto_url("$g4[url]/$g4[bbs]/login.php?url=".urlencode("$g4[shop_path]/orderform.php?sw_direct=$sw_direct")); + goto_url(G4_SHOP_URL."/orderform.php?sw_direct=$sw_direct"); } -} -else + else + { + goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/orderform.php?sw_direct=$sw_direct")); + } +} +else { - goto_url("$g4[shop_url]/cart.php"); + goto_url(G4_SHOP_URL.'/cart.php'); } ?> diff --git a/shop/community.php b/shop/community.php index 9e653d77c..2bdbc64d6 100644 --- a/shop/community.php +++ b/shop/community.php @@ -1,20 +1,20 @@ 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. - echo latest("", $row[bo_table], $list_row, $subject_len); + echo latest("", $row['bo_table'], $list_row, $subject_len); echo "

\ No newline at end of file diff --git a/shop/content.php b/shop/content.php index dc503d0cc..9a1c6e7cd 100644 --- a/shop/content.php +++ b/shop/content.php @@ -1,72 +1,72 @@
"; +$himg = G4_DATA_PATH."/content/{$co_id}_h"; +if (file_exists($himg)) + echo "
"; -if ($is_admin) - echo "

"; +if ($is_admin) + echo "

"; -$str = conv_content($co[co_content], $co[co_html]); +$str = conv_content($co['co_content'], $co['co_html']); // $src 를 $dst 로 변환 unset($src); unset($dst); $src[] = "/{{쇼핑몰명}}|{{홈페이지제목}}/"; //$dst[] = $default[de_subject]; -$dst[] = $config[cf_title]; +$dst[] = $config['cf_title']; $src[] = "/{{회사명}}|{{상호}}/"; -$dst[] = $default[de_admin_company_name]; +$dst[] = $default['de_admin_company_name']; $src[] = "/{{대표자명}}/"; -$dst[] = $default[de_admin_company_owner]; +$dst[] = $default['de_admin_company_owner']; $src[] = "/{{사업자등록번호}}/"; -$dst[] = $default[de_admin_company_saupja_no]; +$dst[] = $default['de_admin_company_saupja_no']; $src[] = "/{{대표전화번호}}/"; -$dst[] = $default[de_admin_company_tel]; +$dst[] = $default['de_admin_company_tel']; $src[] = "/{{팩스번호}}/"; -$dst[] = $default[de_admin_company_fax]; +$dst[] = $default['de_admin_company_fax']; $src[] = "/{{통신판매업신고번호}}/"; -$dst[] = $default[de_admin_company_tongsin_no]; +$dst[] = $default['de_admin_company_tongsin_no']; $src[] = "/{{사업장우편번호}}/"; -$dst[] = $default[de_admin_company_zip]; +$dst[] = $default['de_admin_company_zip']; $src[] = "/{{사업장주소}}/"; -$dst[] = $default[de_admin_company_addr]; +$dst[] = $default['de_admin_company_addr']; $src[] = "/{{운영자명}}|{{관리자명}}/"; -$dst[] = $default[de_admin_name]; +$dst[] = $default['de_admin_name']; $src[] = "/{{운영자e-mail}}|{{관리자e-mail}}/i"; -$dst[] = $default[de_admin_email]; +$dst[] = $default['de_admin_email']; $src[] = "/{{정보관리책임자명}}/"; -$dst[] = $default[de_admin_info_name]; +$dst[] = $default['de_admin_info_name']; $src[] = "/{{정보관리책임자e-mail}}|{{정보책임자e-mail}}/i"; -$dst[] = $default[de_admin_info_email]; +$dst[] = $default['de_admin_info_email']; $str = preg_replace($src, $dst, $str); echo $str; -$timg = "$g4[path]/data/content/{$co_id}_t"; -if (file_exists($timg)) - echo "

"; +$timg = G4_DATA_PATH."/content/{$co_id}_t"; +if (file_exists($timg)) + echo "

"; -if ($co[co_include_tail]) - @include_once($co[co_include_tail]); +if ($co['co_include_tail']) + @include_once($co['co_include_tail']); else - include_once("./_tail.php"); + include_once('./_tail.php'); //include_once("./_tail.php"); ?> diff --git a/shop/event.php b/shop/event.php index fc00c873c..ed36d85c8 100644 --- a/shop/event.php +++ b/shop/event.php @@ -1,25 +1,25 @@
"; +$himg = G4_DATA_PATH."/event/{$ev_id}_h"; +if (file_exists($himg)) + echo "
"; if ($is_admin) - echo "

"; + echo "

"; // 상단 HTML -echo stripslashes($ev[ev_head_html]); +echo stripslashes($ev['ev_head_html']); ?> @@ -32,12 +32,12 @@ if ($sort != "") $order_by = $sort . " , "; // 상품 (하위 분류의 상품을 모두 포함한다.) -// 1.02.00 +// 1.02.00 // a.it_order 추가 /* $sql_list1 = " select a.ca_id, - a.it_id, - a.it_name, + a.it_id, + a.it_name, a.it_maker, a.it_point, a.it_amount, @@ -62,40 +62,40 @@ $sql_list1 = " select a.ca_id, $sql_list1 = " select * "; $sql_list2 = " order by $order_by a.it_order, a.it_id desc "; -$sql_common = " from $g4[yc4_item_table] a - left join $g4[yc4_event_item_table] b on (a.it_id=b.it_id) +$sql_common = " from {$g4['yc4_item_table']} a + left join {$g4['yc4_event_item_table']} b on (a.it_id=b.it_id) where b.ev_id = '$ev_id' and a.it_use = '1' "; -$error = ""; +$error = ""; -if ($skin) - $ev[ev_skin] = $skin; +if ($skin) + $ev['ev_skin'] = $skin; $td_width = (int)($mod / 100); // 리스트 유형별로 출력 -$list_file = "$g4[shop_path]/$ev[ev_skin]"; -if (file_exists($list_file)) +$list_file = G4_SHOP_PATH."/{$ev['ev_skin']}"; +if (file_exists($list_file)) { - $list_mod = $ev[ev_list_mod]; - $list_row = $ev[ev_list_row]; - $img_width = $ev[ev_img_width]; - $img_height = $ev[ev_img_height]; + $list_mod = $ev['ev_list_mod']; + $list_row = $ev['ev_list_row']; + $img_width = $ev['ev_img_width']; + $img_height = $ev['ev_img_height']; - include "$g4[shop_path]/list.sub.php"; - include "$g4[shop_path]/list.sort.php"; + include G4_SHOP_PATH.'/list.sub.php'; + include G4_SHOP_PATH.'/list.sort.php'; $sql = $sql_list1 . $sql_common . $sql_list2 . " limit $from_record, $items "; $result = sql_query($sql); include $list_file; -} -else +} +else { $i = 0; - $error = "

$ev[ev_skin] 파일을 찾을 수 없습니다.

관리자에게 알려주시면 감사하겠습니다."; + $error = "

{$ev['ev_skin']} 파일을 찾을 수 없습니다.

관리자에게 알려주시면 감사하겠습니다."; } if ($i==0) @@ -113,17 +113,17 @@ if ($i==0)



"; +$timg = G4_DATA_PATH."/event/{$ev_id}_t"; +if (file_exists($timg)) + echo "

"; -include_once("./_tail.php"); +include_once('./_tail.php'); ?> diff --git a/shop/faq.php b/shop/faq.php index a955a0366..098ba32da 100644 --- a/shop/faq.php +++ b/shop/faq.php @@ -1,36 +1,36 @@ -

+


"; +$himg = G4_DATA_PATH."/faq/{$fm_id}_h"; +if (file_exists($himg)) + echo "
"; -if ($is_admin) - echo "

"; +if ($is_admin) + echo "

"; // 상단 HTML -echo stripslashes($fm[fm_head_html]); +echo stripslashes($fm['fm_head_html']); echo "
"; echo "
\n"; echo "
\n"; -$sql = " select * from $g4[yc4_faq_table] +$sql = " select * from {$g4['yc4_faq_table']} where fm_id = '$fm_id' order by fa_order , fa_id "; $result = sql_query($sql); @@ -39,20 +39,20 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { echo ""; echo ""; - echo ""; + echo ""; echo "\n"; $str .= "
$i." . stripslashes($row[fa_subject]) . "" . stripslashes($row['fa_subject']) . "
"; $str .= ""; - $str .= ""; - $str .= ""; + $str .= ""; + $str .= ""; $str .= ""; $str .= ""; - $str .= ""; - $str .= ""; + $str .= ""; + $str .= ""; $str .= ""; $str .= ""; - $str .= ""; + $str .= ""; $str .= ""; $str .= "
" . stripslashes($row[fa_subject]) . "" . stripslashes($row['fa_subject']) . "
" . stripslashes($row[fa_content]) . "" . stripslashes($row['fa_content']) . "
"; } @@ -61,11 +61,11 @@ echo "
\n"; echo $str; echo "
"; -echo stripslashes($fm[fm_tail_html]); +echo stripslashes($fm['fm_tail_html']); -$timg = "$g4[path]/data/faq/{$fm_id}_t"; -if (file_exists($timg)) - echo "

"; +$timg = G4_DATA_PATH."/faq/{$fm_id}_t"; +if (file_exists($timg)) + echo "

"; -include_once("./_tail.php"); +include_once('./_tail.php'); ?> diff --git a/shop/item.php b/shop/item.php index 63bbe9111..9ed998b25 100644 --- a/shop/item.php +++ b/shop/item.php @@ -1,6 +1,6 @@ 1단계 > 2단계 ... > 6단계 분류 -$ca_id = $it[ca_id]; -include "$g4[shop_path]/navigation1.inc.php"; +$ca_id = $it['ca_id']; +include G4_SHOP_PATH.'/navigation1.inc.php'; -$himg = "$g4[path]/data/item/{$it_id}_h"; +$himg = G4_DATA_PATH."/item/{$it_id}_h"; if (file_exists($himg)) - echo "
"; + echo "
"; // 상단 HTML -echo stripslashes($it[it_head_html]); +echo stripslashes($it['it_head_html']); if ($is_admin) - echo "

"; + echo "

"; // 이 분류에 속한 하위분류 출력 -include "$g4[shop_path]/listcategory.inc.php"; +include G4_SHOP_PATH.'/listcategory.inc.php'; // 이전 상품보기 -$sql = " select it_id, it_name from $g4[yc4_item_table] +$sql = " select it_id, it_name from {$g4['yc4_item_table']} where it_id > '$it_id' - and SUBSTRING(ca_id,1,4) = '".substr($it[ca_id],0,4)."' + and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id asc limit 1 "; $row = sql_fetch($sql); -if ($row[it_id]) { - $prev_title = "[이전상품보기] $row[it_name]"; - $prev_href = ""; +if ($row['it_id']) { + $prev_title = "[이전상품보기] {$row['it_name']}"; + $prev_href = ""; } else { $prev_title = "[이전상품없음]"; $prev_href = ""; } // 다음 상품보기 -$sql = " select it_id, it_name from $g4[yc4_item_table] +$sql = " select it_id, it_name from {$g4['yc4_item_table']} where it_id < '$it_id' - and SUBSTRING(ca_id,1,4) = '".substr($it[ca_id],0,4)."' + and SUBSTRING(ca_id,1,4) = '".substr($it['ca_id'],0,4)."' and it_use = '1' order by it_id desc limit 1 "; $row = sql_fetch($sql); -if ($row[it_id]) { - $next_title = "[다음상품보기] $row[it_name]"; - $next_href = ""; +if ($row['it_id']) { + $next_title = "[다음상품보기] {$row['it_name']}"; + $next_href = ""; } else { $next_title = "[다음상품없음]"; $next_href = ""; @@ -118,56 +118,56 @@ if ($row[it_id]) { // 관련상품의 갯수를 얻음 $sql = " select count(*) as cnt - from $g4[yc4_item_relation_table] a - left join $g4[yc4_item_table] b on (a.it_id2=b.it_id and b.it_use='1') - where a.it_id = '$it[it_id]' "; + from {$g4['yc4_item_relation_table']} a + left join {$g4['yc4_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') + where a.it_id = '{$it['it_id']}' "; $row = sql_fetch($sql); -$item_relation_count = $row[cnt]; +$item_relation_count = $row['cnt']; ?> - - + +
- - - + + + @@ -99,9 +99,9 @@ if ($i == 0)

- +
- - +'> +'> - - - + + +
+
-
"; echo "  "; } @@ -176,47 +176,47 @@ else
-
+
- +
- + - + - - + + - + - - + + - + - - + + @@ -232,31 +232,31 @@ else echo ""; echo ""; echo "\n"; - echo "\n"; + echo "\n"; } } ?> - + - + - + - + - + - + @@ -267,7 +267,7 @@ else - + - + @@ -288,7 +288,7 @@ else - + @@ -296,7 +296,7 @@ else +
    · 고객선호도 :
    · 제조사 :
    · 원산지 :
    · ".$it["it_opt{$i}_subject"].":$str
    · 판매가격 : 전화문의
    · 시중가격 :'> 원
    · 포 인 트 :
: - 개 + @@ -307,7 +307,7 @@ else -

@@ -315,22 +315,22 @@ else run($row[is_content]); - $is_time = substr($row[is_time], 2, 14); - $small_image = $row[it_id]."_s"; + $thumb = new g4_thumb(G4_DATA_PATH.'/itemuse', 500); + $is_content = $thumb->run($row['is_content']); + $is_time = substr($row['is_time'], 2, 14); + $small_image = $row['it_id']."_s"; - $row2 = sql_fetch(" select it_name from $g4[yc4_item_table] where it_id = '$row[it_id]' "); - $it_href = "$g4[shop_path]/item.php?it_id=$row[it_id]"; + $row2 = sql_fetch(" select it_name from {$g4['yc4_item_table']} where it_id = '{$row['it_id']}' "); + $it_href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}"; echo " @@ -79,14 +79,14 @@ for ($i=0; $row=sql_fetch_array($result); $i++) + +
{$row['is_subject']}
- - - + + + - - - + + + \ No newline at end of file diff --git a/shop/itemrecommendmail.php b/shop/itemrecommendmail.php index 0badc305f..346669336 100644 --- a/shop/itemrecommendmail.php +++ b/shop/itemrecommendmail.php @@ -1,6 +1,6 @@ 3) alert("최대 3명까지만 메일을 발송할 수 있습니다."); if (substr_count($to_email, "@") > 1) alert('메일 주소는 하나씩만 입력해 주십시오.'); -if ($_SESSION["ss_recommend_datetime"] >= ($g4[server_time] - 120)) +if ($_SESSION["ss_recommend_datetime"] >= (G4_SERVER_TIME - 120)) alert("너무 빠른 시간내에 메일을 연속해서 보낼 수 없습니다."); -set_session("ss_recommend_datetime", $g4[server_time]); +set_session("ss_recommend_datetime", G4_SERVER_TIME); $recommendmail_count = (int)get_session('ss_recommendmail_count') + 1; if ($recommendmail_count > 3) - alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\n\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.'); + alert_close('한번 접속후 일정수의 메일만 발송할 수 있습니다.\\n\\n계속해서 메일을 보내시려면 다시 로그인 또는 접속하여 주십시오.'); set_session('ss_recommendmail_count', $recommendmail_count); // 세션에 저장된 토큰과 폼값으로 넘어온 토큰을 비교하여 틀리면 메일을 발송할 수 없다. @@ -28,19 +28,19 @@ if ($_POST["token"] && get_session("ss_token") == $_POST["token"]) { } // 상품 -$sql = " select * from $g4[yc4_item_table] where it_id = '$it_id' "; +$sql = " select * from {$g4['yc4_item_table']} where it_id = '$it_id' "; $it = sql_fetch($sql); -if (!$it[it_id]) +if (!$it['it_id']) alert("등록된 상품이 아닙니다."); $subject = stripslashes($subject); $content = nl2br(stripslashes($content)); -$from_name = $member[mb_name]; -$from_email = $member[mb_email]; -$it_id = $it[it_id]; -$it_name = $it[it_name]; -$it_mimg = $it[it_id]."_m"; +$from_name = $member['mb_name']; +$from_email = $member['mb_email']; +$it_id = $it['it_id']; +$it_name = $it['it_name']; +$it_mimg = $it['it_id']."_m"; ob_start(); include "./mail/itemrecommend.mail.php"; @@ -49,7 +49,7 @@ ob_end_clean(); mailer($from_name, $from_email, $to_email, $subject, $content, 1); -echo ""; +echo ""; ?> @@ -52,24 +52,24 @@ $(function(){
".get_it_image($small_image, 100, 100)." - -
$row[is_subject]
$row[is_name]".substr($row[is_time],0,10)."{$row['is_name']}".substr($row['is_time'],0,10)."