불필요한 PHP 5.1 이하 코드 삭제
json_encode, json_decode 는 PHP 5.2 부터 PHP 코어에 내장되어있습니다. https://php-legacy-docs.zend.com/manual/php5/en/json.requirements https://php-legacy-docs.zend.com/manual/php5/en/book.json
This commit is contained in:
1 parent
068c8818f8
commit
fc43e26c14
12 files changed
+58
-145
No files matched your search
+1
-2
@@ -1,6 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/json.lib.php');
|
||||
|
||||
if(!$bo_table)
|
||||
die(json_encode(array('error'=>'게시판 정보가 올바르지 않습니다.', 'url'=>G5_URL)));
|
||||
@@ -9,4 +8,4 @@ set_session('ss_write_'.$bo_table.'_token', '');
|
||||
|
||||
$token = get_write_token($bo_table);
|
||||
|
||||
die(json_encode(array('error'=>'', 'token'=>$token, 'url'=>'')));
|
||||
die(json_encode(array('error'=>'', 'token'=>$token, 'url'=>'')));
|
||||
Reference in new issue
Block a user