public function __construct($image = false)
{
if (defined('INI_SYSTEM_CHECK_DISABLED') == false) {
define('INI_SYSTEM_CHECK_DISABLED', ini_get('disable_functions'));
}
if (!strstr(INI_SYSTEM_CHECK_DISABLED, 'ini_set')) {
@ini_set('memory_limit', '128M');
@ini_set('set_time_limit', 90);
}
if (!strstr(INI_SYSTEM_CHECK_DISABLED, 'set_time_limit')) {
@set_time_limit(90);
}
if ($image) {
$this->setImage($image);
}
}