Commit db4d5e5e02ed5cf90306be2970137b2315135438
1 parent
105dd6cf
Exists in
master
and in
7 other branches
Atualização do código
Showing
4 changed files
with
93 additions
and
3 deletions
Show diff stats
mashups/openlayers.php
| @@ -5,10 +5,40 @@ | @@ -5,10 +5,40 @@ | ||
| 5 | * será definido automaticamente | 5 | * será definido automaticamente |
| 6 | */ | 6 | */ |
| 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); | 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
| 8 | -include_once(dirname(__FILE__)."/../classesphp/pega_variaveis.php"); | 8 | +include_once(dirname(__FILE__)."/../classesphp/sani_request.php"); |
| 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); | 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); |
| 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); | 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
| 11 | error_reporting(0); | 11 | error_reporting(0); |
| 12 | +//variaveis utilizadas | ||
| 13 | +$parurl = array_merge($_GET,$_POST); | ||
| 14 | +$desligacache = $parurl["desligacache"]; | ||
| 15 | +$opacidade = $parurl["opacidade"]; | ||
| 16 | +$nocache = $parurl["nocache"]; | ||
| 17 | +$restauramapa = $parurl["restauramapa"]; | ||
| 18 | +$mapext = $parurl["mapext"]; | ||
| 19 | +$temas = $parurl["temas"]; | ||
| 20 | +$layers = $parurl["layers"]; | ||
| 21 | + | ||
| 22 | +$altura = $parurl["altura"]; | ||
| 23 | +$controles = $parurl["controles"]; | ||
| 24 | +$botoes = $parurl["botoes"]; | ||
| 25 | +$fundo = $parurl["fundo"]; | ||
| 26 | +$visiveis = $parurl["visiveis"]; | ||
| 27 | +$servidor = $parurl["servidor"]; | ||
| 28 | +$kml = $parurl["kml"]; | ||
| 29 | +$numzoomlevels = $parurl["numzoomlevels"]; | ||
| 30 | +$minresolution = $parurl["minresolution"]; | ||
| 31 | +$maxextent = $parurl["maxextent"]; | ||
| 32 | + | ||
| 33 | +$pontos = $parurl["pontos"]; | ||
| 34 | +$marca = $parurl["marca"]; | ||
| 35 | +$tiles = $parurl["tiles"]; | ||
| 36 | +$incluilayergrafico = $parurl["incluilayergrafico"]; | ||
| 37 | +$ativalayerswicther = $parurl["ativalayerswicther"]; | ||
| 38 | +$ativarodadomouse = $parurl["ativarodadomouse"]; | ||
| 39 | +$legendahtml = $parurl["legendahtml"]; | ||
| 40 | +$nocache = $parurl["nocache"]; | ||
| 41 | + | ||
| 12 | //cria as pastas temporarias caso nao existam | 42 | //cria as pastas temporarias caso nao existam |
| 13 | if (! file_exists ( $dir_tmp )) { | 43 | if (! file_exists ( $dir_tmp )) { |
| 14 | @mkdir ( $dir_tmp, 0777 ); | 44 | @mkdir ( $dir_tmp, 0777 ); |
mashups/openlayers3.php
| @@ -5,10 +5,39 @@ | @@ -5,10 +5,39 @@ | ||
| 5 | * será definido automaticamente | 5 | * será definido automaticamente |
| 6 | */ | 6 | */ |
| 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); | 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
| 8 | -include_once(dirname(__FILE__)."/../classesphp/pega_variaveis.php"); | 8 | +include_once(dirname(__FILE__)."/../classesphp/sani_request.php"); |
| 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); | 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); |
| 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); | 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
| 11 | error_reporting(0); | 11 | error_reporting(0); |
| 12 | +//variaveis utilizadas | ||
| 13 | +$parurl = array_merge($_GET,$_POST); | ||
| 14 | +$desligacache = $parurl["desligacache"]; | ||
| 15 | +$opacidade = $parurl["opacidade"]; | ||
| 16 | +$nocache = $parurl["nocache"]; | ||
| 17 | +$restauramapa = $parurl["restauramapa"]; | ||
| 18 | +$mapext = $parurl["mapext"]; | ||
| 19 | +$temas = $parurl["temas"]; | ||
| 20 | +$layers = $parurl["layers"]; | ||
| 21 | + | ||
| 22 | +$altura = $parurl["altura"]; | ||
| 23 | +$controles = $parurl["controles"]; | ||
| 24 | +$botoes = $parurl["botoes"]; | ||
| 25 | +$fundo = $parurl["fundo"]; | ||
| 26 | +$visiveis = $parurl["visiveis"]; | ||
| 27 | +$servidor = $parurl["servidor"]; | ||
| 28 | +$kml = $parurl["kml"]; | ||
| 29 | +$numzoomlevels = $parurl["numzoomlevels"]; | ||
| 30 | +$minresolution = $parurl["minresolution"]; | ||
| 31 | +$maxextent = $parurl["maxextent"]; | ||
| 32 | + | ||
| 33 | +$pontos = $parurl["pontos"]; | ||
| 34 | +$marca = $parurl["marca"]; | ||
| 35 | +$tiles = $parurl["tiles"]; | ||
| 36 | +$incluilayergrafico = $parurl["incluilayergrafico"]; | ||
| 37 | +$ativalayerswicther = $parurl["ativalayerswicther"]; | ||
| 38 | +$ativarodadomouse = $parurl["ativarodadomouse"]; | ||
| 39 | +$legendahtml = $parurl["legendahtml"]; | ||
| 40 | +$nocache = $parurl["nocache"]; | ||
| 12 | //cria as pastas temporarias caso nao existam | 41 | //cria as pastas temporarias caso nao existam |
| 13 | if (! file_exists ( $dir_tmp )) { | 42 | if (! file_exists ( $dir_tmp )) { |
| 14 | @mkdir ( $dir_tmp, 0777 ); | 43 | @mkdir ( $dir_tmp, 0777 ); |
mashups/openlayers_ajuda.php
| 1 | <?php | 1 | <?php |
| 2 | include(dirname(__FILE__)."/../versao.php"); | 2 | include(dirname(__FILE__)."/../versao.php"); |
| 3 | +include_once(dirname(__FILE__)."/../classesphp/sani_request.php"); | ||
| 3 | $completo = "block"; | 4 | $completo = "block"; |
| 4 | if(!empty($_GET["completo"]) && $_GET["completo"] == "none"){ | 5 | if(!empty($_GET["completo"]) && $_GET["completo"] == "none"){ |
| 5 | $completo = "none"; | 6 | $completo = "none"; |
mashups/osm.php
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | * será definido automaticamente | 5 | * será definido automaticamente |
| 6 | */ | 6 | */ |
| 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); | 7 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
| 8 | -include_once(dirname(__FILE__)."/../classesphp/pega_variaveis.php"); | 8 | +include_once(dirname(__FILE__)."/../classesphp/sani_request.php"); |
| 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); | 9 | include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); |
| 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); | 10 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
| 11 | error_reporting(0); | 11 | error_reporting(0); |
| @@ -22,6 +22,36 @@ if (file_exists ( $dir_tmp )) { | @@ -22,6 +22,36 @@ if (file_exists ( $dir_tmp )) { | ||
| 22 | @mkdir ( $dir_tmp . "/cache/googlemaps", 0777 ); | 22 | @mkdir ( $dir_tmp . "/cache/googlemaps", 0777 ); |
| 23 | chmod ( $dir_tmp . "/cache/googlemaps", 0777 ); | 23 | chmod ( $dir_tmp . "/cache/googlemaps", 0777 ); |
| 24 | } | 24 | } |
| 25 | +//variaveis utilizadas | ||
| 26 | +$parurl = array_merge($_GET,$_POST); | ||
| 27 | +$desligacache = $parurl["desligacache"]; | ||
| 28 | +$opacidade = $parurl["opacidade"]; | ||
| 29 | +$nocache = $parurl["nocache"]; | ||
| 30 | +$restauramapa = $parurl["restauramapa"]; | ||
| 31 | +$mapext = $parurl["mapext"]; | ||
| 32 | +$temas = $parurl["temas"]; | ||
| 33 | +$layers = $parurl["layers"]; | ||
| 34 | + | ||
| 35 | +$altura = $parurl["altura"]; | ||
| 36 | +$controles = $parurl["controles"]; | ||
| 37 | +$botoes = $parurl["botoes"]; | ||
| 38 | +$fundo = $parurl["fundo"]; | ||
| 39 | +$visiveis = $parurl["visiveis"]; | ||
| 40 | +$servidor = $parurl["servidor"]; | ||
| 41 | +$kml = $parurl["kml"]; | ||
| 42 | +$numzoomlevels = $parurl["numzoomlevels"]; | ||
| 43 | +$minresolution = $parurl["minresolution"]; | ||
| 44 | +$maxextent = $parurl["maxextent"]; | ||
| 45 | + | ||
| 46 | +$pontos = $parurl["pontos"]; | ||
| 47 | +$marca = $parurl["marca"]; | ||
| 48 | +$tiles = $parurl["tiles"]; | ||
| 49 | +$incluilayergrafico = $parurl["incluilayergrafico"]; | ||
| 50 | +$ativalayerswicther = $parurl["ativalayerswicther"]; | ||
| 51 | +$ativarodadomouse = $parurl["ativarodadomouse"]; | ||
| 52 | +$legendahtml = $parurl["legendahtml"]; | ||
| 53 | +$nocache = $parurl["nocache"]; | ||
| 54 | + | ||
| 25 | if(!empty($desligacache)){ | 55 | if(!empty($desligacache)){ |
| 26 | $DESLIGACACHE = $desligacache; | 56 | $DESLIGACACHE = $desligacache; |
| 27 | } | 57 | } |