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