e107_handlers/php_compatibility_handler.php
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2010 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 requires PHP >= 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'))
{
/**
* @param $date
* @param $format
* @return array|bool
*/
function strptime($date, $format)
{
return eShims::strptime($date, $format);
}
}
/*
if (!function_exists('strftime'))
{
function strftime($format, $timestamp)
{
return eShims::strftime($format, $timestamp);
}
}*/
// Fix for exim missing.
if(!function_exists('exif_imagetype'))
{
/**
* @param $filename
* @return false|mixed
*/
function exif_imagetype($filename)
{
if((list($width, $height, $type, $attr) = getimagesize( $filename ) ) !== false)
{
return $type;
}
return false;
}
}