Commit d0b4a1ea24915d440f422b0a2c59496a8d7cd2d3
1 parent
76b0c140
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
8 additions
and
4 deletions
Show diff stats
ms_criamapa.php
| ... | ... | @@ -163,6 +163,7 @@ Inclui os programas php com funções utilizadas pelo ms_criamapa.php |
| 163 | 163 | |
| 164 | 164 | include_once ($caminho."classesphp/pega_variaveis.php"); |
| 165 | 165 | include_once ($caminho."classesphp/funcoes_gerais.php"); |
| 166 | + | |
| 166 | 167 | if(!isset($dir_tmp)) |
| 167 | 168 | {include_once ($caminho."ms_configura.php");} |
| 168 | 169 | |
| ... | ... | @@ -200,7 +201,7 @@ $locaplic_ = $locaplic; |
| 200 | 201 | //$locidentifica_ = $locidentifica; |
| 201 | 202 | $R_path_ = $R_path; |
| 202 | 203 | $mapext_ = $mapext; |
| 203 | -$locmapas_ = $locmapas; | |
| 204 | + | |
| 204 | 205 | $debug_ = $debug; |
| 205 | 206 | $ler_extensoes_ = $ler_extensoes; |
| 206 | 207 | $postgis_mapa_ = $postgis_mapa; |
| ... | ... | @@ -234,9 +235,11 @@ Se já houver uma seção aberta, em função de outro browser estar ativo, cria uma |
| 234 | 235 | */ |
| 235 | 236 | session_name("i3GeoPHP"); |
| 236 | 237 | session_start(); |
| 238 | +//echo $_SESSION["map_file"];exit; | |
| 237 | 239 | if (!isset($g_sid)){$g_sid="";} |
| 238 | -if(isset($_SESSION["map_file"]) || $g_sid!="") | |
| 239 | -{session_regenerate_id();} | |
| 240 | +if(isset($_SESSION["map_file"]) || $g_sid != "") | |
| 241 | +{session_regenerate_id();$_SESSION = array();} | |
| 242 | + | |
| 240 | 243 | /* |
| 241 | 244 | Aguarde |
| 242 | 245 | |
| ... | ... | @@ -254,7 +257,7 @@ $_SESSION["locaplic"] = $locaplic_; |
| 254 | 257 | //$_SESSION["locidentifica"] = $locidentifica_; |
| 255 | 258 | $_SESSION["R_path"] = $R_path_; |
| 256 | 259 | $_SESSION["mapext"] = $mapext_; |
| 257 | -$_SESSION["locmapas"] = $locmapas_; | |
| 260 | + | |
| 258 | 261 | $_SESSION["debug"] = $debug_; |
| 259 | 262 | $_SESSION["ler_extensoes"] = $ler_extensoes_; |
| 260 | 263 | $_SESSION["postgis_mapa"] = $postgis_mapa_; |
| ... | ... | @@ -280,6 +283,7 @@ $_SESSION["contadorsalva"] = 0;//essa variavel e utilizada pela ferramenta telar |
| 280 | 283 | // |
| 281 | 284 | //pega todas as variáveis da sessão, mesmo as que foram definidas anteriormente |
| 282 | 285 | // |
| 286 | + | |
| 283 | 287 | foreach(array_keys($_SESSION) as $k) |
| 284 | 288 | {eval("\$".$k."='".$_SESSION[$k]."';");} |
| 285 | 289 | $postgis_mapa = $postgis_mapa_; | ... | ... |