From 498ebd658977d1a0e0f260d449e08a73ce7b534b Mon Sep 17 00:00:00 2001 From: hide_d Date: Fri, 16 Mar 2018 00:49:04 +0900 Subject: [PATCH] =?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=20class.=5FJSON.php=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- f_func/class._JSON.php | 57 ------------------------------ f_func/class._Log.php | 1 - f_func/class._Session.php | 11 +++--- i_entrance/adminPost.php | 1 - i_entrance/logoutPost.php | 1 - i_entrance/manage/Get.php | 1 - i_entrance/manage/deletePost.php | 1 - i_entrance/manage/passwordPost.php | 1 - i_entrance/manage/quitPost.php | 1 - i_entrance/member/Get.php | 1 - i_entrance/member/Post.php | 1 - i_entrance/serverListPost.php | 1 - i_login/Post.php | 2 -- i_login/findpw/Get.php | 1 - i_login/findpw/Post.php | 1 - i_login/findpw/checkPost.php | 1 - i_login/findpw/sendCodePost.php | 1 - i_login/findpw/verifyCodePost.php | 1 - i_login/join/Get.php | 1 - i_login/join/Post.php | 1 - i_login/join/checkPost.php | 1 - i_login/join/sendCodePost.php | 1 - i_login/join/verifyCodePost.php | 1 - 23 files changed, 7 insertions(+), 83 deletions(-) delete mode 100644 f_func/class._JSON.php diff --git a/f_func/class._JSON.php b/f_func/class._JSON.php deleted file mode 100644 index 3ede024b..00000000 --- a/f_func/class._JSON.php +++ /dev/null @@ -1,57 +0,0 @@ - $val) { - $key = _JSON::AddSlashes($key); - if(is_array($val) == true) { - $val = json_encode($val); - } else { - $val = _JSON::AddSlashes($val); - } - $item[] = "\"{$key}\":\"{$val}\""; - } - $encoded = '{' . implode(',', $item) . '}'; - return $encoded; - } - - public static function Decode($encoded) { - $decoded = substr($encoded, 2, strlen($encoded)-4); - $len = strlen($decoded); - $s = 0; $e = 0; - while($s < $len) { - $e = strpos($decoded, '":"', $s); - $key = substr($decoded, $s, $e-$s); - $s = $e + 3; - $e = strpos($decoded, '","', $s); - if($e == false) $e = $len; - $val = substr($decoded, $s, $e-$s); - - if(substr($val, 0, 2) != '{"') { - $s = $e + 3; - } else { - $e = strpos($decoded, '"}"', $s) + 2; - $val = substr($decoded, $s, $e-$s); - $s = $e + 3; - - $val = json_decode($val); - } - $result[$key] = $val; - } - return $result; - } - - public static function AddSlashes($str) { - $str = str_replace("\\", "\\\\", $str); - $str = str_replace("\"", "\\\"", $str); - $str = str_replace("'", "\\'", $str); - $str = str_replace("\r\n", "\\n", $str); - $str = str_replace("\n", "\\n", $str); - - return $str; - } -} - - diff --git a/f_func/class._Log.php b/f_func/class._Log.php index 80a173fc..198a3957 100644 --- a/f_func/class._Log.php +++ b/f_func/class._Log.php @@ -1,6 +1,5 @@ queryFirstField('SELECT COUNT(`NO`) AS CNT FROM MEMBER'); diff --git a/i_login/findpw/Post.php b/i_login/findpw/Post.php index f1b38fdc..79adf612 100644 --- a/i_login/findpw/Post.php +++ b/i_login/findpw/Post.php @@ -1,6 +1,5 @@ queryFirstField('SELECT COUNT(`NO`) FROM MEMBER'); diff --git a/i_login/join/Post.php b/i_login/join/Post.php index 147f008c..e09b3de2 100644 --- a/i_login/join/Post.php +++ b/i_login/join/Post.php @@ -1,6 +1,5 @@