From 3caa7c09e493cd6ab39a44b026bfc46521b8ae45 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 29 Apr 2013 13:14:00 +0900 Subject: [PATCH] =?UTF-8?q?php=20strict=20=EB=B0=98=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/constant.php | 12 ------- lib/etc.lib.php | 2 +- lib/icode.sms.lib.php | 6 ++-- lib/iteminfo.lib.php | 2 +- lib/thumb.lib.php | 2 +- lib/trackback.lib.php | 77 ------------------------------------------- 6 files changed, 6 insertions(+), 95 deletions(-) delete mode 100644 lib/constant.php delete mode 100644 lib/trackback.lib.php diff --git a/lib/constant.php b/lib/constant.php deleted file mode 100644 index 681066f1a..000000000 --- a/lib/constant.php +++ /dev/null @@ -1,12 +0,0 @@ - \ No newline at end of file diff --git a/lib/etc.lib.php b/lib/etc.lib.php index fd4ccde10..34af83e61 100644 --- a/lib/etc.lib.php +++ b/lib/etc.lib.php @@ -1,4 +1,4 @@ -1; $k--) { + for ($k=$cut-1; $k>1; $k--) { if (ord(substr($word,$k,1))<128) break; // 한글값은 160 이상. } $word=substr($word,0,$cut-($cut-$k+1)%2); @@ -134,7 +134,7 @@ class SMS { set_time_limit(300); ## php4.3.10일경우 - ## zend 최신버전으로 업해주세요.. + ## zend 최신버전으로 업해주세요.. ## 또는 122번째 줄을 $this->Data as $tmp => $puts 로 변경해 주세요. foreach($this->Data as $puts) { diff --git a/lib/iteminfo.lib.php b/lib/iteminfo.lib.php index f693672d8..74b94007f 100644 --- a/lib/iteminfo.lib.php +++ b/lib/iteminfo.lib.php @@ -1,4 +1,4 @@ -")) - return "올바른 트랙백 URL이 아닙니다."; - - //XML 부분만 뽑음 - $response = strchr($response,"")); - - //에러 검사 - if(strstr($response,"0")) - return ""; - else { - $tb_error_str = strchr($response,""); - $tb_error_str = substr($tb_error_str,0,strpos($tb_error_str,"")); - $tb_error_str = str_replace("","",$tb_error_str); - return "트랙백 전송중 오류가 발생했습니다: $tb_error_str"; - } -} -?> \ No newline at end of file