= 5 - implement functions only supported in later versions * * $URL$ * $Id$ * */ if (!defined('e107_INIT')) { exit; } /** * Handle system messages * * @package e107 * @subpackage e107_handlers * @copyright Copyright (C) 2008-2016 e107 Inc (e107.org) */ if (!function_exists('strptime')) { define('STRPTIME_COMPAT', true); function strptime($str, $format) { return e107::getDate()->strptime($str,$format); } } //PHP < 5.2 compatibility if (!function_exists('json_encode')) { require_once(e_HANDLER.'json_compat_handler.php'); function json_encode($array) { $json = new Services_JSON(); return $json->encode($array); } function json_decode($json_obj) { $json = new Services_JSON(); return $json->decode($json_obj); } } // Fix for exim missing. if(!function_exists('exif_imagetype')) { function exif_imagetype($filename) { if((list($width, $height, $type, $attr) = getimagesize( $filename ) ) !== false) { return $type; } return false; } }