Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
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 |
|
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: pap_envoi.inc.php,v 1.8 2006-05-10 16:02:49 ddelon Exp $
|
22 |
// CVS : $Id: pap_envoi.inc.php,v 1.9 2006-06-08 09:00:06 ddelon Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Gestion de l'envoie des pages à afficher.
|
24 |
* Gestion de l'envoie des pages à afficher.
|
25 |
*
|
25 |
*
|
26 |
* Ce fichier envoi les données en les compressant si possible.
|
26 |
* Ce fichier envoi les données en les compressant si possible.
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
30 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
32 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.8 $ $Date: 2006-05-10 16:02:49 $
|
34 |
*@version $Revision: 1.9 $ $Date: 2006-06-08 09:00:06 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 41... |
Line 41... |
41 |
|
41 |
|
42 |
function pap_compress_output($output)
|
42 |
function pap_compress_output($output)
|
43 |
{
|
43 |
{
|
44 |
return gzencode($output);
|
44 |
return gzencode($output);
|
45 |
}
|
45 |
}
|
46 |
/*
|
46 |
|
47 |
// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
|
47 |
// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
|
48 |
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
|
48 |
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
|
49 |
{
|
49 |
{
|
50 |
// Start output buffering, and register compress_output() (see
|
50 |
// Start output buffering, and register compress_output() (see
|
51 |
// below)
|
51 |
// below)
|
Line 52... |
Line 52... |
52 |
ob_start ("pap_compress_output");
|
52 |
ob_start ("pap_compress_output");
|
53 |
|
53 |
|
54 |
// Tell the browser the content is compressed with gzip
|
54 |
// Tell the browser the content is compressed with gzip
|
55 |
header ("Content-Encoding: gzip");
|
55 |
header ("Content-Encoding: gzip");
|
56 |
}
|
56 |
}
|
Line 57... |
Line 57... |
57 |
*/
|
57 |
|
58 |
echo($_GEN_commun['sortie']);
|
58 |
echo($_GEN_commun['sortie']);
|
59 |
|
59 |
|
- |
|
60 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
61 |
*
|
- |
|
62 |
* $Log: not supported by cvs2svn $
|
60 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
63 |
* Revision 1.8 2006/05/10 16:02:49 ddelon
|
61 |
*
|
64 |
* Finition multilinguise et schizo flo
|
62 |
* $Log: not supported by cvs2svn $
|
65 |
*
|
63 |
* Revision 1.7 2006/01/12 16:37:01 ddelon
|
66 |
* Revision 1.7 2006/01/12 16:37:01 ddelon
|
64 |
* compression N**t*n
|
67 |
* compression N**t*n
|