getRequestorInfo($token); if ($reqinfo['ip'] != $_SERVER['REMOTE_ADDR']) { $notification->push(_("Your IP address has changed since you requested this file. For security purposes please request a new download token."), 'horde.error'); $url = Horde::applicationUrl('request.php', true); header('Location: ' . $url); exit; } $fileinfo = $butler_driver->getFileById($reqinfo['file_id']); die(print_r($fileinfo, true)); $fh = fopen($fileinfo['filename']); header("Content-type: application/force-download"); header("Content-Transfer-Encoding: Binary"); header("Content-length: ".filesize($fileinfo['filename'])); header("Content-disposition: attachment; filename=\"".$fileinfo['filename']."\""); fpassthru($fh);