$this->mimetype = strtolower($this->mimetype);
+ if ($this->mimetype == 'image/jpg') {
+ $this->mimetype = 'image/jpeg';
+ }
+
$explode_mimetype = explode('/', $this->mimetype);
//if (!empty($_GET['_post'])) {
// return $this->post();
//}
-
+
$this->is_local = (!empty($_SERVER['HTTP_HOST']) && $_SERVER['HTTP_HOST'] == 'localhost') ? true : false;
$this->as_mimetype = empty($_REQUEST['as']) ? '' : $_REQUEST['as'];
function serve($img)
{
$this->sessionState(0); // turn off session... - locking...
-
require_once 'File/Convert.php';
if (!file_exists($img->getStoreName())) {
// print_r($img);exit;