Commit 3e91d6057c7c982c9c24f216990bc9f055596f13

Authored by Edmar Moretti
1 parent 4dca6a2f
Exists in master

Remoção de mensagens de erros de programas php

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
classesphp/mapa_openlayers.php
... ... @@ -59,15 +59,14 @@ include ("sani_request.php");
59 59 if (! function_exists('ms_GetVersion')) {
60 60 include_once ("carrega_ext.php");
61 61 }
62   -// error_reporting(0);
  62 +//error_reporting(E_ALL);
63 63 inicializa();
64 64 //
65 65 // calcula a extensao geografica com base no x,y,z
66 66 // nos casos do modo notile, a requisicao e feita como se fosse um wms
67 67 // quando for do tipo tms $_GET["tms"] contem os parametros do tile
68 68 //
69   -
70   -if (isset($_GET["tms"])) {
  69 +if (!empty($_GET["tms"])) {
71 70 $_GET["WIDTH"] = 256;
72 71 $_GET["HEIGHT"] = 256;
73 72 $temp = explode("/", $_GET["tms"]);
... ... @@ -545,15 +544,19 @@ function carregaCacheImagem($cachedir, $map, $tms, $i3georendermode = 0, $format
545 544 $nome = str_replace(".png","",$nome) . ".png";
546 545 $tipo = "image/png";
547 546 }
  547 +
548 548 if (file_exists($nome)) {
  549 +
549 550 cabecalhoImagem($nome,$tipo);
550 551 if ($i3georendermode = 0 || $i3georendermode = 1 || empty($i3georendermode)) {
551 552 readfile($nome);
552 553 } else {
553 554 header("X-Sendfile: ".$nome);
554 555 }
  556 +
555 557 exit();
556 558 }
  559 +
557 560 }
558 561  
559 562 function nomeRand($n = 10)
... ...