15 lines
537 B
PHP
15 lines
537 B
PHP
<?php
|
|
include_once(dirname(__FILE__).'/../../config/config.inc.php');
|
|
include_once(dirname(__FILE__).'/ExpeditorModule.php');
|
|
$cookie = new Cookie('psAdmin', Tools::substr($_SERVER['PHP_SELF'], Tools::strlen(__PS_BASE_URI__), -10));
|
|
Tools::setCookieLanguage();
|
|
|
|
$file = 'documentation_expeditor.pdf';
|
|
|
|
$len = filesize($file);
|
|
header('Content-Transfer-Encoding: none');
|
|
header("Content-type:application/pdf");
|
|
header('Content-Length: ' . $len);
|
|
header('Content-Disposition: attachment; filename="' . $file . '"');
|
|
readfile($file);
|
|
exit(); |