Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1488 → Rev 1489

/trunk/papyrus/pap_envoi.inc.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: pap_envoi.inc.php,v 1.10 2007-04-13 09:41:09 neiluj Exp $
// CVS : $Id: pap_envoi.inc.php,v 1.11 2007-06-25 15:44:32 jp_milcent Exp $
/**
* Gestion de l'envoie des pages à afficher.
*
31,7 → 31,7
//Autres auteurs :
*@author Laurent COUDOUNEAU <lc@gsite.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.10 $ $Date: 2007-04-13 09:41:09 $
*@version $Revision: 1.11 $ $Date: 2007-06-25 15:44:32 $
// +------------------------------------------------------------------------------------------------------+
*/
 
39,27 → 39,26
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
function pap_compress_output($output)
{
return gzencode($output);
function pap_compress_sortie($output) {
return gzencode($output);
}
 
// Check if the browser supports gzip encoding, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') )
{
// Start output buffering, and register compress_output() (see
// below)
ob_start ("pap_compress_output");
 
// Tell the browser the content is compressed with gzip
header ("Content-Encoding: gzip");
// Nous vérifions si le navigateur supporte la compression, HTTP_ACCEPT_ENCODING
if (strstr ($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip') && function_exists('gzencode') ) {
// Nous mettons en buffer la sortie et nous demandons l'appel de la fonction de compression (voir ci-dessus)
ob_start ('pap_compress_sortie');
// Nous prévenons le navigateur que le contenu est compressé avec gzip
header ('Content-Encoding: gzip');
}
 
echo($_GEN_commun['sortie']);
echo($GLOBALS['_GEN_commun']['sortie']);
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.10 2007-04-13 09:41:09 neiluj
* réparration cvs
*
* Revision 1.9 2006/06/08 09:00:06 ddelon
* Bug affichage wikini
*