Subversion Repositories Applications.papyrus

Rev

Rev 1646 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1646 Rev 1857
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU General Public                                            |
18
// | You should have received a copy of the GNU General Public                                            |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: telechargement.php,v 1.3 2007-10-10 13:58:04 alexandre_tb Exp $
22
// CVS : $Id: telechargement.php,v 1.4 2008-08-25 15:00:10 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* Service de telechargement recoie un id de document et renvoie le document
26
* Service de telechargement recoie un id de document et renvoie le document
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
30
*@author        Alexandre Granier <alexandre@tela-botanica.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aucun
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.3 $
34
*@version       $Revision: 1.4 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 85... Line 85...
85
 
85
 
86
// Recherche de l extension
86
// Recherche de l extension
87
$nom_de_fichier = pathinfo ($projet->getNomRepertoire().'/'.$document->getChemin()) ;
87
$nom_de_fichier = pathinfo ($projet->getNomRepertoire().'/'.$document->getChemin()) ;
Line 88... Line 88...
88
$extension = $nom_de_fichier['extension'];
88
$extension = $nom_de_fichier['extension'];
89
 
89
 
90
header('Expires: Wen, 01 Dec 1999 01:00:00 GMT');// Date du passé
90
header('Expires: Wen, 01 Dec 1999 01:00:00 GMT');// Date du passe
91
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');// toujours modifié
91
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');// toujours modifie
92
header('Cache-Control: Public, must-revalidate');// HTTP/1.1
92
header('Cache-Control: Public, must-revalidate');// HTTP/1.1
93
header('Pragma: hack');
93
header('Pragma: hack');
94
header ('Content-Type: '.$document->getTypeMime()) ;
94
header ('Content-Type: '.$document->getTypeMime()) ;