Commit 138e98a937b94d17fe4fae3135793a2399ace78d
1 parent
e475d4d9
Exists in
master
and in
7 other branches
Verificação da variável $fingerprint para ver se está ou não definida.
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
classesphp/mapa_controle.php
| ... | ... | @@ -79,7 +79,7 @@ Include: |
| 79 | 79 | <pega_variaveis.php>, <carrega_ext.php>, <cpaint2.inc.php>, <classe_vermultilayer.php>, <classe_estatistica.php>, <funcoes_gerais.php> |
| 80 | 80 | |
| 81 | 81 | */ |
| 82 | -error_reporting(0); | |
| 82 | +error_reporting(E_ALL); | |
| 83 | 83 | |
| 84 | 84 | //sleep(5); |
| 85 | 85 | |
| ... | ... | @@ -103,8 +103,11 @@ if ($funcao != "criaMapa") |
| 103 | 103 | { |
| 104 | 104 | eval("\$".$k."='".$_SESSION[$k]."';"); |
| 105 | 105 | } |
| 106 | - if (md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id()) != $fingerprint) | |
| 107 | - {exit;} | |
| 106 | + if(isset($fingerprint)) | |
| 107 | + { | |
| 108 | + if (md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id()) != $fingerprint) | |
| 109 | + {exit;} | |
| 110 | + } | |
| 108 | 111 | } |
| 109 | 112 | // |
| 110 | 113 | //verifica se deve ativar o debug | ... | ... |