Code Removal: PHP has had JSON support directly baked into the language since 5.2.0 - there is no need to rely on an external library from 2006 for json support.

This commit is contained in:
jgen
2014-04-26 03:31:02 -04:00
parent efb5038b20
commit 013222e4ee
7 changed files with 29 additions and 49 deletions

View File

@ -45,19 +45,6 @@
return false;
}
function jsonEncode(&$array) {
if ($array) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
return $json->encode($array);
} else
return 'ar';
}
function jsonDecode($encoded) {
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
return $json->decode($encoded);
}
function validIP($ip) {
if ($ip == long2ip(ip2long($ip)))
return true;