From 74ecb1aa5592d9c3d2e807477e3cb3665857c258 Mon Sep 17 00:00:00 2001 From: kit rio Date: Fri, 26 Mar 2021 02:23:23 +0900 Subject: [PATCH] =?UTF-8?q?PHP=204=EC=A7=80=EC=9B=90=20=ED=95=A8=EC=88=98?= =?UTF-8?q?=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/common.lib.php | 16 ---------------- plugin/sms5/sms5.lib.php | 4 ---- 2 files changed, 20 deletions(-) diff --git a/lib/common.lib.php b/lib/common.lib.php index 087875e32..48d2a98bf 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2469,22 +2469,6 @@ function get_skin_javascript($skin_path, $dir='') return $str; } -// file_put_contents 는 PHP5 전용 함수이므로 PHP4 하위버전에서 사용하기 위함 -// http://www.phpied.com/file_get_contents-for-php4/ -if (!function_exists('file_put_contents')) { - function file_put_contents($filename, $data) { - $f = @fopen($filename, 'w'); - if (!$f) { - return false; - } else { - $bytes = fwrite($f, $data); - fclose($f); - return $bytes; - } - } -} - - // HTML 마지막 처리 function html_end() { diff --git a/plugin/sms5/sms5.lib.php b/plugin/sms5/sms5.lib.php index 1165fa82b..bc93b445e 100644 --- a/plugin/sms5/sms5.lib.php +++ b/plugin/sms5/sms5.lib.php @@ -427,10 +427,6 @@ if($config['cf_sms_type'] == 'LMS') { if (!$fsocket) return false; set_time_limit(300); - ## php4.3.10일경우 - ## zend 최신버전으로 업해주세요.. - ## 또는 69번째 줄을 $this->Data as $tmp => $puts 로 변경해 주세요. - foreach($this->Data as $puts) { $dest = substr($puts,26,11); fputs($fsocket, $puts);