Commit 0aa7556581f38f2bc17a44779a0be2401ffab407
1 parent
5f4ec87d
Exists in
master
and in
6 other branches
Remoção de mensagens de erros de programas php
Showing
3 changed files
with
9 additions
and
6 deletions
Show diff stats
classesphp/mapa_controle.php
... | ... | @@ -235,7 +235,7 @@ if ($funcao == "criaMapa") { |
235 | 235 | |
236 | 236 | include_once (dirname(__FILE__) . "/../ms_criamapa.php"); |
237 | 237 | if (isset($_SESSION["logExec"])) { |
238 | - if($_SESSION["logExec"]["controle"] == true){ | |
238 | + if(@$_SESSION["logExec"]["controle"] == true){ | |
239 | 239 | i3GeoLog("prog: mapa_controle url: " . implode("&", array_merge($_GET, $_POST)), $_SESSION["dir_tmp"]); |
240 | 240 | } |
241 | 241 | } | ... | ... |
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) | ... | ... |
ferramentas/safe.php
... | ... | @@ -33,12 +33,12 @@ else{ |
33 | 33 | } |
34 | 34 | |
35 | 35 | //variaveis mais utilizadas |
36 | -$tema = $_GET["tema"]; | |
36 | +$tema = @$_GET["tema"]; | |
37 | 37 | if(isset($_GET["ext"])){ |
38 | 38 | $ext = $_GET["ext"]; |
39 | 39 | } |
40 | 40 | |
41 | -$funcao = $_GET["funcao"]; | |
41 | +$funcao = @$_GET["funcao"]; | |
42 | 42 | |
43 | 43 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
44 | 44 | ... | ... |