mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-08 17:09:20 +00:00
Default Settings Edit: JSON value detection.
Functions: is_json function added.
This commit is contained in:
@@ -1241,4 +1241,12 @@ function number_pad($number,$n) {
|
||||
return rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($key), base64_decode($str_to_dec), MCRYPT_MODE_CBC, md5(md5($key))), "\0");
|
||||
}
|
||||
}
|
||||
|
||||
//json detection
|
||||
if (!function_exists('is_json')) {
|
||||
function is_json($str) {
|
||||
return (is_string($str) && is_object(json_decode($str))) ? true : false;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user