Subversion Repositories Applications.papyrus

Rev

Rev 861 | Rev 1489 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 jpm 1
<?php
613 ddelon 2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
5 jpm 3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
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                            |
21
// +------------------------------------------------------------------------------------------------------+
1316 neiluj 22
// CVS : $Id: pap_envoi.inc.php,v 1.10 2007-04-13 09:41:09 neiluj Exp $
5 jpm 23
/**
24
* Gestion de l'envoie des pages à afficher.
25
*
26
* Ce fichier envoi les données en les compressant si possible.
27
*
28
*@package Papyrus
29
//Auteur original :
286 jpm 30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
//Autres auteurs :
5 jpm 32
*@author        Laurent COUDOUNEAU <lc@gsite.org>
33
*@copyright     Tela-Botanica 2000-2004
1316 neiluj 34
*@version       $Revision: 1.10 $ $Date: 2007-04-13 09:41:09 $
5 jpm 35
// +------------------------------------------------------------------------------------------------------+
36
*/
37
 
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTÊTE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
41
 
693 ddelon 42
function pap_compress_output($output)
43
{
44
            return gzencode($output);
45
}
861 ddelon 46
 
693 ddelon 47
// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
48
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
49
{
50
            // Start output buffering, and register compress_output() (see
51
            // below)
52
            ob_start ("pap_compress_output");
656 ddelon 53
 
693 ddelon 54
                    // Tell the browser the content is compressed with gzip
55
                    header ("Content-Encoding: gzip");
5 jpm 56
}
861 ddelon 57
 
5 jpm 58
echo($_GEN_commun['sortie']);
59
 
60
/* +--Fin du code ----------------------------------------------------------------------------------------+
61
*
62
* $Log: not supported by cvs2svn $
1316 neiluj 63
* Revision 1.9  2006/06/08 09:00:06  ddelon
64
* Bug affichage wikini
65
*
861 ddelon 66
* Revision 1.8  2006/05/10 16:02:49  ddelon
67
* Finition multilinguise et schizo flo
68
*
841 ddelon 69
* Revision 1.7  2006/01/12 16:37:01  ddelon
70
* compression N**t*n
71
*
693 ddelon 72
* Revision 1.6  2005/12/09 16:01:53  ddelon
73
* retablissement compression
74
*
656 ddelon 75
* Revision 1.5  2005/11/25 14:33:08  ddelon
76
* desactivation compression
77
*
613 ddelon 78
* Revision 1.4  2005/02/28 11:20:42  jpm
79
* Modification des auteurs.
80
*
286 jpm 81
* Revision 1.3  2004/10/15 18:29:19  jpm
82
* Modif pour gérer l'appli installateur de Papyrus.
83
*
67 jpm 84
* Revision 1.2  2004/06/16 15:07:56  jpm
85
* Correction d'un chemin et nom de fichier.
86
*
10 jpm 87
* Revision 1.1  2004/06/16 08:11:37  jpm
88
* Changement de nom de Génésia en Papyrus.
89
* Changement de l'arborescence.
90
*
5 jpm 91
* Revision 1.3  2004/04/28 12:04:31  jpm
92
* Changement du modèle de la base de données.
93
*
94
* Revision 1.2  2004/04/22 08:31:43  jpm
95
* Transformation de $GS_GLOBAL en $_GEN_commun.
96
*
97
* Revision 1.1  2004/04/09 16:19:23  jpm
98
* Ajout du fichier indépendant d'envoi avec gestion des tables i18n.
99
*
100
*
101
* +-- Fin du code ----------------------------------------------------------------------------------------+
102
*/
103
?>