Commit e66b811e3ec50c5a18054a9f80ccebca1013d123

Authored by Edmar Moretti
1 parent 7343ac61

Inclusão de rotina de compactação das páginas principais

classesphp/mapa_googlemaps.php
... ... @@ -62,7 +62,7 @@ include ("sani_request.php");
62 62 if (! function_exists('ms_GetVersion')) {
63 63 include_once ("carrega_ext.php");
64 64 }
65   -
  65 +error_reporting(0);
66 66 // verificação de segurança
67 67 ini_set("session.use_cookies", 0);
68 68 $_SESSION = array();
... ... @@ -300,7 +300,7 @@ $mapa->setsize($_GET["WIDTH"], $_GET["HEIGHT"]);
300 300 $mapext = explode(" ", $_GET["mapext"]);
301 301 $mapa->setExtent($mapext[0], $mapext[1], $mapext[2], $mapext[3]);
302 302 $o = $mapa->outputformat;
303   -//$o->set("imagemode", MS_IMAGEMODE_RGBA);
  303 +$o->set("imagemode", MS_IMAGEMODE_RGBA);
304 304 $o->set("transparent", MS_TRUE);
305 305 $legenda = $mapa->legend;
306 306 $legenda->set("status", MS_OFF);
... ...
classesphp/mapa_openlayers.php
... ... @@ -344,7 +344,7 @@ if (isset($_GET["REQUEST"])) {
344 344 }
345 345 }
346 346 $o = $mapa->outputformat;
347   -//$o->set("imagemode", MS_IMAGEMODE_RGBA);
  347 +$o->set("imagemode", MS_IMAGEMODE_RGBA);
348 348 $o->set("transparent", MS_TRUE);
349 349 $legenda = $mapa->legend;
350 350 $legenda->set("status", MS_OFF);
... ...
init/head.php
  1 +<?php
  2 +if(extension_loaded('zlib')){
  3 + ob_start('ob_gzhandler');
  4 +}
  5 +?>
1 6 <!DOCTYPE html>
2 7 <html lang="pt-br">
3 8 <head>
... ... @@ -23,9 +28,6 @@ echo &quot;
23 28 <link rel='stylesheet' type='text/css' href='" . ONDEI3GEO . "/pacotes/bootstrap-material-design/dist/css/ripples.min.css'>
24 29 <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
25 30 <link href='" . ONDEI3GEO . "/pacotes/bootstrap/css/ie10-viewport-bug-workaround.css' rel='stylesheet'>
26   - <!-- Custom styles for this template -->
27   - <link href='" . ONDEI3GEO . "/pacotes/font-awesome/css/font-awesome.min.css' rel='stylesheet'>
28   -
29 31 <link href='" . ONDEI3GEO . "/pacotes/bootstrap-accessibility-plugin/plugins/css/bootstrap-accessibility.css' rel='stylesheet'>
30 32  
31 33 <script src='" . ONDEI3GEO . "/init/headjs.php'></script>";
... ...
init/index.php
... ... @@ -228,3 +228,8 @@ if (! function_exists(&quot;ms_GetVersion&quot;)) {
228 228 </script>
229 229 </body>
230 230 </html>
  231 +<?php
  232 +if(extension_loaded('zlib')){
  233 + ob_end_flush();
  234 +}
  235 +?>
... ...
mapas/index.php
... ... @@ -164,3 +164,8 @@ include (&quot;templates/templatelista.php&quot;);
164 164 </script>
165 165 </body>
166 166 </html>
  167 +<?php
  168 +if(extension_loaded('zlib')){
  169 + ob_end_flush();
  170 +}
  171 +?>
167 172 \ No newline at end of file
... ...
ogc/index.php
... ... @@ -119,3 +119,8 @@ if (! isset($_GET[&quot;temaDownload&quot;])) {
119 119 </script>
120 120 </body>
121 121 </html>
  122 +<?php
  123 +if(extension_loaded('zlib')){
  124 + ob_end_flush();
  125 +}
  126 +?>
122 127 \ No newline at end of file
... ...
permlinks/index.php
... ... @@ -260,3 +260,8 @@ include &quot;../init/head.php&quot;;
260 260 </script>
261 261 </body>
262 262 </html>
  263 +<?php
  264 +if(extension_loaded('zlib')){
  265 + ob_end_flush();
  266 +}
  267 +?>
263 268 \ No newline at end of file
... ...
rss/index.php
... ... @@ -77,3 +77,8 @@ include &quot;../init/head.php&quot;;
77 77  
78 78 </body>
79 79 </html>
  80 +<?php
  81 +if(extension_loaded('zlib')){
  82 + ob_end_flush();
  83 +}
  84 +?>
80 85 \ No newline at end of file
... ...
social/index.php
... ... @@ -81,3 +81,8 @@ include &quot;../init/head.php&quot;;
81 81  
82 82 </body>
83 83 </html>
  84 +<?php
  85 +if(extension_loaded('zlib')){
  86 + ob_end_flush();
  87 +}
  88 +?>
84 89 \ No newline at end of file
... ...
utilitarios/index.php
... ... @@ -79,3 +79,8 @@ include &quot;../init/head.php&quot;;
79 79  
80 80 </body>
81 81 </html>
  82 +<?php
  83 +if(extension_loaded('zlib')){
  84 + ob_end_flush();
  85 +}
  86 +?>
82 87 \ No newline at end of file
... ...