filename; //path to file as stored on server if (!Security::check_abs_path($path, dropbox_cnf('sysPath').'/')) { exit; } $file = $work->title; DocumentManager::file_send_for_download($path, true, $file); exit; } //@todo clean this file the code below is useless there are 2 exits in previous conditions ... maybe a bad copy/paste/merge? exit;