From 4fd3c33fded9f8f2eb724ccb6c114694e6567d87 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 2 May 2013 16:14:55 +0900 Subject: [PATCH] =?UTF-8?q?#91=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20sns=20?= =?UTF-8?q?=EA=B3=B5=EC=9C=A0=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/shop.lib.php | 2 +- shop/maintype10.inc.php | 13 +++++++++---- shop/maintype11.inc.php | 13 +++++++++---- shop/maintype12.inc.php | 13 +++++++++---- shop/maintype13.inc.php | 13 +++++++++---- shop/sns_send.php | 30 ++++++++++++++++++++++++++++++ 6 files changed, 67 insertions(+), 17 deletions(-) create mode 100644 shop/sns_send.php diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 9ffa391f9..4913c6cca 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -199,7 +199,7 @@ function is_null_time($datetime) // 1.02.01 $ca_id 추가 function display_type($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="") { - global $member, $g4; + global $member, $g4, $config; // 상품의 갯수 $items = $list_mod * $list_row; diff --git a/shop/maintype10.inc.php b/shop/maintype10.inc.php index 30206b257..7a48121f1 100644 --- a/shop/maintype10.inc.php +++ b/shop/maintype10.inc.php @@ -11,11 +11,16 @@ for ($i=1; $row=sql_fetch_array($result); $i++) { } else { // 1줄 이미지 : 1개 $sct_last = 'sct_clear'; } + + $sns_title = get_text($row['it_name']).' - '.get_text($config['cf_title']); + $sns_send = G4_SHOP_URL.'/sns_send.php?url='.urlencode(G4_SHOP_URL.'/item.php?it_id='.$row['it_id']); + $sns_send .= '&title='.urlencode(cut_str($sns_title, 100)); + if ($i == 1) echo '