Path : /hermes/bosweb/b1705/englobatrading.com/engloba.ca/wellnessland.ca/ |
Current < : /hermes/bosweb/b1705/englobatrading.com/engloba.ca/wellnessland.ca/attachment.php |
<?php require(dirname(__FILE__).'/config/config.inc.php'); require(dirname(__FILE__).'/init.php'); $a = new Attachment(intval(Tools::getValue('id_attachment')), intval($cookie->id_lang)); header('Content-Transfer-Encoding: binary'); header('Content-Type: '.$a->mime); header('Content-Length: '.filesize(_PS_DOWNLOAD_DIR_.$a->file)); header('Content-Disposition: attachment; filename="'.utf8_decode($a->name).'"'); readfile(_PS_DOWNLOAD_DIR_.$a->file); exit; ?>