OSDN Git Service

Care for 'zlib.output_compression' at php.ini
authorhenoheno <henoheno>
Sun, 31 Oct 2004 09:20:00 +0000 (18:20 +0900)
committerhenoheno <henoheno>
Sun, 31 Oct 2004 09:20:00 +0000 (18:20 +0900)
skin/pukiwiki.css.php
skin/pukiwiki.skin.php

index 0b581c7..24fe4a1 100644 (file)
@@ -2,9 +2,13 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: pukiwiki.css.php,v 1.5 2004/10/23 13:57:28 henoheno Exp $
+// $Id: pukiwiki.css.php,v 1.6 2004/10/31 09:20:00 henoheno Exp $
 //
 header('Content-Type: text/css');
+if(ini_get('zlib.output_compression')) {
+       header('Content-Encoding: gzip');
+       header('Vary: Accept-Encoding');
+}
 
 $charset = isset($_GET['charset']) ? $_GET['charset']  : '';
 $media   = isset($_GET['media'])   ? $_GET['media']    : '';
index 3803d6c..44529a4 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: pukiwiki.skin.php,v 1.14 2004/10/30 07:02:46 henoheno Exp $
+// $Id: pukiwiki.skin.php,v 1.15 2004/10/31 09:20:00 henoheno Exp $
 //
 
 // Prohibit direct access
@@ -41,6 +41,10 @@ switch(UI_LANG){
 header('Cache-control: no-cache');
 header('Pragma: no-cache');
 header('Content-Type: text/html; charset=' . CONTENT_CHARSET);
+if(ini_get('zlib.output_compression')) {
+       header('Content-Encoding: gzip');
+       header('Vary: Accept-Encoding');
+}
 echo '<?xml version="1.0" encoding="' . CONTENT_CHARSET . '"?>';
 
 // Output body