From 04d28211f9610f0ffd2b2bf9d06be0c730a3fe4f Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 13:27:53 +0900 Subject: [PATCH 01/49] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=EC=9D=98=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20=EA=B2=BD=EB=A1=9C=20=EB=85=B8=EC=B6=9C=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.php b/common.php index dff8c4e0a..720dda438 100644 --- a/common.php +++ b/common.php @@ -124,7 +124,7 @@ div a {display:block;margin:50px auto 10px;width:170px;text-align:center}

다음 파일을 찾을 수 없습니다.

프로그램 설치 후 실행하시기 바랍니다.

그누보드4S 설치하기 From 753d886b1552ed465aef1e60540b9a518b6f2543 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 13:28:46 +0900 Subject: [PATCH 02/49] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=EB=A9=94=EC=84=B8?= =?UTF-8?q?=EC=A7=80=20=EC=B6=9C=EB=A0=A5=ED=9B=84=20=EC=9D=B4=EB=8F=99?= =?UTF-8?q?=ED=95=98=EB=8A=94=20=EC=BD=94=EB=93=9C=EB=A5=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_update.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bbs/write_update.php b/bbs/write_update.php index f9c973c94..921e00dcf 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -364,26 +364,28 @@ if ($w == '' || $w == 'r') { alert('올바른 방법으로 수정하여 주십시오.'); } + $return_url = './board.php?bo_table='.$bo_table.'&wr_id='.$wr_id; + if ($is_admin == 'super') // 최고관리자 통과 ; else if ($is_admin == 'group') { // 그룹관리자 $mb = get_member($write['mb_id']); if ($member['mb_id'] != $group['gr_admin']) // 자신이 관리하는 그룹인가? - alert('자신이 관리하는 그룹의 게시판이 아니므로 수정할 수 없습니다.'); + alert('자신이 관리하는 그룹의 게시판이 아니므로 수정할 수 없습니다.', $return_url); else if ($member['mb_level'] < $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과 - alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 수정할 수 없습니다.'); + alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 수정할 수 없습니다.', $return_url); } else if ($is_admin == 'board') { // 게시판관리자이면 $mb = get_member($write['mb_id']); if ($member['mb_id'] != $board['bo_admin']) // 자신이 관리하는 게시판인가? - alert('자신이 관리하는 게시판이 아니므로 수정할 수 없습니다.'); + alert('자신이 관리하는 게시판이 아니므로 수정할 수 없습니다.', $return_url); else if ($member['mb_level'] < $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과 - alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 수정할 수 없습니다.'); + alert('자신의 권한보다 높은 권한의 회원이 작성한 글은 수정할 수 없습니다.', $return_url); } else if ($member['mb_id']) { if ($member['mb_id'] != $write['mb_id']) - alert('자신의 글이 아니므로 수정할 수 없습니다.'); + alert('자신의 글이 아니므로 수정할 수 없습니다.', $return_url); } else { if ($write['mb_id']) - alert('로그인 후 수정하세요.', './login.php?url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id)); + alert('로그인 후 수정하세요.', './login.php?url='.urlencode($return_url)); } if ($member['mb_id']) { From c3a0d85528258327092d8a60fde22a2e14b52045 Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 13:29:08 +0900 Subject: [PATCH 03/49] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EA=B0=80=EC=9E=85=ED=8F=BC=20=EC=86=8D=EC=84=B1=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/basic/register_form.skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index c7e2690f6..91a12923e 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -69,7 +69,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - " size="50" maxlength="100" > + class="frm_input email " size="50" maxlength="100" > From 21909a8feb501fc4945bf4d6ceab6bdb45536dc5 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 13:39:31 +0900 Subject: [PATCH 04/49] =?UTF-8?q?title=20=EB=B3=80=EC=88=98=20=EC=84=A0?= =?UTF-8?q?=EC=96=B8=20=EC=97=86=EC=9D=B4=20=EC=82=AC=EC=9A=A9=EC=8B=9C=20?= =?UTF-8?q?notice=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/install_db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/install/install_db.php b/install/install_db.php index e10f74406..48bc03931 100644 --- a/install/install_db.php +++ b/install/install_db.php @@ -7,6 +7,7 @@ header('Cache-Control: no-store, no-cache, must-revalidate'); // HTTP/1.1 header('Cache-Control: pre-check=0, post-check=0, max-age=0'); // HTTP/1.1 header('Pragma: no-cache'); // HTTP/1.0 +$title = "그누보드4s 설치 3단계 중 3단계 설치 완료"; include_once ('../config.php'); include_once ('./install.inc.php'); From 77f50b1142beb394d26cf67d2a0b6ae4a9d1a05c Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 13:40:48 +0900 Subject: [PATCH 05/49] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85?= =?UTF-8?q?=EC=8B=9C=20=EC=9D=B4=EB=A9=94=EC=9D=BC=EC=9D=B8=EC=A6=9D?= =?UTF-8?q?=EC=97=90=20=EA=B4=80=EA=B3=84=EC=97=86=EC=9D=B4=20=EC=9D=B4?= =?UTF-8?q?=EB=A9=94=EC=9D=BC=20=EC=9E=85=EB=A0=A5=EC=9D=80=20=ED=95=84?= =?UTF-8?q?=EC=88=98=EC=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/basic/register_form.skin.php | 22 +++++++++++----------- skin/member/kcpcert/register_form.skin.php | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index c7e2690f6..2460c74dc 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -60,7 +60,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + @@ -69,28 +69,28 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - " size="50" maxlength="100" > + - " size="50" maxlength="255" > + class="frm_input " size="50" maxlength="255"> - " maxlength="20" > + class="frm_input " maxlength="20"> - " maxlength="20" > + class="frm_input " maxlength="20"> @@ -103,12 +103,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 필수 - " size="2" maxlength="3" > + title="우편번호 앞자리" class="frm_input " size="2" maxlength="3"> - - " size="2" maxlength="3" > + title="우편번호 뒷자리" class="frm_input " size="2" maxlength="3"> 주소찾기 - " size="50" > - " size="50" > + title="행정구역주소" class="frm_input frm_address " size="50"> + title="상세주소" class="frm_input frm_address " size="50"> @@ -119,14 +119,14 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + - + diff --git a/skin/member/kcpcert/register_form.skin.php b/skin/member/kcpcert/register_form.skin.php index 58b01663b..a2cad4776 100644 --- a/skin/member/kcpcert/register_form.skin.php +++ b/skin/member/kcpcert/register_form.skin.php @@ -60,10 +60,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 - + - ' id="reg_mb_email" class="frm_input email " size="50" maxlength="100"> + ' id="reg_mb_email" required class="frm_input email required" size="50" maxlength="100"> From 630ee67d65e5c1634e94ab55935970f0f6e3e10b Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 13:53:45 +0900 Subject: [PATCH 06/49] =?UTF-8?q?=EC=82=AC=EC=9A=A9=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=9F=AC?= =?UTF-8?q?=EB=A6=AC=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/etc.lib.php | 14 - lib/icode.sms.lib.php | 153 ----------- lib/iteminfo.lib.php | 585 ------------------------------------------ lib/thumb.lib.php | 128 --------- 4 files changed, 880 deletions(-) delete mode 100644 lib/etc.lib.php delete mode 100644 lib/icode.sms.lib.php delete mode 100644 lib/iteminfo.lib.php delete mode 100644 lib/thumb.lib.php diff --git a/lib/etc.lib.php b/lib/etc.lib.php deleted file mode 100644 index fd4ccde10..000000000 --- a/lib/etc.lib.php +++ /dev/null @@ -1,14 +0,0 @@ - \ No newline at end of file diff --git a/lib/icode.sms.lib.php b/lib/icode.sms.lib.php deleted file mode 100644 index 6cb3f26fd..000000000 --- a/lib/icode.sms.lib.php +++ /dev/null @@ -1,153 +0,0 @@ -1; $k--) { - if (ord(substr($word,$k,1))<128) break; // 한글값은 160 이상. - } - $word=substr($word,0,$cut-($cut-$k+1)%2); - return $word; -} - -function CheckCommonType($dest, $rsvTime) { - //$dest=eregi_replace("[^0-9]","",$dest); - $dest=preg_replace("/[^0-9]/i","",$dest); - if (strlen($dest)<10 || strlen($dest)>11) return "휴대폰 번호가 틀렸습니다"; - $CID=substr($dest,0,3); - //if ( eregi("[^0-9]",$CID) || ($CID!='010' && $CID!='011' && $CID!='016' && $CID!='017' && $CID!='018' && $CID!='019') ) return "휴대폰 앞자리 번호가 잘못되었습니다"; - if ( preg_match("/[^0-9]/i",$CID) || ($CID!='010' && $CID!='011' && $CID!='016' && $CID!='017' && $CID!='018' && $CID!='019') ) return "휴대폰 앞자리 번호가 잘못되었습니다"; - //$rsvTime=eregi_replace("[^0-9]","",$rsvTime); - $rsvTime=preg_replace("/[^0-9]/i","",$rsvTime); - if ($rsvTime) { - if (!checkdate(substr($rsvTime,4,2),substr($rsvTime,6,2),substr($rsvTime,0,4))) return "예약날짜가 잘못되었습니다"; - if (substr($rsvTime,8,2)>23 || substr($rsvTime,10,2)>59) return "예약시간이 잘못되었습니다"; - } -} - -class SMS { - var $ID; - var $PWD; - var $SMS_Server; - var $port; - var $SMS_Port; - var $Data = array(); - var $Result = array(); - - function SMS_con($sms_server,$sms_id,$sms_pw,$port) { - $this->ID=$sms_id; // 계약 후 지정 - $this->PWD=$sms_pw; // 계약 후 지정 - $this->SMS_Server=$sms_server; - $this->SMS_Port=$port; - $this->ID = spacing($this->ID,10); - $this->PWD = spacing($this->PWD,10); - } - - function Init() { - $this->Data = ""; - $this->Result = ""; - } - - function Add($dest, $callBack, $Caller, $msg, $rsvTime="") { - global $g4; - - // 내용 검사 1 - $Error = CheckCommonType($dest, $rsvTime); - if ($Error) return $Error; - // 내용 검사 2 - //if ( eregi("[^0-9]",$callBack) ) return "회신 전화번호가 잘못되었습니다"; - if ( preg_match("/[^0-9]/i",$callBack) ) return "회신 전화번호가 잘못되었습니다"; - - // 아이코드에서는 문자에 utf-8 인코딩 형식을 아직 지원하지 않는다. - if (strtolower($g4['charset'])=='utf-8') { - if (function_exists("iconv")) { - $msg = iconv("utf-8", "euc-kr", $msg); - } - } - - $msg=cut_char($msg,80); // 80자 제한 - // 보낼 내용을 배열에 집어넣기 - $dest = spacing($dest,11); - $callBack = spacing($callBack,11); - $Caller = spacing($Caller,10); - $rsvTime = spacing($rsvTime,12); - $msg = spacing($msg,80); - - $this->Data[] = '01144 '.$this->ID.$this->PWD.$dest.$callBack.$Caller.$rsvTime.$msg; - return ""; - } - - function AddURL($dest, $callBack, $URL, $msg, $rsvTime="") { - // 내용 검사 1 - $Error = CheckCommonType($dest, $rsvTime); - if ($Error) return $Error; - // 내용 검사 2 - //$URL=str_replace("http://","",$URL); - if (strlen($URL)>50) return "URL이 50자가 넘었습니다"; - switch (substr($dest,0,3)) { - case '010': //20바이트 - $msg=cut_char($msg,20); - break; - case '011': //80바이트 - $msg=cut_char($msg,80); - break; - case '016': // 80바이트 - $msg=cut_char($msg,80); - break; - case '017': // URL 포함 80바이트 - $msg=cut_char($msg,80-strlen($URL)); - break; - case '018': // 20바이트 - $msg=cut_char($msg,20); - break; - case '019': // 20바이트 - $msg=cut_char($msg,20); - break; - default: - return "아직 URL CallBack이 지원되지 않는 번호입니다"; - break; - } - // 보낼 내용을 배열에 집어넣기 - $dest = spacing($dest,11); - $URL = spacing($URL,50); - $callBack = spacing($callBack,11); - $rsvTime = spacing($rsvTime,12); - $msg = spacing($msg,80); - $this->Data[] = '05173 '.$this->ID.$this->PWD.$dest.$callBack.$URL.$rsvTime.$msg; - return ""; - } - - function Send () { - $fp=@fsockopen(trim($this->SMS_Server),trim($this->SMS_Port)); - if (!$fp) return false; - set_time_limit(300); - - ## php4.3.10일경우 - ## zend 최신버전으로 업해주세요.. - ## 또는 122번째 줄을 $this->Data as $tmp => $puts 로 변경해 주세요. - - foreach($this->Data as $puts) { - $dest = substr($puts,26,11); - fputs($fp,$puts); - while(!$gets) { $gets=fgets($fp,30); } - if (substr($gets,0,19)=="0223 00".$dest) $this->Result[]=$dest.":".substr($gets,19,10); - else $this->Result[$dest]=$dest.":Error"; - $gets=""; - } - fclose($fp); - $this->Data=""; - return true; - } -} -?> \ No newline at end of file diff --git a/lib/iteminfo.lib.php b/lib/iteminfo.lib.php deleted file mode 100644 index e9611f53c..000000000 --- a/lib/iteminfo.lib.php +++ /dev/null @@ -1,585 +0,0 @@ -array( - "title"=>"의류", - "article"=>array( - "material"=>array("제품소재", "섬유의 조성 또는 혼용률을 백분율로 표시, 기능성인 경우 성적서 또는 허가서"), - "color"=>array("색상", ""), - "size"=>array("치수", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "caution"=>array("세탁방법 및 취급시 주의사항", ""), - "manufacturing_ym"=>array("제조연월", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "shoes"=>array( - "title"=>"구두/신발", - "article"=>array( - "material"=>array("제품소재", "운동화인 경우에는 겉감, 안감을 구분하여 표시"), - "color"=>array("색상", ""), - "size"=>array("치수-발길이", "해외사이즈 표기 시 국내사이즈 병행 표기 (mm)"), - "height"=>array("치수-굽높이", "굽 재료를 사용하는 여성화에 한함 (cm)"), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "caution"=>array("취급시 주의사항", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "bag"=>array( - "title"=>"가방", - "article"=>array( - "kind"=>array("종류", ""), - "material"=>array("소재", ""), - "color"=>array("색상", ""), - "size"=>array("크기", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "caution"=>array("취급시 주의사항", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "fashion"=>array( - "title"=>"패션잡화(모자/벨트/액세서리)", - "article"=>array( - "kind"=>array("종류", ""), - "material"=>array("소재", ""), - "size"=>array("치수", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "caution"=>array("취급시 주의사항", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "bedding"=>array( - "title"=>"침구류/커튼", - "article"=>array( - "material"=>array("제품소재", "(섬유의 조성 또는 혼용률을 백분율로 표시) 충전재를 사용한 제품은 충전재를 함께 표기"), - "color"=>array("색상", ""), - "size"=>array("치수", ""), - "component" =>array("제품구성", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "caution"=>array("세탁방법 및 취급시 주의사항", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "furniture"=>array( - "title"=>"가구(침대/소파/싱크대/DIY제품)", - "article"=>array( - "product_name"=>array("품명", ""), - "certification"=>array("KC 인증 필 유무", "(품질경영 및 공산품안전관리법 상 안전·품질표시대상공산품에 한함)"), - "color"=>array("색상", ""), - "component" =>array("구성품", ""), - "material"=>array("주요소재", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)
구성품 별 제조자가 다른 경우 각 구성품의 제조자, 수입자"), - "madein"=>array("제조국", "구성품 별 제조국이 다른 경우 각 구성품의 제조국"), - "size"=>array("크기", ""), - "delivery"=>array("배송·설치비용", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "image_appliances"=>array( - "title"=>"영상가전 (TV류)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("전기용품 안전인증 필 유무", "전기용품안전관리법 상 안전인증대상전기용품, 자율안전확인대상전기용품, 공급자적합성확인대상전기용품에 한함"), - "rated_voltage"=>array("정격전압", "에너지이용합리화법 상 의무대상상품에 한함"), - "power_consumption"=>array("소비전력", "에너지이용합리화법 상 의무대상상품에 한함"), - "energy_efficiency"=>array("에너지효율등급", "에너지이용합리화법 상 의무대상상품에 한함"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", "구성품 별 제조국이 다른 경우 각 구성품의 제조국"), - "size"=>array("크기", "형태포함"), - "display_specification"=>array("화면사양", "크기, 해상도, 화면비율 등"), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "home_appliances"=>array( - "title"=>"가정용전기제품(냉장고/세탁기/식기세척기/전자레인지)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("전기용품 안전인증 필 유무", "전기용품안전관리법 상 안전인증대상전기용품, 자율안전확인대상전기용품, 공급자적합성확인대상전기용품에 한함"), - "rated_voltage"=>array("정격전압", "에너지이용합리화법 상 의무대상상품에 한함"), - "power_consumption"=>array("소비전력", "에너지이용합리화법 상 의무대상상품에 한함"), - "energy_efficiency"=>array("에너지효율등급", "에너지이용합리화법 상 의무대상상품에 한함"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", "형태포함"), - "display_specification"=>array("화면사양", "크기, 해상도, 화면비율 등"), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "season_appliances"=>array( - "title"=>"계절가전(에어컨/온풍기)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("전기용품 안전인증 필 유무", "전기용품안전관리법 상 안전인증대상전기용품, 자율안전확인대상전기용품, 공급자적합성확인대상전기용품에 한함"), - "rated_voltage"=>array("정격전압", "에너지이용합리화법 상 의무대상상품에 한함"), - "power_consumption"=>array("소비전력", "에너지이용합리화법 상 의무대상상품에 한함"), - "energy_efficiency"=>array("에너지효율등급", "에너지이용합리화법 상 의무대상상품에 한함"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", "형태 및 실외기 포함"), - "area"=>array("냉난방면적", ""), - "installation_costs"=>array("추가설치비용", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "office_appliances"=>array( - "title"=>"사무용기기(컴퓨터/노트북/프린터)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KCC 인증 필 유무", "전파법 상 인증대상상품에 한함, MIC 인증 필 혼용 가능"), - "rated_voltage"=>array("정격전압", "에너지이용합리화법 상 의무대상상품에 한함"), - "power_consumption"=>array("소비전력", "에너지이용합리화법 상 의무대상상품에 한함"), - "energy_efficiency"=>array("에너지효율등급", "에너지이용합리화법 상 의무대상상품에 한함"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", "구성품 별 제조국이 다른 경우 각 구성품의 제조국"), - "size"=>array("크기", ""), - "weight"=>array("무게", "무게는 노트북에 한함"), - "specification"=>array("주요사양", "컴퓨터와 노트북의 경우 성능, 용량, 운영체제 포함여부 등 / 프린터의 경우 인쇄 속도 등"), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "optics_appliances"=>array( - "title"=>"광학기기(디지털카메라/캠코더)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KCC 인증 필 유무", "전파법 상 인증대상상품에 한함, MIC 인증 필 혼용 가능"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", ""), - "weight"=>array("무게", ""), - "specification"=>array("주요사양", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "microelectronics"=>array( - "title"=>"소형전자(MP3/전자사전등)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KCC 인증 필 유무", "전파법 상 인증대상상품에 한함, MIC 인증 필 혼용 가능"), - "rated_voltage"=>array("정격전압", ""), - "power_consumption"=>array("소비전력", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", ""), - "weight"=>array("무게", ""), - "specification"=>array("주요사양", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "mobile"=>array( - "title"=>"휴대폰", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KCC 인증 필 유무", "전파법 상 인증대상상품에 한함, MIC 인증 필 혼용 가능"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", ""), - "weight"=>array("무게", ""), - "telecom"=>array("이동통신사", ""), - "join_process"=>array("가입절차", ""), - "extra_burden"=>array("소비자의 추가적인 부담사항 ", "가입비, 유심카드 구입비 등 추가로 부담하여야 할 금액, 부가서비스, 의무사용기간, 위약금 등"), - "specification"=>array("주요사양", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "navigation"=>array( - "title"=>"네비게이션", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KCC 인증 필 유무", "전파법 상 인증대상상품에 한함, MIC 인증 필 혼용 가능"), - "rated_voltage"=>array("정격전압", ""), - "power_consumption"=>array("소비전력", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "size"=>array("크기", ""), - "weight"=>array("무게", ""), - "specification"=>array("주요사양", ""), - "update_cost"=>array("맵 업데이트 비용", ""), - "freecost_period"=>array("무상기간", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "car"=>array( - "title"=>"자동차용품(자동차부품/기타자동차용품)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "certification"=>array("자동차부품 자기인증 유무 ", "자동차 관리법 상 인증 대상 자동차 부품에 한함"), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", "구성품 별 제조국이 다른 경우 각 구성품의 제조국"), - "size"=>array("크기", ""), - "apply_model"=>array("적용차종", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "medical"=>array( - "title"=>"의료기기", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "license_number"=>array("의료기기법상 허가·신고 번호", "허가·신고 대상 의료기기에 한함"), - "advertising"=>array("광고사전심의필 유무", ""), - "certification"=>array("전기용품안전관리법상 KC 인증 필 유무 ", "안전인증 또는 자율안전확인 대상 전기용품에 한함"), - "rated_voltage"=>array("정격전압", "전기용품에 한함"), - "power_consumption"=>array("소비전력", "전기용품에 한함"), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "appliances_purpose"=>array("제품의 사용목적", ""), - "appliances_usage"=>array("제품의 사용목적", ""), - "display_specification"=>array("화면사양", "(크기, 해상도, 화면비율 등)"), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "kitchenware"=>array( - "title"=>"주방용품", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "material"=>array("재질", ""), - "component"=>array("구성품", ""), - "size"=>array("크기", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "import_declaration"=>array("식품위생법에 따른 수입 신고", "식품위생법에 따른 수입 기구·용기의 경우 \"식품위생법에 따른 수입신고를 필함\"의 문구"), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "cosmetics"=>array( - "title"=>"화장품", - "article"=>array( - "capacity"=>array("용량 또는 중량", ""), - "specification"=>array("제품 주요사양", "피부타입, 색상(호, 번) 등"), - "expiration_date"=>array("사용기한 또는 개봉 후 사용기간", "개봉 후 사용기간을 기재할 경우에는 제조연월일을 병행표기"), - "usage"=>array("사용방법", ""), - "maker"=>array("제조자", ""), - "distributor"=>array("제조판매업자", ""), - "madein"=>array("제조국", ""), - "mainingredient"=>array("주요성분", "유기농 화장품의 경우 유기농 원료 함량 포함"), - "certification"=>array("식품의약품안전청 심사 필 유무", "기능성 화장품의 경우 화장품법에 따른 식품의약품안전청 심사 필 유무 (미백, 주름개선, 자외선차단 등)"), - "caution"=>array("사용할 때 주의사항", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "jewelry"=>array( - "title"=>"귀금속/보석/시계류", - "article"=>array( - "material"=>array("소재", ""), - "purity"=>array("순도", ""), - "band"=>array("밴드재질", "시계의 경우"), - "weight"=>array("중량", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", "원산지와 가공지 등이 다를 경우 함께 표기"), - "size"=>array("치수", ""), - "caution"=>array("착용 시 주의사항", ""), - "specification"=>array("주요사양", "귀금속, 보석류는 등급, 시계는 기능, 방수 등"), - "provide_warranty"=>array("보증서 제공여부", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("A/S 책임자와 전화번호", ""), - ) - ), - "food"=>array( - "title"=>"식품(농수산물)", - "article"=>array( - "weight"=>array("포장단위별 용량(중량)", ""), - "quantity"=>array("포장단위별 수량", ""), - "size"=>array("포장단위별 크기", ""), - "producer"=>array("생산자", "수입품의 경우 수입자를 함께 표기"), - "origin"=>array("원산지", "농수산물의 원산지 표시에 관한 법률에 따른 원산지"), - "manufacturing_ymd"=>array("제조연월일", "포장일 또는 생산연도"), - "expiration_date"=>array("유통기한 또는 품질유지기한", ""), - "law_content"=>array("관련법상 표시사항", "농산물 - 농산물품질관리법상 유전자변형농산물 표시, 지리적표시
축산물 - 축산법에 따른 등급 표시, 쇠고기의 경우 이력관리에 따른 표시 유무
수산물 - 수산물품질관리법상 유전자변형수산물 표시, 지리적표시
수입식품에 해당하는 경우 \"식품위생법에 따른 수입신고를 필함\"의 문구"), - "product_composition"=>array("상품구성", ""), - "keep"=>array("보관방법 또는 취급방법", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "general_food"=>array( - "title"=>"가공식품", - "article"=>array( - "food_type"=>array("식품의 유형", ""), - "producer"=>array("생산자", ""), - "location"=>array("소재지", "수입품의 경우 수입자를 함께 표기"), - "manufacturing_ymd"=>array("제조연월일", ""), - "expiration_date"=>array("유통기한 또는 품질유지기한", ""), - "weight"=>array("포장단위별 용량(중량)", ""), - "quantity"=>array("포장단위별 수량", ""), - "ingredients"=>array("원재료명 및 함량", "농수산물의 원산지 표시에 관한 법률에 따른 원산지 표시 포함"), - "nutrition_component"=>array("영양성분", "식품위생법에 따른 영양성분 표시대상 식품에 한함"), - "genetically_modified"=>array("유전자재조합식품에 해당하는 경우의 표시", ""), - "baby_food"=>array("영유아식 또는 체중조절식품 등에 해당하는 경우 표시광고 사전심의필", ""), - "imported_food"=>array("수입식품에 해당하는 경우 “식품위생법에 따른 수입신고를 필함”의 문구", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "diet_food"=>array( - "title"=>"건강기능식품", - "article"=>array( - "food_type"=>array("식품의 유형", ""), - "producer"=>array("생산자", ""), - "location"=>array("소재지", "수입품의 경우 수입자를 함께 표기"), - "manufacturing_ymd"=>array("제조연월일", ""), - "expiration_date"=>array("유통기한 또는 품질유지기한", ""), - "waight"=>array("포장단위별 용량(중량)", ""), - "quantity"=>array("포장단위별 수량", ""), - "ingredients"=>array("원재료명 및 함량", "농수산물의 원산지 표시에 관한 법률에 따른 원산지 표시 포함"), - "nutrition"=>array("영양정보", ""), - "specification"=>array("기능정보", ""), - "intake"=>array("섭취량, 섭취방법 및 섭취 시 주의사항", ""), - "disease"=>array("질병의 예방 및 치료를 위한 의약품이 아니라는 내용의 표현", ""), - "genetically_modified"=>array("유전자재조합식품에 해당하는 경우의 표시", ""), - "display_ad"=>array("표시광고 사전심의필", ""), - "imported_food"=>array("수입식품에 해당하는 경우 \"건강기능식품에 관한 법률에 따른 수입신고를 필함\"의 문구", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "kids"=>array( - "title"=>"영유아용품", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certification"=>array("KC 인증 필", "품질경영 및 공산품안전관리법 상 안전인증대상 또는 자율안전확인대상 공산품에 한함"), - "size"=>array("크기", ""), - "weight"=>array("중량", ""), - "color"=>array("색상", ""), - "material"=>array("재질", "섬유의 경우 혼용률"), - "age"=>array("사용연령", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "caution"=>array("취급방법 및 취급시 주의사항, 안전표시 (주의, 경고 등)", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "instrument"=>array( - "title"=>"악기", - "article"=>array( - "size"=>array("크기", ""), - "color"=>array("색상", ""), - "material"=>array("재질", ""), - "components"=>array("제품구성", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "detailed_specifications"=>array("상품별 세부 사양", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "sports"=>array( - "title"=>"스포츠용품", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "size"=>array("크기", ""), - "weight"=>array("중량", ""), - "color"=>array("색상", ""), - "material"=>array("재질", ""), - "components"=>array("제품구성", ""), - "released_date"=>array("동일모델의 출시년월", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "madein"=>array("제조국", ""), - "detailed_specifications"=>array("상품별 세부 사양", ""), - "warranty"=>array("품질보증기준", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "books"=>array( - "title"=>"서적", - "article"=>array( - "product_name"=>array("도서명", ""), - "author"=>array("저자", ""), - "publisher"=>array("출판사", ""), - "size"=>array("크기", "전자책의 경우 파일의 용량"), - "pages"=>array("쪽수", "전자책의 경우 제외"), - "components"=>array("제품구성", "전집 또는 세트일 경우 낱권 구성, CD 등"), - "publish_date"=>array("출간일", ""), - "description"=>array("목차 또는 책소개", ""), - ) - ), - "reserve"=>array( - "title"=>"호텔/펜션예약", - "article"=>array( - "location"=>array("국가 또는 지역명", ""), - "lodgment_type"=>array("숙소형태", ""), - "grade"=>array("등급", ""), - "room_type"=>array("객실타입", ""), - "room_capacity"=>array("사용가능인원", ""), - "extra_person_charge"=>array("인원 추가시 비용", ""), - "facilities"=>array("부대시설", ""), - "provided_service"=>array("제공서비스", "조식 등"), - "cancellation_policy"=>array("취소규정", "환불 위약금 등"), - "booking_contacts"=>array("예약담당 연락처", ""), - ) - ), - "travel"=>array( - "title"=>"여행패키지", - "article"=>array( - "travel_agency"=>array("여행사", ""), - "flight"=>array("이용항공편", ""), - "travel_period"=>array("여행기간", ""), - "schedule"=>array("일정", ""), - "maximum_people"=>array("총예정인원", ""), - "minimum_people"=>array("출발가능인원", ""), - "accomodation_info"=>array("숙박정보", ""), - "details"=>array("포함내역", "식사, 인솔자, 공연관람 등"), - "additional_charge"=>array("추가 경비 항목과 금액", "유류할증료, 공항이용료, 관광지 입장료, 안내원수수료, 식사비용, 선택사항 등"), - "cancellation_policy"=>array("취소규정", "환불, 위약금 등"), - "travel_warnings"=>array("해외여행의 경우 외교통상부가 지정하는 여행경보단계", ""), - "booking_contacts"=>array("예약담당 연락처", ""), - ) - ), - "airline_ticket"=>array( - "title"=>"항공권", - "article"=>array( - "charge_condition"=>array("요금조건", ""), - "round_trip"=>array("왕복·편도 여부", ""), - "expiration_date"=>array("유효기간", ""), - "restriction"=>array("제한사항", "출발일, 귀국일 변경가능 여부 등"), - "ticket_delivery_mean"=>array("티켓수령방법", ""), - "seat_type"=>array("좌석종류", ""), - "additional_charge"=>array("추가 경비 항목과 금액", "유류할증료, 공항이용료 등"), - "cancellation_policy"=>array("취소 규정", "환불, 위약금 등"), - "booking_contacts"=>array("예약담당 연락처", ""), - ) - ), - "rent_car"=>array( - "title"=>"자동차대여서비스(렌터카)", - "article"=>array( - "model"=>array("차종", ""), - "ownership_transfer"=>array("소유권 이전 조건", "소유권이 이전되는 경우에 한함"), - "additional_charge"=>array("추가 선택 시 비용", "자차면책제도, 내비게이션 등"), - "fuel_cost"=>array("차량 반환 시 연료대금 정산 방법", ""), - "vehicle_breakdown"=>array("차량의 고장·훼손 시 소비자 책임", ""), - "cancellation_policy"=>array("예약취소 또는 중도 해약 시 환불 기준", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "rental_water"=>array( - "title"=>"물품대여서비스(정수기,비데,공기청정기 등)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "transfer_of_ownership"=>array("소유권 이전 조건", "소유권이 이전되는 경우에 한함"), - "maintenance"=>array("유지보수 조건", "점검·필터교환 주기, 추가 비용 등"), - "consumer_responsibility"=>array("상품의 고장·분실·훼손 시 소비자 책임", ""), - "refund"=>array("중도 해약 시 환불 기준", ""), - "specification"=>array("제품 사양", "용량, 소비전력 등"), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "rental_etc"=>array( - "title"=>"물품대여서비스(서적,유아용품,행사용품 등)", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "transfer_of_ownership"=>array("소유권 이전 조건", "소유권이 이전되는 경우에 한함"), - "consumer_responsibility"=>array("상품의 고장·분실·훼손 시 소비자 책임", ""), - "refund"=>array("중도 해약 시 환불 기준", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "digital_contents"=>array( - "title"=>"디지털콘텐츠(음원,게임,인터넷강의 등)", - "article"=>array( - "producer"=>array("제작자 또는 공급자", ""), - "terms_of_use"=>array("이용조건", ""), - "use_period"=>array("이용기간", ""), - "product_offers"=>array("상품 제공 방식", "CD, 다운로드, 실시간 스트리밍 등"), - "minimum_system"=>array("최소 시스템 사양, 필수 소프트웨어", ""), - "transfer_of_ownership"=>array("소유권 이전 조건", "소유권이 이전되는 경우에 한함"), - "maintenance"=>array("청약철회 또는 계약의 해제·해지에 따른 효과", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "gift_card"=>array( - "title"=>"상품권/쿠폰", - "article"=>array( - "isseur"=>array("발행자", ""), - "expiration_date"=>array("유효기간", ""), - "terms_of_use"=>array("이용조건", "유효기간 경과 시 보상 기준, 사용제한품목 및 기간 등"), - "use_store"=>array("이용 가능 매장", ""), - "refund_policy"=>array("잔액 환급 조건", ""), - "as"=>array("소비자상담 관련 전화번호", ""), - ) - ), - "etc"=>array( - "title"=>"기타", - "article"=>array( - "product_name"=>array("품명", ""), - "model_name"=>array("모델명", ""), - "certified_by_law"=>array("법에 의한 인증·허가 등을 받았음을 확인할 수 있는 경우 그에 대한 사항", ""), - "origin"=>array("제조국 또는 원산지", ""), - "maker"=>array("제조자", "수입품의 경우 수입자를 함께 표기 (병행수입의 경우 병행수입 여부로 대체 가능)"), - "as"=>array("A/S 책임자와 전화번호 또는 소비자상담 관련 전화번호", ""), - ) - ), -); - - -// 상품상세정보 테이블 생성 -function create_table_item_info() -{ - global $g4; - return sql_query(" - CREATE TABLE IF NOT EXISTS `{$g4['shop_item_info_table']}` ( - `ii_id` int(11) NOT NULL AUTO_INCREMENT, - `it_id` varchar(10) NOT NULL, - `ii_gubun` varchar(50) NOT NULL, - `ii_article` varchar(50) NOT NULL, - `ii_title` varchar(255) NOT NULL, - `ii_value` varchar(255) NOT NULL, - PRIMARY KEY (`ii_id`), - UNIQUE KEY `it_id` (`it_id`,`ii_gubun`,`ii_article`) - ) - ", false); -} - -function item_info_gubun($gubun) -{ - global $item_info; - return $item_info[$gubun]['title']; -} -?> \ No newline at end of file diff --git a/lib/thumb.lib.php b/lib/thumb.lib.php deleted file mode 100644 index a54dc098b..000000000 --- a/lib/thumb.lib.php +++ /dev/null @@ -1,128 +0,0 @@ -run(이미지 경로가 포함된 컨텐츠); - -*******************************************************************************/ -class g4_thumb { - var $path; - var $width; - var $red = 0xff; - var $green = 0xff; - var $blue = 0xff; - var $quality = 100; - var $permission = 0606; - - function g4_thumb($path, $width) { - $this->set_path($path); - $this->set_width($width); - } - - // 경로 - function set_path($path) { - $this->path = $path; - @mkdir($path, 0707); - @chmod($path, 0707); - } - - function set_width($width) { - $this->width = $width; - } - - function get_width() { - return $this->width; - } - - function set_bgcolor($red, $green, $blue) { - $this->red = $red; - $this->green = $green; - $this->blue = $blue; - } - - function set_quality($quality) { - $this->quality = $quality; - } - - function set_permission($permission) { - $this->permission = $permission; - } - - function create($srcimg, $thumbfile) { - $width = $this->get_width(); - $source = null; - $size = @getimagesize($srcimg); - if ($size[2] == 1) - $source = @imagecreatefromgif($srcimg); - else if ($size[2] == 2) - $source = @imagecreatefromjpeg($srcimg); - else if ($size[2] == 3) - $source = @imagecreatefrompng($srcimg); - - if ($source == null) - return ''; - - // 이미지의 폭이 설정폭 보다 작다면 - if ($size[0] < $width) { - $width = $size[0]; - $height = $size[1]; - } else { - $rate = $width / $size[0]; - $height = (int)($size[1] * $rate); - } - - $target = @imagecreatetruecolor($width, $height); - $bgcolor = @imagecolorallocate($target, $this->red, $this->green, $this->blue); // 썸네일 배경 - imagefilledrectangle($target, 0, 0, $width, $height, $bgcolor); - imagecopyresampled($source, $source, 0, 0, 0, 0, $width, $height, $size[0], $size[1]); - imagecopy($target, $source, 0, 0, 0, 0, $size[0], $size[1]); - imagejpeg($target, $thumbfile, $this->quality); - chmod($thumbfile, $this->permission); // 추후 삭제를 위하여 파일모드 변경 - return $thumbfile; - } - - function thumbnail($matches) - { - foreach ($matches as $img) { - preg_match("/src=[\"\']?([^\"\'\s>]+)/i", $img, $m); - $src = trim($m[1]); - - $result = true; - if (preg_match("/\.(jpe?g|png|gif)$/i", $src)) { - // 유일한 파일명을 만든다. - $filename = md5($src).'_'.$this->width; - $thumb = $this->path.'/'.$filename; - - if (!file_exists($thumb)) { - $result = $this->create($src, $thumb); - } - } - else { - $thumb = $src; - } - - if ($result) { - $size = @getimagesize($src); - if ($size[0] < $this->width) { - return ""; - } else { - return ""; - } - } - } - } - - function run($content) - { - //return preg_replace_callback('#]+>#iS', create_function('$matches', 'return g4_thumb::thumbnail($matches);'), $content); - //return preg_replace_callback('#]+>#iS', array('g4_thumb', 'thumbnail'), $content); - //return preg_replace_callback('#]+>#iS', 'g4_thumb::thumbnail', $content); - return preg_replace_callback('#]+>#iS', array($this, 'thumbnail'), $content); - } -} -?> \ No newline at end of file From 1a1f71d23b6eb5eeec78c36c60bd1f2f8ad272c9 Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 15:01:35 +0900 Subject: [PATCH 07/49] =?UTF-8?q?ckeditor:=20#377=20=EC=97=90=20=EB=94=B0?= =?UTF-8?q?=EB=A5=B8=20=EB=8B=A8=EC=B6=95=ED=82=A4=20=EC=9D=BC=EB=9E=8C=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/ckeditor.lib.php | 12 +++++ bbs/ckeditor/shortcut.php | 93 +++++++++++++++++++++++++++++++++ css/default.css | 14 ++++- skin/board/basic/write.skin.php | 15 ------ 4 files changed, 118 insertions(+), 16 deletions(-) create mode 100644 bbs/ckeditor/shortcut.php diff --git a/bbs/ckeditor/ckeditor.lib.php b/bbs/ckeditor/ckeditor.lib.php index 7781b0c24..f0b0fddf5 100644 --- a/bbs/ckeditor/ckeditor.lib.php +++ b/bbs/ckeditor/ckeditor.lib.php @@ -8,6 +8,13 @@ function editor_html($id, $content, $ckeditor=true, $class="") $html = ""; $html .= "웹에디터 시작"; + $html .= "
"; + + ob_start(); + include_once("shortcut.php"); + $html .= ob_get_contents(); + ob_end_clean(); + if ($js) { $html .= "\n".''; $html .= "\n".''; @@ -18,6 +25,11 @@ function editor_html($id, $content, $ckeditor=true, $class="") $ckeditor_class = $ckeditor ? "ckeditor" : ""; $html .= "\n"; $html .= "\n웹 에디터 끝"; + $html .= "\n"; return $html; } diff --git a/bbs/ckeditor/shortcut.php b/bbs/ckeditor/shortcut.php new file mode 100644 index 000000000..95238dfa3 --- /dev/null +++ b/bbs/ckeditor/shortcut.php @@ -0,0 +1,93 @@ +
+
+
CTRL+Z
+
취소하기
+
CTRL+Y
+
다시 실행
+
CTRL+B
+
글자 굵게
+
CTRL+I
+
글자 기울이기
+
CTRL+E
+
가운데 정렬
+
CTRL+L
+
왼쪽 정렬
+
CTRL+R
+
오른쪽 정렬
+
CTRL+J
+
양쪽정렬
+
ALT+E
+
이모티콘 넣기
+
ALT+C
+
특수문자 넣기
+
CTRL+Q
+
순서 없는 목록
+
CTRL+SHIFT+8
+
순서 없는 목록 스타일
+
CTRL+7
+
순서 있는 목록
+
CTRL+SHIFT+7
+
순서 있는 목록 스타일
+
CTRL+M
+
인용문 문단
+
CTRL+8
+
들여쓰기
+
CTRL+SHIFT+M
+
내어쓰기
+
CTRL+SPACE
+
포맷 없애기
+
CTRL+A
+
전체선택
+
CTRL+SHIFT+X
+
취소선
+
CTRL+COMMA
+
아래첨자
+
CTRL+PERIOD
+
위첨자
+
CTRL+U
+
밑줄긋기
+
ALT+A
+
책갈피 만들기
+
ALT+F
+
플래쉬 넣기
+
ALT+H
+
구분선 넣기
+
ALT+I
+
이미지 넣기
+
ALT+L
+
바로가기 만들기
+
ALT+SHIFT+L
+
바로가기 없애기
+
ALT+ENTER
+
페이지 나누기
+
ALT+T
+
테이블 만들기
+
ALT+O
+
템플릿 적용
+
F1
+
도움말 보기
+
ALT+#3
+
색상선택기
+
ALT+M
+
복사 잘라내기 붙여넣기 메뉴
+
ALT+F11
+
요소 경로 포커스
+
CTRL+SHIFT+F
+
찾기
+
ALT+X
+
에디터 전체크기 설정/해제
+
CTRL+F2
+
미리보기
+
CTRL+SHIFT+P
+
인쇄하기
+
CTRL+H
+
찾기 바꾸기
+
ALT+SHIFT+T
+
테두리보기
+
ALT+Z
+
소스보기
+
ALT+F10
+
툴바로 이동
+
+ +
\ No newline at end of file diff --git a/css/default.css b/css/default.css index 89629f318..73be35b6b 100644 --- a/css/default.css +++ b/css/default.css @@ -13,7 +13,7 @@ input[type=text], input[type=password], input[type=submit], input[type=image] {-webkit-appearance:none} -button {border-radius:0;-webkit-appearance:none} +button {border-radius:0;font-size:1em;-webkit-appearance:none} p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all} hr {display:none} pre {overflow-x:scroll;font-size:1.1em} @@ -40,6 +40,18 @@ a:active {color:#000;text-decoration:underline} #captcha_mp3 img {border:1px solid #cfded8;border-left:0;background:#494949} #mp3_embed {position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden} /* 익스 8 이하에서 음성캡챠 실행 스타일 */ +/* ckeditor 단축키 */ +div.cke_sc {margin:0 0 5px;text-align:right} +.btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:1.9em;vertical-align:middle} +.cke_sc_def {display:none;margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} +.cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1} +.cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""} +.cke_sc_def dt, +.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9} +.cke_sc_def dt {width:20%;font-weight:bold} +.cke_sc_def dd {width:30%} +.cke_sc_def_on {display:block !important} + /* 상단 레이아웃 */ #hd {height:73px;border-top:3px solid #151515;border-bottom:1px solid #e7f1ed;background:#fff} #hd h1 {width:1px;height:1px;font-size:0;line-height:0;overflow:hidden} diff --git a/skin/board/basic/write.skin.php b/skin/board/basic/write.skin.php index 3e58e7f5b..e6a7aa51f 100644 --- a/skin/board/basic/write.skin.php +++ b/skin/board/basic/write.skin.php @@ -161,21 +161,6 @@ if ($is_admin) } ?> -with (document.fwrite) -{ - if (typeof(wr_name) != "undefined") - wr_name.focus(); - else if (typeof(wr_subject) != "undefined") - wr_subject.focus(); - else if (typeof(wr_content) != "undefined") - wr_content.focus(); - - if (typeof(ca_name) != "undefined") - if (w.value == "u") { - ca_name.value = ""; - } -} - function html_auto_br(obj) { if (obj.checked) { From 6ab8d4f6322d4a68e1634994f7f4e35ae4eda290 Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 15:06:37 +0900 Subject: [PATCH 08/49] =?UTF-8?q?ckeditor:=20=EC=8A=A4=ED=83=80=EC=9D=BC?= =?UTF-8?q?=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 12 ++++++++++++ css/default.css | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/css/admin.css b/css/admin.css index 4c13dfb7a..87b71f1ee 100644 --- a/css/admin.css +++ b/css/admin.css @@ -38,6 +38,18 @@ h2 {font-size:1.2em} #captcha img {border:1px solid #ddd;border-right:0} #captcha_mp3 img {border:1px solid #ddd;border-left:0;background:#494949} +/* ckeditor 단축키 */ +.cke_sc {margin:0 0 5px;text-align:right} +.btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:1.9em;vertical-align:middle} +.cke_sc_def {display:none;margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} +.cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1} +.cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""} +.cke_sc_def dt, +.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9} +.cke_sc_def dt {width:20%;font-weight:bold} +.cke_sc_def dd {width:30%} +.cke_sc_def_on {display:block !important} + /* 레이아웃 */ #hd {z-index:10;min-width:1000px;background:url('../adm/img/hd_bg.jpg') #383b3f top left repeat-x} #hd h1, diff --git a/css/default.css b/css/default.css index 73be35b6b..66b902c70 100644 --- a/css/default.css +++ b/css/default.css @@ -41,7 +41,7 @@ a:active {color:#000;text-decoration:underline} #mp3_embed {position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden} /* 익스 8 이하에서 음성캡챠 실행 스타일 */ /* ckeditor 단축키 */ -div.cke_sc {margin:0 0 5px;text-align:right} +.cke_sc {margin:0 0 5px;text-align:right} .btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:1.9em;vertical-align:middle} .cke_sc_def {display:none;margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} .cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1} From 362d2f604b92c0dac09313d5bb16f65c31c1e6e6 Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 15:10:23 +0900 Subject: [PATCH 09/49] =?UTF-8?q?ckeditor:=20=EC=8A=A4=ED=83=80=EC=9D=BC?= =?UTF-8?q?=20=EA=B4=80=EB=A6=AC=EC=9E=90=20=EC=A0=81=EC=9A=A92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/admin.css b/css/admin.css index 87b71f1ee..89a0c931b 100644 --- a/css/admin.css +++ b/css/admin.css @@ -13,7 +13,7 @@ input[type=text], input[type=password], input[type=submit], input[type=image] {-webkit-appearance:none} -button {border-radius:0;-webkit-appearance:none} +button {border-radius:0;font-size:1em;-webkit-appearance:none} p {margin:0;padding:10px 0;line-height:1.7em;word-break:break-all} hr {display:none} pre {overflow-x:scroll;font-size:1.1em} From 8a4c3880377937c933a5a595376c0007247b74de Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 15:49:12 +0900 Subject: [PATCH 10/49] =?UTF-8?q?=EA=B4=80=EB=A6=AC=EC=9E=90:=20#11=20?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=83=81=EB=8B=A8=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EB=8F=8C=EC=95=84=EA=B0=80=EA=B8=B0=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/admin.tail.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/adm/admin.tail.php b/adm/admin.tail.php index 97e110078..81eab961a 100644 --- a/adm/admin.tail.php +++ b/adm/admin.tail.php @@ -13,7 +13,10 @@ if (!defined('_GNUBOARD_')) exit;
From c05f9a0595ac1f3e535684a29b9ea34de1a3425d Mon Sep 17 00:00:00 2001 From: whitedot Date: Fri, 15 Mar 2013 16:13:07 +0900 Subject: [PATCH 11/49] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90,=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC:=20#11=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EC=83=81=EB=8B=A8=EC=9C=BC=EB=A1=9C=20=EB=8F=8C=EC=95=84?= =?UTF-8?q?=EA=B0=80=EA=B8=B0=20=EB=A7=81=ED=81=AC=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 3 ++- css/mobile.css | 3 ++- mobile/tail.php | 5 ++++- tail.php | 5 ++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/css/default.css b/css/default.css index 66b902c70..3807a30fa 100644 --- a/css/default.css +++ b/css/default.css @@ -127,8 +127,9 @@ a:active {color:#000;text-decoration:underline} #ft_catch {position:relative;margin:0 auto;padding:20px 0;width:980px;text-align:center} #ft_copy {background:#414141} -#ft_copy p {margin:0 auto;width:980px;color:#4a9ab8} +#ft_copy p {position:relative;margin:0 auto;width:980px;color:#4a9ab8} #ft_copy b {color:#fff} +#ft_copy a {position:absolute;top:10px;right:0;color:#fff} /* Mobile화면으로 */ #g4s_cng {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;background:#fff;color:#000;font-size:2em;text-decoration:none;text-align:center} diff --git a/css/mobile.css b/css/mobile.css index 01e364262..31ec572ea 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -91,8 +91,9 @@ pre {overflow-x:scroll;font-size:1.1em} #ft img {display:none} #ft_copy {background:#232323} -#ft_copy p {padding:0.5em;color:#4a9ab8} +#ft_copy p {position:relative;padding:0.5em;color:#4a9ab8} #ft_copy b {color:#fff} +#ft_copy a {position:absolute;top:0.5em;right:0.5em;color:#fff;text-decoration:none} /* PC화면으로 */ #g4s_cng {display:block;margin:0.3em;padding:0.5em 0;border:1px solid #eee;border-radius:2em;color:#000;font-size:1em;text-decoration:none;text-align:center} diff --git a/mobile/tail.php b/mobile/tail.php index f01a89ca7..1d7302527 100644 --- a/mobile/tail.php +++ b/mobile/tail.php @@ -33,7 +33,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
Sharing All Possibilities
-

Copyright © 소유하신 도메인. All rights reserved.

+

+ Copyright © 소유하신 도메인. All rights reserved.
+ 상단으로 +

diff --git a/tail.php b/tail.php index 92be7f43b..467927911 100644 --- a/tail.php +++ b/tail.php @@ -25,7 +25,10 @@ if ($config['cf_include_tail']) {
Sharing All Possibilities
-

Copyright © 소유하신 도메인. All rights reserved.

+

+ Copyright © 소유하신 도메인. All rights reserved.
+ 상단으로 +

From dc0958eadf994a7197d67bfa77e76e4477ecd970 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 15 Mar 2013 16:21:39 +0900 Subject: [PATCH 12/49] =?UTF-8?q?#401=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=ED=88=AC=ED=91=9C=ED=95=AD=EB=AA=A9=20=EC=97=86=EC=9D=84=20?= =?UTF-8?q?=EB=95=8C=20=EC=8A=A4=ED=82=A8=20=EC=B6=9C=EB=A0=A5=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/poll/basic/poll.skin.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/skin/poll/basic/poll.skin.php b/skin/poll/basic/poll.skin.php index 754d1bf41..37886df70 100644 --- a/skin/poll/basic/poll.skin.php +++ b/skin/poll/basic/poll.skin.php @@ -11,6 +11,9 @@ if (!$po_id) { } $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' "); + +if(!$po['po_id']) + return; ?>
From 1c8c5f8e092d28c5c53b1aa21d5f7c39bb66bcfa Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 16:26:51 +0900 Subject: [PATCH 13/49] =?UTF-8?q?ckeditor=20shortcut=20=EC=95=88=EB=82=B4?= =?UTF-8?q?=EB=A5=BC=20jquery=20load=20=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/ckeditor.lib.php | 25 ++++++---- bbs/ckeditor/shortcut.html | 91 ++++++++++++++++++++++++++++++++++ bbs/ckeditor/shortcut.php | 93 ----------------------------------- css/admin.css | 5 +- css/default.css | 5 +- 5 files changed, 110 insertions(+), 109 deletions(-) create mode 100644 bbs/ckeditor/shortcut.html delete mode 100644 bbs/ckeditor/shortcut.php diff --git a/bbs/ckeditor/ckeditor.lib.php b/bbs/ckeditor/ckeditor.lib.php index f0b0fddf5..ec55bfb21 100644 --- a/bbs/ckeditor/ckeditor.lib.php +++ b/bbs/ckeditor/ckeditor.lib.php @@ -10,26 +10,31 @@ function editor_html($id, $content, $ckeditor=true, $class="") $html .= "웹에디터 시작"; $html .= "
"; - ob_start(); - include_once("shortcut.php"); - $html .= ob_get_contents(); - ob_end_clean(); - if ($js) { $html .= "\n".''; $html .= "\n".''; $html .= "\n".''; + $html .= "\n"; $js = false; } $ckeditor_class = $ckeditor ? "ckeditor" : ""; $html .= "\n"; $html .= "\n웹 에디터 끝"; - $html .= "\n"; return $html; } diff --git a/bbs/ckeditor/shortcut.html b/bbs/ckeditor/shortcut.html new file mode 100644 index 000000000..482cde4c2 --- /dev/null +++ b/bbs/ckeditor/shortcut.html @@ -0,0 +1,91 @@ +
+
CTRL+Z
+
취소하기
+
CTRL+Y
+
다시 실행
+
CTRL+B
+
글자 굵게
+
CTRL+I
+
글자 기울이기
+
CTRL+E
+
가운데 정렬
+
CTRL+L
+
왼쪽 정렬
+
CTRL+R
+
오른쪽 정렬
+
CTRL+J
+
양쪽정렬
+
ALT+E
+
이모티콘 넣기
+
ALT+C
+
특수문자 넣기
+
CTRL+Q
+
순서 없는 목록
+
CTRL+SHIFT+8
+
순서 없는 목록 스타일
+
CTRL+7
+
순서 있는 목록
+
CTRL+SHIFT+7
+
순서 있는 목록 스타일
+
CTRL+M
+
인용문 문단
+
CTRL+8
+
들여쓰기
+
CTRL+SHIFT+M
+
내어쓰기
+
CTRL+SPACE
+
포맷 없애기
+
CTRL+A
+
전체선택
+
CTRL+SHIFT+X
+
취소선
+
CTRL+COMMA
+
아래첨자
+
CTRL+PERIOD
+
위첨자
+
CTRL+U
+
밑줄긋기
+
ALT+A
+
책갈피 만들기
+
ALT+F
+
플래쉬 넣기
+
ALT+H
+
구분선 넣기
+
ALT+I
+
이미지 넣기
+
ALT+L
+
바로가기 만들기
+
ALT+SHIFT+L
+
바로가기 없애기
+
ALT+ENTER
+
페이지 나누기
+
ALT+T
+
테이블 만들기
+
ALT+O
+
템플릿 적용
+
F1
+
도움말 보기
+
ALT+#3
+
색상선택기
+
ALT+M
+
복사 잘라내기 붙여넣기 메뉴
+
ALT+F11
+
요소 경로 포커스
+
CTRL+SHIFT+F
+
찾기
+
ALT+X
+
에디터 전체크기 설정/해제
+
CTRL+F2
+
미리보기
+
CTRL+SHIFT+P
+
인쇄하기
+
CTRL+H
+
찾기 바꾸기
+
ALT+SHIFT+T
+
테두리보기
+
ALT+Z
+
소스보기
+
ALT+F10
+
툴바로 이동
+
+ diff --git a/bbs/ckeditor/shortcut.php b/bbs/ckeditor/shortcut.php deleted file mode 100644 index 95238dfa3..000000000 --- a/bbs/ckeditor/shortcut.php +++ /dev/null @@ -1,93 +0,0 @@ -
-
-
CTRL+Z
-
취소하기
-
CTRL+Y
-
다시 실행
-
CTRL+B
-
글자 굵게
-
CTRL+I
-
글자 기울이기
-
CTRL+E
-
가운데 정렬
-
CTRL+L
-
왼쪽 정렬
-
CTRL+R
-
오른쪽 정렬
-
CTRL+J
-
양쪽정렬
-
ALT+E
-
이모티콘 넣기
-
ALT+C
-
특수문자 넣기
-
CTRL+Q
-
순서 없는 목록
-
CTRL+SHIFT+8
-
순서 없는 목록 스타일
-
CTRL+7
-
순서 있는 목록
-
CTRL+SHIFT+7
-
순서 있는 목록 스타일
-
CTRL+M
-
인용문 문단
-
CTRL+8
-
들여쓰기
-
CTRL+SHIFT+M
-
내어쓰기
-
CTRL+SPACE
-
포맷 없애기
-
CTRL+A
-
전체선택
-
CTRL+SHIFT+X
-
취소선
-
CTRL+COMMA
-
아래첨자
-
CTRL+PERIOD
-
위첨자
-
CTRL+U
-
밑줄긋기
-
ALT+A
-
책갈피 만들기
-
ALT+F
-
플래쉬 넣기
-
ALT+H
-
구분선 넣기
-
ALT+I
-
이미지 넣기
-
ALT+L
-
바로가기 만들기
-
ALT+SHIFT+L
-
바로가기 없애기
-
ALT+ENTER
-
페이지 나누기
-
ALT+T
-
테이블 만들기
-
ALT+O
-
템플릿 적용
-
F1
-
도움말 보기
-
ALT+#3
-
색상선택기
-
ALT+M
-
복사 잘라내기 붙여넣기 메뉴
-
ALT+F11
-
요소 경로 포커스
-
CTRL+SHIFT+F
-
찾기
-
ALT+X
-
에디터 전체크기 설정/해제
-
CTRL+F2
-
미리보기
-
CTRL+SHIFT+P
-
인쇄하기
-
CTRL+H
-
찾기 바꾸기
-
ALT+SHIFT+T
-
테두리보기
-
ALT+Z
-
소스보기
-
ALT+F10
-
툴바로 이동
-
- -
\ No newline at end of file diff --git a/css/admin.css b/css/admin.css index 89a0c931b..b392c868b 100644 --- a/css/admin.css +++ b/css/admin.css @@ -41,14 +41,13 @@ h2 {font-size:1.2em} /* ckeditor 단축키 */ .cke_sc {margin:0 0 5px;text-align:right} .btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:1.9em;vertical-align:middle} -.cke_sc_def {display:none;margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} +.cke_sc_def {margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} .cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1} .cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""} .cke_sc_def dt, -.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9} +.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid .e9e9e9} .cke_sc_def dt {width:20%;font-weight:bold} .cke_sc_def dd {width:30%} -.cke_sc_def_on {display:block !important} /* 레이아웃 */ #hd {z-index:10;min-width:1000px;background:url('../adm/img/hd_bg.jpg') #383b3f top left repeat-x} diff --git a/css/default.css b/css/default.css index 66b902c70..31f1bd3e6 100644 --- a/css/default.css +++ b/css/default.css @@ -43,14 +43,13 @@ a:active {color:#000;text-decoration:underline} /* ckeditor 단축키 */ .cke_sc {margin:0 0 5px;text-align:right} .btn_cke_sc{display:inline-block;padding:0 10px;height:23px;border:1px solid #ccc !important;background:#fafafa !important;color:#000 !important;text-decoration:none !important;line-height:1.9em;vertical-align:middle} -.cke_sc_def {display:none;margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} +.cke_sc_def {margin:0 0 5px;padding:10px;border:1px solid #ccc;background:#f7f7f7;text-align:center} .cke_sc_def dl{margin:0 0 5px;text-align:left;zoom:1} .cke_sc_def dl:after {display:block;visibility:hidden;clear:both;content:""} .cke_sc_def dt, -.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid #e9e9e9} +.cke_sc_def dd {float:left;margin:0;padding:5px 0;border-bottom:1px solid .e9e9e9} .cke_sc_def dt {width:20%;font-weight:bold} .cke_sc_def dd {width:30%} -.cke_sc_def_on {display:block !important} /* 상단 레이아웃 */ #hd {height:73px;border-top:3px solid #151515;border-bottom:1px solid #e7f1ed;background:#fff} From 1fef69cd71e679bc307719821d4ba8279a00df2b Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 16:41:23 +0900 Subject: [PATCH 14/49] =?UTF-8?q?=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=EC=A6=88=EA=B0=80=20=EB=84=98=EC=96=B4=EC=98=A4?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EC=95=98=EB=8B=A4=EB=A9=B4=20return?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index a03acfb17..755058a60 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -104,6 +104,8 @@ function thumbnail($filename, $source_path, $target_path, $thumb_width, $thumb_h { global $g4; + if ($thumb_width==0 || $thumb_height==0) return; + $thumb_filename = preg_replace("/\.[^\.]+$/i", "", $filename); // 확장자제거 if (!is_dir($target_path)) { From 591c7ee0e9724ffa9fbcddbc20a4d227badc4360 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 16:42:23 +0900 Subject: [PATCH 15/49] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=EC=9D=B4?= =?UTF-8?q?=EB=AF=B8=EC=88=98=EA=B0=80=200=20=EC=9D=BC=20=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20Division=20by=20zero=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EB=82=98=EC=98=A4=EC=A7=80=20=EC=95=8A=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=A1=B0=EC=B9=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/list.php | 6 +++--- skin/board/gallery/list.skin.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bbs/list.php b/bbs/list.php index 6a0877866..0a80c3ec0 100644 --- a/bbs/list.php +++ b/bbs/list.php @@ -64,9 +64,9 @@ if ($is_member && ($is_admin == 'super' || $group['gr_admin'] == $member['mb_id' // 정렬에 사용하는 QUERY_STRING $qstr2 = 'bo_table='.$bo_table.'&sop='.$sop; -if ($board['bo_gallery_cols']) { - $td_width = (int)(100 / $board['bo_gallery_cols']); -} +// 0 으로 나눌시 오류를 방지하기 위하여 값이 없으면 1 로 설정 +$bo_gallery_cols = $board['bo_gallery_cols'] ? $board['bo_gallery_cols'] : 1; +$td_width = (int)(100 / $bo_gallery_cols); // 정렬 // 인덱스 필드가 아니면 정렬에 사용하지 않음 diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index 17f426c57..f15321fc9 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -46,13 +46,13 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php');
    0 && ($i % $board['bo_gallery_cols'] == 0)) + if($i>0 && ($i % $bo_gallery_cols == 0)) $style = 'clear:both;'; else $style = ''; if ($i == 0) $k = 0; $k += 1; - if ($k % $board['bo_gallery_cols'] == 0) $style .= "margin:0 !important;"; + if ($k % $bo_gallery_cols == 0) $style .= "margin:0 !important;"; ?>
  • From b18e402913eb347a0c035f836666c5710f53711c Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 15 Mar 2013 16:44:51 +0900 Subject: [PATCH 16/49] =?UTF-8?q?#401=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20p?= =?UTF-8?q?o=5Fid=20max=20=EA=B0=92=EC=9D=84=20=EA=B5=AC=ED=95=B4=EC=84=9C?= =?UTF-8?q?=20=EC=B2=98=EB=A6=AC=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/poll.lib.php | 14 +++++++++----- skin/poll/basic/poll.skin.php | 14 -------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/lib/poll.lib.php b/lib/poll.lib.php index 312fb3d3e..93c9ad89f 100644 --- a/lib/poll.lib.php +++ b/lib/poll.lib.php @@ -4,15 +4,19 @@ if (!defined('_GNUBOARD_')) exit; // 설문조사 function poll($skin_dir='basic', $po_id=false) { - global $config, $member, $g4; + global $config, $member, $g4, $is_admin; // 투표번호가 넘어오지 않았다면 가장 큰(최근에 등록한) 투표번호를 얻는다 - if (empty($po_id)) { - $po_id = $config['cf_max_po_id']; - if (empty($po_id)) - return ""; + if (!$po_id) { + $row = sql_fetch(" select MAX(po_id) as max_po_id from {$g4['poll_table']} "); + $po_id = $row['max_po_id']; } + if(!$po_id) + return; + + $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' "); + ob_start(); if (G4_IS_MOBILE) { $poll_skin_path = G4_MOBILE_PATH.'/'.G4_SKIN_DIR.'/poll/'.$skin_dir; diff --git a/skin/poll/basic/poll.skin.php b/skin/poll/basic/poll.skin.php index 37886df70..2b2f8ecf3 100644 --- a/skin/poll/basic/poll.skin.php +++ b/skin/poll/basic/poll.skin.php @@ -1,19 +1,5 @@ From 6eef11b1aa97afedefb98b933202c9708a439b9e Mon Sep 17 00:00:00 2001 From: gnuboard Date: Fri, 15 Mar 2013 16:53:23 +0900 Subject: [PATCH 17/49] =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=20=EB=A3=A8=ED=8B=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/board/basic/view_comment.skin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index da72cab1e..d2c6144a6 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -62,7 +62,7 @@ var char_max = parseInt(); // 최대 @@ -279,9 +279,9 @@ var char_max = parseInt(); // 최대 } } - function comment_delete(url) + function comment_delete() { - if (confirm("이 댓글를 삭제하시겠습니까?")) location.href = url; + return confirm("이 댓글을 삭제하시겠습니까?"); } comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) From 04fec7ffab2fd1806fb2e0388bd5d49ebe3309aa Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 15 Mar 2013 17:03:42 +0900 Subject: [PATCH 18/49] =?UTF-8?q?#402=20=EC=97=90=20=EB=94=B0=EB=A5=B8=20?= =?UTF-8?q?=EB=8C=93=EA=B8=80=20=EC=82=AD=EC=A0=9C=20=EB=A3=A8=ED=8B=B4=20?= =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC=20=EC=8A=A4=ED=82=A8=EC=97=90?= =?UTF-8?q?=EB=8F=84=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/board/basic/view_comment.skin.php | 12 ++++++------ mobile/skin/board/gallery/view_comment.skin.php | 12 ++++++------ skin/board/basic/view_comment.skin.php | 6 +++--- skin/board/gallery/view_comment.skin.php | 12 ++++++------ 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/mobile/skin/board/basic/view_comment.skin.php b/mobile/skin/board/basic/view_comment.skin.php index 8f74a6b65..8d5b72695 100644 --- a/mobile/skin/board/basic/view_comment.skin.php +++ b/mobile/skin/board/basic/view_comment.skin.php @@ -62,7 +62,7 @@ var char_max = parseInt(); // 최대 @@ -195,17 +195,17 @@ var char_max = parseInt(); // 최대 var cnt = parseInt(document.getElementById('char_count').innerHTML); if (char_min > 0 && char_min > cnt) { - alert("댓글는 "+char_min+"글자 이상 쓰셔야 합니다."); + alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다."); return false; } else if (char_max > 0 && char_max < cnt) { - alert("댓글는 "+char_max+"글자 이하로 쓰셔야 합니다."); + alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다."); return false; } } else if (!document.getElementById('wr_content').value) { - alert("댓글를 입력하여 주십시오."); + alert("댓글을 입력하여 주십시오."); return false; } @@ -279,9 +279,9 @@ var char_max = parseInt(); // 최대 } } - function comment_delete(url) + function comment_delete() { - if (confirm("이 댓글를 삭제하시겠습니까?")) location.href = url; + return confirm("이 댓글을 삭제하시겠습니까?"); } comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) diff --git a/mobile/skin/board/gallery/view_comment.skin.php b/mobile/skin/board/gallery/view_comment.skin.php index c85548b8f..8dd67cb60 100644 --- a/mobile/skin/board/gallery/view_comment.skin.php +++ b/mobile/skin/board/gallery/view_comment.skin.php @@ -62,7 +62,7 @@ var char_max = parseInt(); // 최대 @@ -195,17 +195,17 @@ var char_max = parseInt(); // 최대 var cnt = parseInt(document.getElementById('char_count').innerHTML); if (char_min > 0 && char_min > cnt) { - alert("댓글는 "+char_min+"글자 이상 쓰셔야 합니다."); + alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다."); return false; } else if (char_max > 0 && char_max < cnt) { - alert("댓글는 "+char_max+"글자 이하로 쓰셔야 합니다."); + alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다."); return false; } } else if (!document.getElementById('wr_content').value) { - alert("댓글를 입력하여 주십시오."); + alert("댓글을 입력하여 주십시오."); return false; } @@ -279,9 +279,9 @@ var char_max = parseInt(); // 최대 } } - function comment_delete(url) + function comment_delete() { - if (confirm("이 댓글를 삭제하시겠습니까?")) location.href = url; + return confirm("이 댓글을 삭제하시겠습니까?"); } comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) diff --git a/skin/board/basic/view_comment.skin.php b/skin/board/basic/view_comment.skin.php index d2c6144a6..ec2fd0fe8 100644 --- a/skin/board/basic/view_comment.skin.php +++ b/skin/board/basic/view_comment.skin.php @@ -195,17 +195,17 @@ var char_max = parseInt(); // 최대 var cnt = parseInt(document.getElementById('char_count').innerHTML); if (char_min > 0 && char_min > cnt) { - alert("댓글는 "+char_min+"글자 이상 쓰셔야 합니다."); + alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다."); return false; } else if (char_max > 0 && char_max < cnt) { - alert("댓글는 "+char_max+"글자 이하로 쓰셔야 합니다."); + alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다."); return false; } } else if (!document.getElementById('wr_content').value) { - alert("댓글를 입력하여 주십시오."); + alert("댓글을 입력하여 주십시오."); return false; } diff --git a/skin/board/gallery/view_comment.skin.php b/skin/board/gallery/view_comment.skin.php index bf7bce66d..f22b4ac60 100644 --- a/skin/board/gallery/view_comment.skin.php +++ b/skin/board/gallery/view_comment.skin.php @@ -62,7 +62,7 @@ var char_max = parseInt(); // 최대 @@ -195,17 +195,17 @@ var char_max = parseInt(); // 최대 var cnt = parseInt(document.getElementById('char_count').innerHTML); if (char_min > 0 && char_min > cnt) { - alert("댓글는 "+char_min+"글자 이상 쓰셔야 합니다."); + alert("댓글은 "+char_min+"글자 이상 쓰셔야 합니다."); return false; } else if (char_max > 0 && char_max < cnt) { - alert("댓글는 "+char_max+"글자 이하로 쓰셔야 합니다."); + alert("댓글은 "+char_max+"글자 이하로 쓰셔야 합니다."); return false; } } else if (!document.getElementById('wr_content').value) { - alert("댓글를 입력하여 주십시오."); + alert("댓글을 입력하여 주십시오."); return false; } @@ -279,9 +279,9 @@ var char_max = parseInt(); // 최대 } } - function comment_delete(url) + function comment_delete() { - if (confirm("이 댓글를 삭제하시겠습니까?")) location.href = url; + return confirm("이 댓글을 삭제하시겠습니까?"); } comment_box('', 'c'); // 댓글 입력폼이 보이도록 처리하기위해서 추가 (root님) From 26681945832ed35c4d848d5d4168957d1cb295eb Mon Sep 17 00:00:00 2001 From: rollydream Date: Fri, 15 Mar 2013 17:57:55 +0900 Subject: [PATCH 19/49] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EC=9D=B5?= =?UTF-8?q?=EC=8A=A410=20=EC=97=90=EC=84=9C=20=EC=9E=85=EB=A0=A5=EC=83=81?= =?UTF-8?q?=EC=9E=90=20=EB=86=92=EC=9D=B4=20=EB=8B=A4=EB=A5=B8=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/member/basic/style.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/skin/member/basic/style.css b/mobile/skin/member/basic/style.css index c83bb7a90..d6876cda1 100644 --- a/mobile/skin/member/basic/style.css +++ b/mobile/skin/member/basic/style.css @@ -60,7 +60,7 @@ #mb_confirm p {padding:1.5em 1em;border-bottom:1px solid #cfded8;border-bottom:0;background:#fff} #mb_confirm p strong {display:block} #mb_confirm fieldset {position:relative;margin:0 0 3em;padding:2em 1em;border-bottom:1px solid #cfded8;background:#f7f7f7} -#mb_confirm_pw {display:block;margin-top:1em;padding:0;width:80%;line-height:1.8em} +#mb_confirm_pw {display:block;margin-top:1em;padding:0;width:80%;line-height:1.8em !important} #mb_confirm .btn_submit {position:absolute;bottom:2em;right:1em;width:18%;height:1.9em !important;line-height:1.9em} /* 비밀글 패스워드 확인 */ @@ -69,7 +69,7 @@ #pw_confirm p {padding:1.5em 1em;border-bottom:1px solid #cfded8;border-bottom:0;background:#fff} #pw_confirm p strong {display:block} #pw_confirm fieldset {position:relative;margin:0 0 3em;padding:0.5em 0.5em 1em;border-bottom:1px solid #cfded8;background:#f7f7f7} -#pw_wr_password {display:block;margin-top:1em;padding:0;width:80%;line-height:1.8em} +#pw_wr_password {display:block;margin-top:1em;padding:0;width:80%;line-height:1.8em !important} #pw_confirm .btn_submit {position:absolute;bottom:1em;right:0.5em;width:18%;height:1.9em !important;line-height:1.9em} /* 폼메일 */ From 0d36d343f1b4a567a183116eef51200781a252ba Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 10:12:51 +0900 Subject: [PATCH 20/49] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EB=A9=94?= =?UTF-8?q?=EB=89=B4=20=EB=B3=B4=EC=9D=B4=EA=B8=B0=20=ED=95=84=EB=93=9C=20?= =?UTF-8?q?=EC=BF=BC=EB=A6=AC=EC=97=90=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- head.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/head.php b/head.php index 11e841f5a..02ed55ba8 100644 --- a/head.php +++ b/head.php @@ -139,7 +139,7 @@ if ($config['cf_include_head']) {
      From 1121808276e24911c8d46c12afece1e42f86bf11 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 10:16:58 +0900 Subject: [PATCH 21/49] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EB=A9=94?= =?UTF-8?q?=EB=89=B4=20=EB=B3=B4=EC=9D=B4=EA=B8=B0=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B9=A0=EC=A7=84=20=EB=B6=80=EB=B6=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form_update.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adm/board_form_update.php b/adm/board_form_update.php index c2e4bb93f..70bcad394 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -109,6 +109,7 @@ $sql_common = " gr_id = '{$_POST['gr_id']}', bo_reply_order = '{$_POST['bo_reply_order']}', bo_use_search = '{$_POST['bo_use_search']}', bo_order = '{$_POST['bo_order']}', + bo_show_menu = '{$_POST['bo_show_menu']}', bo_write_min = '{$_POST['bo_write_min']}', bo_write_max = '{$_POST['bo_write_max']}', bo_comment_min = '{$_POST['bo_comment_min']}', @@ -362,6 +363,7 @@ if (is_checked('chk_all_content_tail')) $all_fields .= " , bo_content_ta if (is_checked('chk_all_insert_content')) $all_fields .= " , bo_insert_content = '{$bo_insert_content}' "; if (is_checked('chk_all_use_search')) $all_fields .= " , bo_use_search = '{$bo_use_search}' "; if (is_checked('chk_all_order')) $all_fields .= " , bo_order = '{$bo_order}' "; +if (is_checked('chk_all_show_menu')) $all_fields .= " , bo_show_menu = '{$bo_show_menu}' "; for ($i=1; $i<=10; $i++) { if (is_checked('chk_all_'.$i)) { $all_fields .= " , bo_{$i}_subj = '".$_POST['bo_'.$i.'_subj']."' "; From 4bf9ca83493eb9e4b46454a526a5e06c4f6c9849 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 10:33:29 +0900 Subject: [PATCH 22/49] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=20=EB=B3=B5?= =?UTF-8?q?=EC=82=AC=EC=8B=9C=20=EB=AA=A8=EB=B0=94=EC=9D=BC=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=20=EB=B3=B5=EC=82=AC=EB=90=98=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_copy_update.php | 1 + 1 file changed, 1 insertion(+) diff --git a/adm/board_copy_update.php b/adm/board_copy_update.php index b153dba7d..7fc7452bd 100644 --- a/adm/board_copy_update.php +++ b/adm/board_copy_update.php @@ -68,6 +68,7 @@ $sql = " insert into {$g4['board_table']} bo_hot = '{$board[bo_hot]}', bo_image_width = '{$board[bo_image_width]}', bo_skin = '{$board['bo_skin']}', + bo_mobile_skin = '{$board['bo_mobile']}', bo_include_head = '{$board['bo_include_head']}', bo_include_tail = '{$board['bo_include_tail']}', bo_content_head = '".addslashes($board['bo_content_head'])."', From ffd1148637c8656b95f78063a88cad14c3ad8fe0 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 10:34:12 +0900 Subject: [PATCH 23/49] =?UTF-8?q?=EC=A0=91=EC=86=8D=EA=B8=B0=EA=B8=B0=20?= =?UTF-8?q?=EA=B7=B8=EB=A3=B9=EC=A0=81=EC=9A=A9,=20=EC=A0=84=EC=B2=B4?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=20=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form.php | 8 ++++---- adm/board_form_update.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/adm/board_form.php b/adm/board_form.php index 180d8841d..8ddc81c08 100644 --- a/adm/board_form.php +++ b/adm/board_form.php @@ -160,10 +160,10 @@ $pg_anchor = "
        - - - - + + + + diff --git a/adm/board_form_update.php b/adm/board_form_update.php index 70bcad394..c93ea6d1d 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -53,7 +53,7 @@ $bo_category_list = str_replace($src_char, $dst_char, $bo_category_list); $sql_common = " gr_id = '{$_POST['gr_id']}', bo_subject = '{$_POST['bo_subject']}', - bo_device = '{$_POST['bo_device']}', + bo_device = '{$_POST['bo_device']}', bo_admin = '{$_POST['bo_admin']}', bo_list_level = '{$_POST['bo_list_level']}', bo_read_level = '{$_POST['bo_read_level']}', @@ -223,7 +223,7 @@ if ($w == '') { // 같은 그룹내 게시판 동일 옵션 적용 $grp_fields = ''; -if (is_checked('chk_grp_use')) $grp_fields .= " , bo_use = '{$bo_use}' "; +if (is_checked('chk_grp_device')) $grp_fields .= " , bo_device = '{$bo_device}' "; if (is_checked('chk_grp_admin')) $grp_fields .= " , bo_admin = '{$bo_admin}' "; if (is_checked('chk_grp_list_level')) $grp_fields .= " , bo_list_level = '{$bo_list_level}' "; if (is_checked('chk_grp_read_level')) $grp_fields .= " , bo_read_level = '{$bo_read_level}' "; @@ -300,7 +300,7 @@ if ($grp_fields) { // 모든 게시판 동일 옵션 적용 $all_fields = ''; -if (is_checked('chk_all_use')) $all_fields .= " , bo_use = '{$bo_use}' "; +if (is_checked('chk_all_device')) $all_fields .= " , bo_device = '{$bo_device}' "; if (is_checked('chk_all_admin')) $all_fields .= " , bo_admin = '{$bo_admin}' "; if (is_checked('chk_all_list_level')) $all_fields .= " , bo_list_level = '{$bo_list_level}' "; if (is_checked('chk_all_read_level')) $all_fields .= " , bo_read_level = '{$bo_read_level}' "; From d0958418355b795f9a47e43348d7fccf06e0c9ad Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 10:38:07 +0900 Subject: [PATCH 24/49] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EB=A9=94=EB=89=B4=EB=B3=B4=EC=9D=B4=EA=B8=B0=20?= =?UTF-8?q?=EA=B7=B8=EB=A3=B9=EC=A0=81=EC=9A=A9=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/board_form_update.php | 1 + 1 file changed, 1 insertion(+) diff --git a/adm/board_form_update.php b/adm/board_form_update.php index c93ea6d1d..4f8e67210 100644 --- a/adm/board_form_update.php +++ b/adm/board_form_update.php @@ -286,6 +286,7 @@ if (is_checked('chk_grp_content_tail')) $grp_fields .= " , bo_content_ta if (is_checked('chk_grp_insert_content')) $grp_fields .= " , bo_insert_content = '{$bo_insert_content}' "; if (is_checked('chk_grp_use_search')) $grp_fields .= " , bo_use_search = '{$bo_use_search}' "; if (is_checked('chk_grp_order')) $grp_fields .= " , bo_order = '{$bo_order}' "; +if (is_checked('chk_grp_show_menu')) $grp_fields .= " , bo_show_menu = '{$bo_show_menu}' "; for ($i=1; $i<=10; $i++) { if (is_checked('chk_grp_'.$i)) { $grp_fields .= " , bo_{$i}_subj = '".$_POST['bo_'.$i.'_subj']."' "; From 192efe981e53e4d46384134bcc34651d39301fad Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 11:53:26 +0900 Subject: [PATCH 25/49] =?UTF-8?q?noscript=20=EC=9D=BC=20=EA=B2=BD=EC=9A=B0?= =?UTF-8?q?=20=EB=8B=A8=EC=B6=95=ED=82=A4=20=EC=9D=BC=EB=9E=8C=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=ED=95=98=EC=A7=80=20=EC=95=8A=EC=9D=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/ckeditor.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbs/ckeditor/ckeditor.lib.php b/bbs/ckeditor/ckeditor.lib.php index ec55bfb21..2d96f1f7e 100644 --- a/bbs/ckeditor/ckeditor.lib.php +++ b/bbs/ckeditor/ckeditor.lib.php @@ -8,7 +8,7 @@ function editor_html($id, $content, $ckeditor=true, $class="") $html = ""; $html .= "웹에디터 시작"; - $html .= "
        "; + $html .= ''; if ($js) { $html .= "\n".''; From 92e4b0aa9edcb008d0925f5a634bd3a5ef74dc8c Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 11:53:52 +0900 Subject: [PATCH 26/49] =?UTF-8?q?=EA=B2=BD=EB=A1=9C=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 720dda438..d380accc4 100644 --- a/common.php +++ b/common.php @@ -71,7 +71,8 @@ function g4_path() { $path = dirname(__FILE__); // 예) /home/sir/www/g4s $linux_dir = str_replace("\\", "/", $path); // 예) /home/sir/www/g4s - $document_root = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']); // 예) /home/sir/www + //$document_root = str_replace("\\", "/", $_SERVER['DOCUMENT_ROOT']); // 예) /home/sir/www + $document_root = str_replace("\\", "/", realpath($_SERVER['DOCUMENT_ROOT'])); $base_dir = preg_replace('#^'.$document_root.'#i', '', $linux_dir); // 예) /g4s $port = $_SERVER['SERVER_PORT'] != 80 ? ':'.$_SERVER['SERVER_PORT'] : ''; $http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on') ? 's' : '') . '://'; From cad9888a3ee66b1b6e7168c9c36aa803472e769d Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 13:42:09 +0900 Subject: [PATCH 27/49] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=97=90=EC=84=9C=20=EC=97=90=EB=94=94=ED=84=B0?= =?UTF-8?q?=EB=A1=9C=20=EC=B2=A8=EB=B6=80=EB=90=9C=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=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/thumbnail.lib.php | 57 ++++++++++++++++++++++++- mobile/skin/board/gallery/list.skin.php | 11 ++--- skin/board/gallery/list.skin.php | 9 ++-- 3 files changed, 62 insertions(+), 15 deletions(-) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index 755058a60..baf036d69 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -9,9 +9,62 @@ function it_img_thumb($filename, $filepath, $thumb_width, $thumb_height, $is_cre } // 게시글리스트 썸네일 생성 -function get_list_thumbnail($filename, $filepath, $thumb_width, $thumb_height, $is_create=false, $is_crop=true) +function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_create=false, $is_crop=true) { - return thumbnail($filename, $filepath, $filepath, $thumb_width, $thumb_height, $is_create, $is_crop); + global $g4, $config; + $filename = $alt = ""; + $edt = false; + + $sql = " select bf_file, bf_content from {$g4['board_file_table']} + where bo_table = '$bo_table' and wr_id = '$wr_id' and bf_type between '1' and '3' order by bf_no limit 0, 1 "; + $row = sql_fetch($sql); + + if($row['bf_file']) { + $filename = $row['bf_file']; + $filepath = G4_DATA_PATH.'/file/'.$bo_table; + $src_url = G4_DATA_URL.'/file/'.$bo_table; + $alt = get_text($row['bf_content']); + } else { + $write_table = $g4['write_prefix'].$bo_table; + $sql = " select wr_content from $write_table where wr_id = '$wr_id' "; + $write = sql_fetch($sql); + $matchs = get_editor_image($write['wr_content']); + $edt = true; + + for($i=0; $i$src, "alt"=>$alt); + + return $thumb; } // 게시글보기 썸네일 생성 diff --git a/mobile/skin/board/gallery/list.skin.php b/mobile/skin/board/gallery/list.skin.php index 8dc2e80b3..3f2e04926 100644 --- a/mobile/skin/board/gallery/list.skin.php +++ b/mobile/skin/board/gallery/list.skin.php @@ -87,15 +87,12 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); 공지 '; + if($thumb['src']) { + $img_content = ''.$thumb['alt'].''; } else { - $img_content = 'no image'; + $img_content = 'no image'; } echo $img_content; diff --git a/skin/board/gallery/list.skin.php b/skin/board/gallery/list.skin.php index f15321fc9..e5f382fd6 100644 --- a/skin/board/gallery/list.skin.php +++ b/skin/board/gallery/list.skin.php @@ -72,13 +72,10 @@ include_once(G4_LIB_PATH.'/thumbnail.lib.php'); 공지 '; + if($thumb['src']) { + $img_content = ''.$thumb['alt'].''; } else { $img_content = 'no image'; } From 7956b4f02ffa096750c1ca3add7676a54a6b12db Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 13:52:53 +0900 Subject: [PATCH 28/49] =?UTF-8?q?gmail=EB=A1=9C=20=EB=A9=94=EC=9D=BC=20?= =?UTF-8?q?=EB=B0=9C=EC=86=A1=EC=8B=9C=20=EC=A0=9C=EB=AA=A9=20=EA=B9=A8?= =?UTF-8?q?=EC=A7=80=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/mailer.lib.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/mailer.lib.php b/lib/mailer.lib.php index d6f58c05f..f816a3d7d 100644 --- a/lib/mailer.lib.php +++ b/lib/mailer.lib.php @@ -11,8 +11,10 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file='', $cc= // 메일발송 사용을 하지 않는다면 if (!$config['cf_email_use']) return; - $fname = "=?$g4[charset]?B?" . base64_encode($fname) . "?="; - $subject = "=?$g4[charset]?B?" . base64_encode($subject) . "?="; + //$fname = "=?$g4[charset]?B?" . base64_encode($fname) . "?="; + //$subject = "=?$g4[charset]?B?" . base64_encode($subject) . "?="; + $fname = "=?utf-8?B?" . base64_encode($fname) . "?="; + $subject = "=?utf-8?B?" . base64_encode($subject) . "?="; //$g4[charset] = ($g4[charset] != "") ? "charset=$g4[charset]" : ""; $header = "Return-Path: <$fmail>\n"; @@ -31,11 +33,11 @@ function mailer($fname, $fmail, $to, $subject, $content, $type=0, $file='', $cc= } if ($type) { - $header .= "Content-Type: TEXT/HTML; charset=$g4[charset]\n"; + $header .= "Content-Type: TEXT/HTML; charset=utf-8\n"; if ($type == 2) $content = nl2br($content); } else { - $header .= "Content-Type: TEXT/PLAIN; charset=$g4[charset]\n"; + $header .= "Content-Type: TEXT/PLAIN; charset=utf-8\n"; $content = stripslashes($content); } $header .= "Content-Transfer-Encoding: BASE64\n\n"; From 3c3710a092409d49f2235b7ce35c411b1ba1d63b Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 14:04:52 +0900 Subject: [PATCH 29/49] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=B2=B4?= =?UTF-8?q?=ED=81=AC=20=EC=98=A4=EB=A5=98=EB=A9=94=EC=84=B8=EC=A7=80=20\n?= =?UTF-8?q?=EC=9D=84=20\\n=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/login_check.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bbs/login_check.php b/bbs/login_check.php index 8bb298a68..011cae8ea 100644 --- a/bbs/login_check.php +++ b/bbs/login_check.php @@ -11,27 +11,27 @@ if (!trim($mb_id) || !trim($mb_password)) $mb = get_member($mb_id); -// 가입된 회원이 아니다. 패스워드가 틀리다. 라는 메세지를 따로 보여주지 않는 이유는 +// 가입된 회원이 아니다. 패스워드가 틀리다. 라는 메세지를 따로 보여주지 않는 이유는 // 회원아이디를 입력해 보고 맞으면 또 패스워드를 입력해보는 경우를 방지하기 위해서입니다. // 불법사용자의 경우 회원아이디가 틀린지, 패스워드가 틀린지를 알기까지는 많은 시간이 소요되기 때문입니다. if (!$mb['mb_id'] || (sql_password($mb_password) != $mb['mb_password'])) { - alert('가입된 회원아이디가 아니거나 패스워드가 틀립니다.\n패스워드는 대소문자를 구분합니다.'); + alert('가입된 회원아이디가 아니거나 패스워드가 틀립니다.\\n패스워드는 대소문자를 구분합니다.'); } // 차단된 아이디인가? if ($mb['mb_intercept_date'] && $mb['mb_intercept_date'] <= date("Ymd", G4_SERVER_TIME)) { - $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb['mb_intercept_date']); + $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb['mb_intercept_date']); alert('회원님의 아이디는 접근이 금지되어 있습니다.\n처리일 : '.$date); } // 탈퇴한 아이디인가? if ($mb['mb_leave_date'] && $mb['mb_leave_date'] <= date("Ymd", G4_SERVER_TIME)) { - $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb['mb_leave_date']); + $date = preg_replace("/([0-9]{4})([0-9]{2})([0-9]{2})/", "\\1년 \\2월 \\3일", $mb['mb_leave_date']); alert('탈퇴한 아이디이므로 접근하실 수 없습니다.\n탈퇴일 : '.$date); } if ($config['cf_use_email_certify'] && !preg_match("/[1-9]/", $mb['mb_email_certify'])) - alert('메일인증을 받으셔야 로그인 하실 수 있습니다.\n회원님의 메일주소는 '.$mb['mb_email'].' 입니다.'); + alert('메일인증을 받으셔야 로그인 하실 수 있습니다.\\n회원님의 메일주소는 '.$mb['mb_email'].' 입니다.'); @include_once($member_skin_path.'/login_check.skin.php'); @@ -59,9 +59,9 @@ if ($url) { $link = urldecode($url); // 2003-06-14 추가 (다른 변수들을 넘겨주기 위함) if (preg_match("/\?/", $link)) - $split= "&"; + $split= "&"; else - $split= "?"; + $split= "?"; // $_POST 배열변수에서 아래의 이름을 가지지 않은 것만 넘김 foreach($_POST as $key=>$value) { From d69aaab3a4a99e56f22d9816d6b6d041429181ec Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 14:41:33 +0900 Subject: [PATCH 30/49] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=95=9C=EA=B8=80=ED=8C=8C=EC=9D=BC=20=EC=97=85?= =?UTF-8?q?=EB=A1=9C=EB=93=9C=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/upload.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/bbs/ckeditor/upload.php b/bbs/ckeditor/upload.php index 091246f60..7d8a40d09 100644 --- a/bbs/ckeditor/upload.php +++ b/bbs/ckeditor/upload.php @@ -14,13 +14,18 @@ $CKEditor = $_GET['CKEditor'] ; $langCode = $_GET['langCode'] ; if(isset($_FILES['upload']['tmp_name'])) { - $file_name = $_FILES['upload']['name']; - $ext = substr($file_name, (strrpos($file_name, '.') + 1)); - if (!preg_match("/\.(jpe?g|gif|png)$/i", $file_name)) { - echo '이미지만 가능'; + $file = $_FILES['upload']['name']; + $pos = strrpos($file, '.'); + $filename = substr($file, 0, $pos); + $extension = substr($file, $pos, strlen($file) - $pos); + + if (!preg_match("/\.(jpe?g|gif|png)$/i", $extension)) { + echo '이미지 파일만 가능합니다.'; return false; } - + + // 윈도우에서 한글파일명으로 업로드 되지 않는 오류 해결 + $file_name = sprintf('%u', ip2long($_SERVER['REMOTE_ADDR'])).'_'.get_microtime().$extension; $save_dir = sprintf('%s/%s', $data_dir, $file_name); $save_url = sprintf('%s/%s', $data_url, $file_name); From b128d7e245c38fec1d60245212d0737ff01e285c Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 18 Mar 2013 14:47:51 +0900 Subject: [PATCH 31/49] =?UTF-8?q?=EC=82=AC=EC=9D=B4=EB=93=9C=EB=B7=B0=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 8 ++++---- css/default.css | 4 +--- lib/common.lib.php | 5 +++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/css/admin.css b/css/admin.css index b392c868b..e4fa02603 100644 --- a/css/admin.css +++ b/css/admin.css @@ -305,14 +305,14 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9 #admin_confirm .frm_input {border-color:#000} /* 사이드뷰 */ -.sv_wrap {display:inline-block;position:relative;font-weight:normal} -.sv_wrap .sv {z-index:5;display:none;margin:5px 0 0;border:1px solid #283646;background:#334356} -.sv_js_off .sv {display:block} +.sv_wrap {display:inline-block;position:relative;font-weight:normal;font-size:1em} +.sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111} .sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important} .sv_wrap a:focus, .sv_wrap a:hover, .sv_wrap a:active {text-decoration:none !important} -.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important;background:#ddd} +.sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important} +.sv_nojs .sv {display:block} /* pagination */ .pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center} diff --git a/css/default.css b/css/default.css index 0049695db..2633a179f 100644 --- a/css/default.css +++ b/css/default.css @@ -229,17 +229,15 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important #validation_check h1 {margin-bottom:20px;font-size:1.3em} #validation_check p {margin-bottom:20px;padding:30px 20px} -/* 스킨별 스타일 */ - /* 사이드뷰 */ .sv_wrap {display:inline-block;position:relative;font-weight:normal} .sv_wrap .sv {z-index:1000;display:none;margin:5px 0 0;border:1px solid #283646;background:#111} -.sv_js_off {display:block} .sv_wrap .sv a {display:inline-block !important;margin:0 !important;padding:3px !important;width:94px;border-bottom:1px solid #283646;color:#fff !important} .sv_wrap a:focus, .sv_wrap a:hover, .sv_wrap a:active {text-decoration:none !important} .sv_on {display:block !important;position:absolute;top:10px;left:20px;width:auto;height:auto !important} +.sv_nojs .sv {display:block} /* pagination */ .pg_wrap {clear:both;margin:0 0 20px;padding-top:20px;text-align:center} diff --git a/lib/common.lib.php b/lib/common.lib.php index 8c4b425e1..bfca25780 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1003,7 +1003,7 @@ function get_sideview($mb_id, $name='', $email='', $homepage='') $str .= $tmp_name."\n"; if(!G4_IS_MOBILE) { - $str2 = "\n"; + $str2 = "\n"; if($mb_id) $str2 .= "쪽지보내기\n"; if($email) @@ -1025,7 +1025,8 @@ function get_sideview($mb_id, $name='', $email='', $homepage='') $str2 .= "포인트내역\n"; } $str2 .= "\n"; - $str .= $str2;//."\n"; + $str .= $str2; + $str .= "\n"; } $str .= ""; From 2570af2ac05e2fc18bdf626a1753d0d59ce826a8 Mon Sep 17 00:00:00 2001 From: whitedot Date: Mon, 18 Mar 2013 14:53:42 +0900 Subject: [PATCH 32/49] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=ED=8C=90=EC=8A=A4=ED=82=A8=20=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EC=B9=B4=ED=85=8C=EA=B3=A0=EB=A6=AC=20=EC=8A=A4=ED=83=80?= =?UTF-8?q?=EC=9D=BC,=20basic=20-=20gallery=20=EB=91=98=EB=8B=A4=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/board/basic/style.css | 11 +++++++++++ mobile/skin/board/gallery/style.css | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/mobile/skin/board/basic/style.css b/mobile/skin/board/basic/style.css index 4b3c92b2f..413feb58a 100644 --- a/mobile/skin/board/basic/style.css +++ b/mobile/skin/board/basic/style.css @@ -1,5 +1,16 @@ /* 게시판 목록 */ #bo_list_title {padding:0 1em} + +#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden} +#bo_cate ul {margin:0.5em 1em;padding-left:1px;zoom:1} +#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""} +#bo_cate li {float:left;margin-bottom:-1px;width:25%} +#bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em} +#bo_cate a:focus, +#bo_cate a:hover, +#bo_cate a:active {text-decoration:none} +#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold} + .bo_list table {margin-bottom:1.5em;width:100%;border-collapse:collapse;border-spacing:0} .bo_list th {} diff --git a/mobile/skin/board/gallery/style.css b/mobile/skin/board/gallery/style.css index ee58749b4..71d5693a0 100644 --- a/mobile/skin/board/gallery/style.css +++ b/mobile/skin/board/gallery/style.css @@ -2,6 +2,17 @@ #bo_img h2 {margin:0;padding:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden} #bo_img_list {margin:1em 0 0;padding:0 1em;list-style:none} #bo_img_list:after {display:block;visibility:hidden;clear:both;content:""} + +#bo_cate h2 {width:0;height:0;font-size:0;line-height:0;overflow:hidden} +#bo_cate ul {margin:0.5em 1em;padding-left:1px;zoom:1} +#bo_cate ul:after {display:block;visibility:hidden;clear:both;content:""} +#bo_cate li {float:left;margin-bottom:-1px;width:25%} +#bo_cate a {display:block;position:relative;margin-left:-1px;padding:0.4em 0;border:1px solid #ddd;background:#f7f7f7;color:#888;text-align:center;text-decoration:none;letter-spacing:-0.1em} +#bo_cate a:focus, +#bo_cate a:hover, +#bo_cate a:active {text-decoration:none} +#bo_cate #bo_cate_on {z-index:2;border:1px solid #565e60;background:#fff;color:#565e60;font-weight:bold} + .bo_img_list_li {float:left;margin:0 0 2em} .bo_img_con {margin:0;padding:0;list-style:none} From 1c3779182630ac2e6bffc375ff993f4b77000c4f Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 14:54:15 +0900 Subject: [PATCH 33/49] =?UTF-8?q?=EB=8B=A8=EC=B6=95=ED=82=A4=20=EC=9D=BC?= =?UTF-8?q?=EB=9E=8C=20toggle=20=EC=8B=9C=20=EB=8B=A8=EC=B6=95=ED=82=A4=20?= =?UTF-8?q?=EC=9D=BC=EB=9E=8C=20=EB=8B=AB=EA=B8=B0=20=EB=AC=B8=EA=B5=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/ckeditor.lib.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bbs/ckeditor/ckeditor.lib.php b/bbs/ckeditor/ckeditor.lib.php index 2d96f1f7e..2a429f4f5 100644 --- a/bbs/ckeditor/ckeditor.lib.php +++ b/bbs/ckeditor/ckeditor.lib.php @@ -20,8 +20,10 @@ function editor_html($id, $content, $ckeditor=true, $class="") $(".btn_cke_sc").click(function(){ if ($(this).next("div.cke_sc_def").length) { $(this).next("div.cke_sc_def").remove(); + $(this).text("단축키 일람"); } else { $(this).after("
        ").next("div.cke_sc_def").load("'.G4_CKEDITOR_URL.'/shortcut.html"); + $(this).text("단축키 일람 닫기"); } }); $(".btn_cke_sc_close").live("click",function(){ From 3ccb78c01141f8583f135c7af6df0b45e9d2f9b1 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Mon, 18 Mar 2013 14:55:37 +0900 Subject: [PATCH 34/49] =?UTF-8?q?DHTML=20=EC=97=90=EB=94=94=ED=84=B0=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9D=BC=20=EA=B2=BD=EC=9A=B0=EC=97=90?= =?UTF-8?q?=EB=A7=8C=20=EB=8B=A8=EC=B6=95=ED=82=A4=20=EC=9D=BC=EB=9E=8C=20?= =?UTF-8?q?=EB=B2=84=ED=8A=BC=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/ckeditor/ckeditor.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bbs/ckeditor/ckeditor.lib.php b/bbs/ckeditor/ckeditor.lib.php index 2a429f4f5..eac4f9835 100644 --- a/bbs/ckeditor/ckeditor.lib.php +++ b/bbs/ckeditor/ckeditor.lib.php @@ -8,7 +8,8 @@ function editor_html($id, $content, $ckeditor=true, $class="") $html = ""; $html .= "웹에디터 시작"; - $html .= ''; + if ($ckeditor) + $html .= ''; if ($js) { $html .= "\n".''; From 62d9d93c2cc011d2ee703be48c314d980fa00666 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 18 Mar 2013 16:07:59 +0900 Subject: [PATCH 35/49] =?UTF-8?q?G4=5FPATH=EB=A5=BC=20G4=5FURL=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/register.php | 2 +- bbs/register_result.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bbs/register.php b/bbs/register.php index 9781bcfcf..2a0ac36c8 100644 --- a/bbs/register.php +++ b/bbs/register.php @@ -3,7 +3,7 @@ include_once('./_common.php'); // 로그인중인 경우 회원가입 할 수 없습니다. if ($is_member) { - goto_url(G4_PATH); + goto_url(G4_URL); } // 세션을 지웁니다. diff --git a/bbs/register_result.php b/bbs/register_result.php index cad5a4adc..2d7b7b580 100644 --- a/bbs/register_result.php +++ b/bbs/register_result.php @@ -1,12 +1,12 @@ Date: Mon, 18 Mar 2013 17:39:55 +0900 Subject: [PATCH 36/49] =?UTF-8?q?=EA=B0=A4=EB=9F=AC=EB=A6=AC=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=97=90=EC=84=9C=20=EC=97=90=EB=94=94=ED=84=B0=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=8D=B8=EB=84=A4=EC=9D=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EB=95=8C=20alt=20=EA=B0=92=20=EA=B0=80?= =?UTF-8?q?=EC=A0=B8=EC=98=A4=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/thumbnail.lib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/thumbnail.lib.php b/lib/thumbnail.lib.php index baf036d69..d56497c6d 100644 --- a/lib/thumbnail.lib.php +++ b/lib/thumbnail.lib.php @@ -42,6 +42,9 @@ function get_list_thumbnail($bo_table, $wr_id, $thumb_width, $thumb_height, $is_ $filename = basename($srcfile); $filepath = dirname($srcfile); + preg_match("/alt=[\'\"]{1}(.*)[\'\"]{1}/", $matchs[0][$i], $malt); + $alt = get_text($malt[1]); + break; } } From 5c386ba2c4007c4a09e29361b1b3f9ad60ab9984 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 19 Mar 2013 09:06:44 +0900 Subject: [PATCH 37/49] =?UTF-8?q?=EC=83=88=EC=B0=BD=EC=97=90=EC=84=9C=20hr?= =?UTF-8?q?ef=20=EA=B0=92=EC=9D=B4=20=EC=97=86=EC=96=B4=20undefined=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EB=82=A0=20=EC=88=98=20=EC=9E=88=EB=8A=94?= =?UTF-8?q?=20=EB=AC=B8=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/poll/basic/poll.skin.php | 4 ++-- skin/poll/basic/poll.skin.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/skin/poll/basic/poll.skin.php b/mobile/skin/poll/basic/poll.skin.php index f3f017c0d..6647793c2 100644 --- a/mobile/skin/poll/basic/poll.skin.php +++ b/mobile/skin/poll/basic/poll.skin.php @@ -13,7 +13,7 @@ if (!$po_id) { $po = sql_fetch(" select * from {$g4['poll_table']} where po_id = '$po_id' "); ?> - +
        @@ -55,7 +55,7 @@ function fpoll_submit(f) return false; } - win_poll(); + win_poll(f.action); return true; } diff --git a/skin/poll/basic/poll.skin.php b/skin/poll/basic/poll.skin.php index 2b2f8ecf3..b1da218a4 100644 --- a/skin/poll/basic/poll.skin.php +++ b/skin/poll/basic/poll.skin.php @@ -44,7 +44,7 @@ function fpoll_submit(f) return false; } - win_poll(); + win_poll(f.action); return true; } From 7f551474bd2e3eac554e3b41e75c00b914e12b3c Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 19 Mar 2013 09:11:14 +0900 Subject: [PATCH 38/49] =?UTF-8?q?po=5Fid=20=EA=B4=80=EB=A0=A8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EB=82=B4=EC=9A=A9=20=EB=AA=A8=EB=B0=94=EC=9D=BC=20?= =?UTF-8?q?=EC=8A=A4=ED=82=A8=EC=97=90=EB=8F=84=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/poll/basic/poll.skin.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/mobile/skin/poll/basic/poll.skin.php b/mobile/skin/poll/basic/poll.skin.php index 6647793c2..b1da218a4 100644 --- a/mobile/skin/poll/basic/poll.skin.php +++ b/mobile/skin/poll/basic/poll.skin.php @@ -1,16 +1,5 @@ From aae94c023b641dfd97d019d6e7517d6be396b4f9 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 19 Mar 2013 09:30:23 +0900 Subject: [PATCH 39/49] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90,=EB=AA=A8?= =?UTF-8?q?=EB=B0=94=EC=9D=BC:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=93=B1?= =?UTF-8?q?=EB=B9=84=EC=9C=A8=20=EB=A6=AC=EC=82=AC=EC=9D=B4=EC=A7=95=20?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=EC=97=90=EC=84=9C=20float:left=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/default.css | 2 +- css/mobile.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/css/default.css b/css/default.css index 2633a179f..93c6490c4 100644 --- a/css/default.css +++ b/css/default.css @@ -33,7 +33,7 @@ a:active {color:#000;text-decoration:underline} #to_content a:active {width:100%;height:75px;background:#21272e;color:#fff;font-size:2em;font-weight:bold;text-align:center;text-decoration:none;line-height:3.3em} /* 이미지 등비율 리사이징 */ -.img_fix {float:left;width:100%;height:auto} +.img_fix {width:100%;height:auto} /* 캡챠 자동등록(입력)방지 기본 */ #captcha img {border:1px solid #cfded8;border-right:0} diff --git a/css/mobile.css b/css/mobile.css index 31ec572ea..5911a8dce 100644 --- a/css/mobile.css +++ b/css/mobile.css @@ -29,7 +29,7 @@ pre {overflow-x:scroll;font-size:1.1em} .to_content a {z-index:100000;position:absolute;top:0;left:0;width:0;height:0;font-size:0;line-height:0;overflow:hidden} /* 이미지 등비율 리사이징 */ -.img_fix {float:left;width:100%;height:auto} +.img_fix {width:100%;height:auto} /* 캡챠 자동등록(입력)방지 기본 */ #captcha img {height:1.8em;border:1px solid #cfded8;border-right:0} From 136be871b54fec843824d0f8e8adb5fa1f22dbc6 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 10:49:05 +0900 Subject: [PATCH 40/49] =?UTF-8?q?ie=209=20=EC=9D=B4=EC=83=81=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/visit_insert.inc.php | 11 ++++++----- lib/visit.lib.php | 7 +------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/bbs/visit_insert.inc.php b/bbs/visit_insert.inc.php index 302c9d58f..243837339 100644 --- a/bbs/visit_insert.inc.php +++ b/bbs/visit_insert.inc.php @@ -2,19 +2,20 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 // 컴퓨터의 아이피와 쿠키에 저장된 아이피가 다르다면 테이블에 반영함 -if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) { +if (get_cookie('ck_visit_ip') != $_SERVER['REMOTE_ADDR']) +{ set_cookie('ck_visit_ip', $_SERVER['REMOTE_ADDR'], 86400); // 하루동안 저장 $tmp_row = sql_fetch(" select max(vi_id) as max_vi_id from {$g4['visit_table']} "); $vi_id = $tmp_row['max_vi_id'] + 1; // $_SERVER 배열변수 값의 변조를 이용한 SQL Injection 공격을 막는 코드입니다. 110810 - $remote_addr = mysql_real_escape_string($_SERVER['REMOTE_ADDR']); + $remote_addr = escape_trim($_SERVER['REMOTE_ADDR']); $referer = ""; if (isset($_SERVER['HTTP_REFERER'])) - $referer = mysql_real_escape_string($_SERVER['HTTP_REFERER']); - $user_agent = mysql_real_escape_string($_SERVER['HTTP_USER_AGENT']); - $sql = " insert {$g4['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent ) values ( '{$vi_id}', '{$remote_addr}', '".G4_TIME_YMD."', '{$g4['time_his']}', '{$referer}', '{$user_agent}' ) "; + $referer = escape_trim($_SERVER['HTTP_REFERER']); + $user_agent = escape_trim($_SERVER['HTTP_USER_AGENT']); + $sql = " insert {$g4['visit_table']} ( vi_id, vi_ip, vi_date, vi_time, vi_referer, vi_agent ) values ( '{$vi_id}', '{$remote_addr}', '".G4_TIME_YMD."', '".G4_TIME_HIS."', '{$referer}', '{$user_agent}' ) "; $result = sql_query($sql, FALSE); // 정상으로 INSERT 되었다면 방문자 합계에 반영 diff --git a/lib/visit.lib.php b/lib/visit.lib.php index 700780c70..9c28f0da8 100644 --- a/lib/visit.lib.php +++ b/lib/visit.lib.php @@ -40,12 +40,7 @@ function get_brow($agent) //echo $agent; echo "
        "; - if (preg_match("/msie 5.0[0-9]*/", $agent)) { $s = "MSIE 5.0"; } - else if(preg_match("/msie 5.5[0-9]*/", $agent)) { $s = "MSIE 5.5"; } - else if(preg_match("/msie 6.0[0-9]*/", $agent)) { $s = "MSIE 6.0"; } - else if(preg_match("/msie 7.0[0-9]*/", $agent)) { $s = "MSIE 7.0"; } - else if(preg_match("/msie 8.0[0-9]*/", $agent)) { $s = "MSIE 8.0"; } - else if(preg_match("/msie 4.[0-9]*/", $agent)) { $s = "MSIE 4.x"; } + if (preg_match("/msie ([1-9][0-9]\.[0-9]+)/", $agent, $m)) { $s = 'MSIE '.$m[1]; } else if(preg_match("/firefox/", $agent)) { $s = "FireFox"; } else if(preg_match("/chrome/", $agent)) { $s = "Chrome"; } else if(preg_match("/x11/", $agent)) { $s = "Netscape"; } From f3d44c1ca1ad013af65f2a7f8e0a9e0e4c310004 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 10:49:20 +0900 Subject: [PATCH 41/49] =?UTF-8?q?glob=20warning=20error=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index bfca25780..6e3538aeb 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1735,8 +1735,10 @@ function check_device($device) // 게시판 최신글 캐시 파일 삭제 function delete_cache_latest($bo_table) { - foreach (glob(G4_DATA_PATH.'/cache/latest-'.$bo_table.'-*') as $filename) { - unlink($filename); + $files = glob(G4_DATA_PATH.'/cache/latest-'.$bo_table.'-*'); + if (is_array($files)) { + foreach ($files as $filename) + unlink($filename); } } @@ -1747,8 +1749,10 @@ function delete_board_thumbnail($bo_table, $file) return; $fn = preg_replace("/\.[^\.]+$/i", "", basename($file)); - foreach(glob(G4_DATA_PATH.'/file/'.$bo_table.'/thumb-'.$fn.'*') as $file) { - unlink($file); + $files = glob(G4_DATA_PATH.'/file/'.$bo_table.'/thumb-'.$fn.'*'); + if (is_array($files)) { + foreach ($files as $filename) + unlink($filename); } } @@ -1784,9 +1788,10 @@ function delete_editor_thumbnail($contents) $filename = preg_replace("/\.[^\.]+$/i", "", basename($srcfile)); $filepath = dirname($srcfile); - - foreach(glob($filepath.'/thumb-'.$filename.'*') as $file) { - unlink($file); + $files = glob($filepath.'/thumb-'.$filename.'*'); + if (is_array($files)) { + foreach($files as $filename) { + unlink($filename); } } } From 99dc795c825459709dbf0e417f03a88c8b802558 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 10:53:10 +0900 Subject: [PATCH 42/49] =?UTF-8?q?}=20=EB=A7=89=EC=A7=80=20=EC=95=8A?= =?UTF-8?q?=EC=95=84=20=EB=82=98=EC=98=A4=EB=8D=98=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 6e3538aeb..80a2fc917 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -1790,7 +1790,7 @@ function delete_editor_thumbnail($contents) $filepath = dirname($srcfile); $files = glob($filepath.'/thumb-'.$filename.'*'); if (is_array($files)) { - foreach($files as $filename) { + foreach($files as $filename) unlink($filename); } } From 4fe71068196c3ead4eb333ec4747ad64d6861530 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 11:01:13 +0900 Subject: [PATCH 43/49] =?UTF-8?q?windows8=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/visit.lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/visit.lib.php b/lib/visit.lib.php index 9c28f0da8..fd8c3fe1e 100644 --- a/lib/visit.lib.php +++ b/lib/visit.lib.php @@ -68,6 +68,7 @@ function get_os($agent) else if(preg_match("/windows nt 5\.2/", $agent)) { $s = "2003"; } else if(preg_match("/windows nt 6\.0/", $agent)) { $s = "Vista"; } else if(preg_match("/windows nt 6\.1/", $agent)) { $s = "Windows7"; } + else if(preg_match("/windows nt 6\.2/", $agent)) { $s = "Windows8"; } else if(preg_match("/windows 9x/", $agent)) { $s = "ME"; } else if(preg_match("/windows ce/", $agent)) { $s = "CE"; } else if(preg_match("/mac/", $agent)) { $s = "MAC"; } From 1aca39c3409f228fa2b5c8a5bfbda23cbf58084c Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 19 Mar 2013 11:21:55 +0900 Subject: [PATCH 44/49] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90:=20=ED=9A=8C?= =?UTF-8?q?=EC=9B=90=EA=B0=80=EC=9E=85=20=EC=84=9C=EC=8B=9D=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=A3=BC=EC=86=8C=20=EC=9E=85=EB=A0=A5=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=95=84=EC=88=98=20=EC=9E=85=EB=A0=A5=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skin/member/basic/register_form.skin.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/skin/member/basic/register_form.skin.php b/skin/member/basic/register_form.skin.php index 2460c74dc..1e5b99628 100644 --- a/skin/member/basic/register_form.skin.php +++ b/skin/member/basic/register_form.skin.php @@ -103,12 +103,12 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 필수 - title="우편번호 앞자리" class="frm_input " size="2" maxlength="3"> + title="우편번호 앞자리" class="frm_input " size="2" maxlength="3"> - - title="우편번호 뒷자리" class="frm_input " size="2" maxlength="3"> + title="우편번호 뒷자리" class="frm_input " size="2" maxlength="3"> 주소찾기 - title="행정구역주소" class="frm_input frm_address " size="50"> - title="상세주소" class="frm_input frm_address " size="50"> + title="행정구역주소" class="frm_input frm_address " size="50"> + title="상세주소" class="frm_input frm_address " size="50"> From 7d7304148fcf8ca471560d7d1af528dfce8d301c Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 19 Mar 2013 11:28:39 +0900 Subject: [PATCH 45/49] =?UTF-8?q?=EB=9D=84=EC=96=B4=EC=93=B0=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/board/basic/list.skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/skin/board/basic/list.skin.php b/mobile/skin/board/basic/list.skin.php index 7c6ae9e45..8d7cc4236 100644 --- a/mobile/skin/board/basic/list.skin.php +++ b/mobile/skin/board/basic/list.skin.php @@ -140,7 +140,7 @@ if ($is_nogood) $colspan++; - + From f5a7455da63ad0c4ffbf8217259eea0e69cc6040 Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 19 Mar 2013 11:29:57 +0900 Subject: [PATCH 46/49] =?UTF-8?q?=EB=AA=A8=EB=B0=94=EC=9D=BC:=20=EC=95=84?= =?UTF-8?q?=EC=9B=83=EB=A1=9C=EA=B7=B8=EC=9D=B8=EC=8A=A4=ED=82=A8=20title?= =?UTF-8?q?=20placeholder=20=EA=B2=B9=EC=B9=98=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/skin/outlogin/basic/outlogin.skin.1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/skin/outlogin/basic/outlogin.skin.1.php b/mobile/skin/outlogin/basic/outlogin.skin.1.php index 529e7cc6d..abfbe3f68 100644 --- a/mobile/skin/outlogin/basic/outlogin.skin.1.php +++ b/mobile/skin/outlogin/basic/outlogin.skin.1.php @@ -10,8 +10,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
        - - + +
        From e2a9d80f2f4c8e943f3b3ef3ff369ffba01d268c Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 15:25:32 +0900 Subject: [PATCH 47/49] =?UTF-8?q?bignum=20width=20=EC=B6=95=EC=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adm/member_list.php | 2 ++ css/admin.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adm/member_list.php b/adm/member_list.php index 6dac453aa..2935953e2 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -123,6 +123,7 @@ $colspan = 15; 권한 포인트 최종접속 + 가입일 수신 공개 인증 @@ -189,6 +190,7 @@ $colspan = 15; + Yes':'No';?> Yes':'No';?> Yes':'No';?> diff --git a/css/admin.css b/css/admin.css index e4fa02603..fe64bb5fb 100644 --- a/css/admin.css +++ b/css/admin.css @@ -264,7 +264,7 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9 /* 공통 */ .td_chk {width:30px;text-align:center} .td_num {width:60px;text-align:center} -.td_bignum {width:120px;text-align:center} +.td_bignum {width:100px;text-align:center} .td_grid {width:60px;text-align:center} .td_mbid, .td_name, From 27404bb4b9494b5501088af86c602a624357672a Mon Sep 17 00:00:00 2001 From: gnuboard Date: Tue, 19 Mar 2013 16:36:23 +0900 Subject: [PATCH 48/49] =?UTF-8?q?=EC=B5=9C=EC=8B=A0=EA=B8=80=20=EC=8A=A4?= =?UTF-8?q?=ED=82=A8=EC=9D=80=20=EC=8A=A4=ED=82=A8=EB=B3=84=EB=A1=9C=20.cs?= =?UTF-8?q?s=20=ED=95=9C=EB=B2=88=EB=A7=8C=20=EB=A1=9C=EB=94=A9=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/latest.lib.php | 7 +++++++ skin/latest/basic/latest.skin.php | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/latest.lib.php b/lib/latest.lib.php index f81eb7c79..2d0312558 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -5,6 +5,7 @@ if (!defined('_GNUBOARD_')) exit; function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) { global $g4; + static $css = array(); if (!$skin_dir) $skin_dir = 'basic'; @@ -38,6 +39,12 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40) include_once($cache_file); + // 같은 스킨은 .css 를 한번만 호출한다. + if (!in_array($skin_dir, $css)) { + echo ''; + $css[] = $skin_dir; + } + ob_start(); include $latest_skin_path.'/latest.skin.php'; $content = ob_get_contents(); diff --git a/skin/latest/basic/latest.skin.php b/skin/latest/basic/latest.skin.php index c89558fa8..712bc3f91 100644 --- a/skin/latest/basic/latest.skin.php +++ b/skin/latest/basic/latest.skin.php @@ -2,8 +2,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가 ?> - -
          From 78f63127c4f0f7827baa969cec1de7c04ace219f Mon Sep 17 00:00:00 2001 From: whitedot Date: Tue, 19 Mar 2013 17:35:02 +0900 Subject: [PATCH 49/49] =?UTF-8?q?alert.php=20=EC=8A=A4=ED=83=80=EC=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/admin.css | 5 +++++ css/default.css | 2 +- head.sub.php | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/css/admin.css b/css/admin.css index e4fa02603..344d2df9d 100644 --- a/css/admin.css +++ b/css/admin.css @@ -298,6 +298,11 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9 .new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #595959;border-left:1px solid #595959;color:#fff;font-family:"dotum";font-weight:bold;text-decoration:none} .new_win_desc {margin:0 auto;width:93%} +/* 자바스크립트 alert 대안 */ +#validation_check {margin:100px auto;width:500px} +#validation_check h1 {margin-bottom:20px;font-size:1.3em} +#validation_check p {margin-bottom:20px;padding:30px 20px;border:1px solid #e9e9e9;background:#fff} + /* 관리자 패스워드 확인 */ #admin_confirm {padding:0 0 10px;background:#222;text-align:center} #admin_confirm p {margin:0 0 10px;color:#9ab9c5;background:#383a3f} diff --git a/css/default.css b/css/default.css index 93c6490c4..57f581529 100644 --- a/css/default.css +++ b/css/default.css @@ -227,7 +227,7 @@ input.required:focus {padding:3px 3px 4px;border:0;background:#21272e !important /* 자바스크립트 alert 대안 */ #validation_check {margin:100px auto;width:500px} #validation_check h1 {margin-bottom:20px;font-size:1.3em} -#validation_check p {margin-bottom:20px;padding:30px 20px} +#validation_check p {margin-bottom:20px;padding:30px 20px;border:1px solid #e9e9e9;background:#fff} /* 사이드뷰 */ .sv_wrap {display:inline-block;position:relative;font-weight:normal} diff --git a/head.sub.php b/head.sub.php index ec12ca7ec..2b1edc8d3 100644 --- a/head.sub.php +++ b/head.sub.php @@ -32,7 +32,11 @@ header("Pragma: no-cache"); // HTTP/1.0 - + + + + + <?=$g4_head_title?>