_dropFolderDir, -1, 1) == DIRECTORY_SEPARATOR) $dropfolderdir = substr($settings->_dropFolderDir, 0, -1); else $dropfolderdir = $settings->_dropFolderDir; $dir = $dropfolderdir.'/'.$user->getLogin(); if(!file_exists($dir.'/'.$filename)) exit; if(!empty($_GET["width"])) $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir, $_GET["width"]); else $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); $previewer->setConverters($settings->_converters['preview']); $previewer->setXsendfile($settings->_enableXsendfile); if(!$previewer->hasRawPreview($dir.'/'.$filename, 'dropfolder/')) $previewer->createRawPreview($dir.'/'.$filename, 'dropfolder/'); header('Content-Type: image/png'); $previewer->getRawPreview($dir.'/'.$filename, 'dropfolder/'); ?>