/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+ function applyFilters($q, $au, $roo)
+ {
+ $tn = $this->tableName();
+
+ if(!empty($q['search']['filename'])){
+ $this->whereAdd("
+ $tn.filename LIKE '%{$this->escape($q['search']['filename'])}%'
+ ");
+ }
+
+
+ }
function checkPerm($lvl, $au)
{
$this->mimetype = $y->fromFilename($filename);
}
- $this->mimetype= strtolower($this->mimetype);
+ $this->mimetype = strtolower($this->mimetype);
- if (array_shift(explode('/', $this->mimetype)) == 'image') {
+ $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);
}
}