Match($attach['filetype']); if($matched) { $x->Thumb($attach,$preview_style,$preview_width,$preview_height); } } if(method_exists($x,'MatchDefault')) { $default_matched = $x->MatchDefault(substr($attach['filetype'],0,strpos($attach['filetype'],'/'))); if($default_matched) { $default_controller = $x; } } } } } if(($default_controller) && (! file_exists(dbunescbin($attach['content']) . '.thumb'))) { $default_controller->Thumb($attach,$preview_style,$preview_width,$preview_height); } } }