$this->mimetype = $y->fromFilename($filename);
}
- $this->mimetype= strtolower($this->mimetype);
+ $this->mimetype = strtolower($this->mimetype);
- $mta = explode('/', $this->mimetype)
+ $mta = explode('/', $this->mimetype);
if (array_shift($mta) == 'image') {
$imgs = @getimagesize($file);
if (file_exists($deldir . '/'. $b)) {
unlink($fn);
} else {
- rename($fn, $deldir .'/',$b);
+ rename($fn, $deldir .'/'. $b);
}
unlink($d. '/'. $fn);
continue;
}
- rename($d. '/'. $fn, $deldir .'/',$fn);
-
+ rename($d. '/'. $fn, $deldir .'/'. $fn);
}
}