<?php
class image {
public static function is($img = null, $height = null, $width = null,$null = '/style/icons/default.png')
{
$is = @getimagesize('http://'.$_SERVER['HTTP_HOST'] . $img);
return '<img src="'.($is != null ? $img : $null).'" height="'.$height.'" width="'.$width.'">';
}
}