이니시스 웹표준 결제모듈 적용
This commit is contained in:
30
shop/inicis/libs/json_lib.php
Normal file
30
shop/inicis/libs/json_lib.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2015-11-05
|
||||
* Time: 오후 2:59
|
||||
*/
|
||||
|
||||
if (!function_exists('json_decode')) {
|
||||
function json_decode($content, $assoc=false) {
|
||||
require_once 'JSON.php';
|
||||
if ($assoc) {
|
||||
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
|
||||
}
|
||||
else {
|
||||
$json = new Services_JSON;
|
||||
}
|
||||
return $json->decode($content);
|
||||
}
|
||||
}
|
||||
|
||||
if (!function_exists('json_encode')) {
|
||||
function json_encode($content) {
|
||||
require_once 'JSON.php';
|
||||
$json = new Services_JSON;
|
||||
return $json->encode($content);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user