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