Commit 5354bf7a440759f48bcd69c31bf0435a8eff21aa
1 parent
4bd5b015
Exists in
master
and in
7 other branches
--no commit message
Showing
4 changed files
with
31 additions
and
8 deletions
Show diff stats
classesphp/mapa_controle.php
| @@ -124,11 +124,11 @@ if ($funcao != "criaMapa") | @@ -124,11 +124,11 @@ if ($funcao != "criaMapa") | ||
| 124 | eval("\$".$k."='".$_SESSION[$k]."';"); | 124 | eval("\$".$k."='".$_SESSION[$k]."';"); |
| 125 | } | 125 | } |
| 126 | $postgis_mapa = $_SESSION["postgis_mapa"]; | 126 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
| 127 | - //if(isset($fingerprint)) | ||
| 128 | - //{ | 127 | + if(isset($fingerprint)) |
| 128 | + { | ||
| 129 | if (md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id()) != $fingerprint) | 129 | if (md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id()) != $fingerprint) |
| 130 | {exit;} | 130 | {exit;} |
| 131 | - //} | 131 | + } |
| 132 | } | 132 | } |
| 133 | // | 133 | // |
| 134 | //verifica se deve ativar o debug | 134 | //verifica se deve ativar o debug |
datadownload.htm
| @@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
| 5 | <meta name="description" content="Mapa interativo do MMA"> | 5 | <meta name="description" content="Mapa interativo do MMA"> |
| 6 | <meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> | 6 | <meta name="keywords" content="WMS OGC mapa sig gis webmapping geo geoprocessamento interativo meio ambiente MMA cartografia geografia"> |
| 7 | <meta name="robots" content="index,follow"> | 7 | <meta name="robots" content="index,follow"> |
| 8 | -<script type="text/javascript" src="classesjs/i3geo.js"></script> | 8 | +<script type="text/javascript" src="classesjs/i3geonaocompacto.js"></script> |
| 9 | <script type="text/javascript" src="classesjs/datadownload.js"></script> | 9 | <script type="text/javascript" src="classesjs/datadownload.js"></script> |
| 10 | <style> | 10 | <style> |
| 11 | P | 11 | P |
| @@ -46,7 +46,8 @@ O formato "shape file" &eacute; composto por tr&ecirc;s arquivos (shp, shx e dbf | @@ -46,7 +46,8 @@ O formato "shape file" &eacute; composto por tr&ecirc;s arquivos (shp, shx e dbf | ||
| 46 | <p>Para abrir o "shape file", você poderá utilizar softwares livres como o | 46 | <p>Para abrir o "shape file", você poderá utilizar softwares livres como o |
| 47 | <a href="http://www.gvsig.gva.es/index.php?id=gvsig&L=0" target=blank>GVSIG</a>, <a href="http://qgis.org/" target=blank > QGIS</a>, ou <a href="http://jump-pilot.sourceforge.net/OpenJUMP.html" target=blank >JUMP</a>. | 47 | <a href="http://www.gvsig.gva.es/index.php?id=gvsig&L=0" target=blank>GVSIG</a>, <a href="http://qgis.org/" target=blank > QGIS</a>, ou <a href="http://jump-pilot.sourceforge.net/OpenJUMP.html" target=blank >JUMP</a>. |
| 48 | <p>Conheça também o <a href="http://mapas.mma.gov.br/i3geo/ms_criamapa.php" target=blank >mapa interativo do MMA.</a> | 48 | <p>Conheça também o <a href="http://mapas.mma.gov.br/i3geo/ms_criamapa.php" target=blank >mapa interativo do MMA.</a> |
| 49 | - | 49 | +<p>Bookmark: <span id=bm1 ></span> |
| 50 | +<p><div style=text-align:left id=curtir ></div> | ||
| 50 | 51 | ||
| 51 | </body> | 52 | </body> |
| 52 | <script> | 53 | <script> |
| @@ -91,6 +92,9 @@ Se o array estiver vazio, será utilizado o default, baseado no sistema de admini | @@ -91,6 +92,9 @@ Se o array estiver vazio, será utilizado o default, baseado no sistema de admini | ||
| 91 | g_RSSl = new Array(""); | 92 | g_RSSl = new Array(""); |
| 92 | i3GEO.idioma.IDSELETOR = "bandeiras"; | 93 | i3GEO.idioma.IDSELETOR = "bandeiras"; |
| 93 | i3GEO.idioma.mostraSeletor(); | 94 | i3GEO.idioma.mostraSeletor(); |
| 95 | +$i("bm1").innerHTML = i3GEO.util.bookmark(window.location.href); | ||
| 96 | +$i("curtir").innerHTML = "<iframe src='http://www.facebook.com/plugins/like.php?href="+window.location.href+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | ||
| 97 | + | ||
| 94 | DDinicia() | 98 | DDinicia() |
| 95 | </script> | 99 | </script> |
| 96 | </html> | 100 | </html> |
geradordelinks.htm
| @@ -10,7 +10,7 @@ | @@ -10,7 +10,7 @@ | ||
| 10 | P | 10 | P |
| 11 | {COLOR: #2F4632;text-align: justify;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} | 11 | {COLOR: #2F4632;text-align: justify;font-size: 12px;font-family: Verdana, Arial, Helvetica, sans-serif;} |
| 12 | </style> | 12 | </style> |
| 13 | -<script type="text/javascript" src="classesjs/i3geo.js"></script> | 13 | +<script type="text/javascript" src="classesjs/i3geonaocompacto.js"></script> |
| 14 | <script type="text/javascript" src="classesjs/geradordelinks.js"></script> | 14 | <script type="text/javascript" src="classesjs/geradordelinks.js"></script> |
| 15 | </head> | 15 | </head> |
| 16 | <body style="background-color:white;text-align:left;left:0px;"> | 16 | <body style="background-color:white;text-align:left;left:0px;"> |
| @@ -19,6 +19,8 @@ P | @@ -19,6 +19,8 @@ P | ||
| 19 | </div>--> | 19 | </div>--> |
| 20 | <div style=width:550px;position:relative;top:10px;left:10px;background-color:rgb(250,250,250) > | 20 | <div style=width:550px;position:relative;top:10px;left:10px;background-color:rgb(250,250,250) > |
| 21 | <div id=bandeiras style=width:80px ></div><br> | 21 | <div id=bandeiras style=width:80px ></div><br> |
| 22 | + <p class=paragrafo >Bookmark: <span id=bm1 ></span> | ||
| 23 | + <p class=paragrafo ><div style=text-align:left id=curtir ></div> | ||
| 22 | <p class=paragrafo >Aqui você pode gerar links para abrir o i3Geo de forma personalizada. | 24 | <p class=paragrafo >Aqui você pode gerar links para abrir o i3Geo de forma personalizada. |
| 23 | Os links podem ser incluídos em qualquer página WEB, sendo possível | 25 | Os links podem ser incluídos em qualquer página WEB, sendo possível |
| 24 | definir quais os temas serão mostrados e qual a extensão geográfica do mapa.<br><br></p> | 26 | definir quais os temas serão mostrados e qual a extensão geográfica do mapa.<br><br></p> |
| @@ -113,7 +115,12 @@ Veja: | @@ -113,7 +115,12 @@ Veja: | ||
| 113 | File: i3geo/geradordelinks.htm | 115 | File: i3geo/geradordelinks.htm |
| 114 | 116 | ||
| 115 | */ | 117 | */ |
| 118 | + | ||
| 116 | var g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; | 119 | var g_locaplic = i3GEO.util.protocolo()+"://"+window.location.host+"/i3geo"; |
| 120 | +i3GEO.configura.locaplic = g_locaplic; | ||
| 121 | +$i("bm1").innerHTML = i3GEO.util.bookmark(window.location.href); | ||
| 122 | +$i("curtir").innerHTML = "<iframe src='http://www.facebook.com/plugins/like.php?href="+window.location.href+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | ||
| 123 | + | ||
| 117 | var i3geo_gl_configura = new i3geo_gl_configura( | 124 | var i3geo_gl_configura = new i3geo_gl_configura( |
| 118 | g_locaplic, | 125 | g_locaplic, |
| 119 | "estadosl", | 126 | "estadosl", |
ogc.htm
| @@ -37,6 +37,8 @@ P | @@ -37,6 +37,8 @@ P | ||
| 37 | <p>A lista de temas baseia-se nas configurações específicas de cada servidor onde o i3Geo está instalado. Para obter uma lista de outros Web Services, acesse o <a href="wscliente.htm" >cliente de webservices.</a> | 37 | <p>A lista de temas baseia-se nas configurações específicas de cada servidor onde o i3Geo está instalado. Para obter uma lista de outros Web Services, acesse o <a href="wscliente.htm" >cliente de webservices.</a> |
| 38 | <p>Você pode usar um Web Service para acessar os dados configurados nesse servidor por meio de outros softwares de geoprocessamento, como o <a href="http://www.gvsig.gva.es/index.php?id=gvsig&L=0" >gvSIG.</a> | 38 | <p>Você pode usar um Web Service para acessar os dados configurados nesse servidor por meio de outros softwares de geoprocessamento, como o <a href="http://www.gvsig.gva.es/index.php?id=gvsig&L=0" >gvSIG.</a> |
| 39 | <p>Para maiores informações sobre o uso de web services, veja <a href='http://www.opengeospatial.org/standards' target=blank >http://www.opengeospatial.org/standards</a> | 39 | <p>Para maiores informações sobre o uso de web services, veja <a href='http://www.opengeospatial.org/standards' target=blank >http://www.opengeospatial.org/standards</a> |
| 40 | +<p>Bookmark: <span id=bm1 ></span> | ||
| 41 | +<p><div style=text-align:left id=curtir ></div> | ||
| 40 | <div style="background-color:white"><p><img src="imagens/i3geo1bw.jpg" /></div> | 42 | <div style="background-color:white"><p><img src="imagens/i3geo1bw.jpg" /></div> |
| 41 | </div> | 43 | </div> |
| 42 | </body> | 44 | </body> |
| @@ -70,9 +72,14 @@ Free Software Foundation, Inc., no endereço | @@ -70,9 +72,14 @@ Free Software Foundation, Inc., no endereço | ||
| 70 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | 72 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| 71 | */ | 73 | */ |
| 72 | var loc = window.location.href; | 74 | var loc = window.location.href; |
| 75 | + | ||
| 73 | g_locaplic = loc.split("/ogc.htm"); | 76 | g_locaplic = loc.split("/ogc.htm"); |
| 74 | g_locaplic = g_locaplic[0] | 77 | g_locaplic = g_locaplic[0] |
| 75 | i3GEO.configura.locaplic = g_locaplic | 78 | i3GEO.configura.locaplic = g_locaplic |
| 79 | + | ||
| 80 | +$i("bm1").innerHTML = i3GEO.util.bookmark(loc); | ||
| 81 | +$i("curtir").innerHTML = "<iframe src='http://www.facebook.com/plugins/like.php?href="+loc+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | ||
| 82 | + | ||
| 76 | g_arvoreClicks = "" | 83 | g_arvoreClicks = "" |
| 77 | i3GEO.idioma.IDSELETOR = "bandeiras"; | 84 | i3GEO.idioma.IDSELETOR = "bandeiras"; |
| 78 | i3GEO.idioma.mostraSeletor(); | 85 | i3GEO.idioma.mostraSeletor(); |
| @@ -97,10 +104,14 @@ function ogc_endereco(tema) | @@ -97,10 +104,14 @@ function ogc_endereco(tema) | ||
| 97 | { | 104 | { |
| 98 | tema.checked = false | 105 | tema.checked = false |
| 99 | tema = tema.value | 106 | tema = tema.value |
| 100 | - ins = "<H1>Endereço do web service:</H1><br>" | 107 | + ins = "<H1>Endereço do web service:</H1>" |
| 101 | var re = new RegExp(".htm", "g"); | 108 | var re = new RegExp(".htm", "g"); |
| 102 | - var servico = window.location.href.replace(re,'.php?tema=')+tema | 109 | + var servico = window.location.href.replace(re,'.php?tema=')+tema |
| 103 | ins += "<p>"+servico | 110 | ins += "<p>"+servico |
| 111 | + | ||
| 112 | + ins += "<p>Bookmark: <span id=bm ></span>" | ||
| 113 | + ins += "<p><iframe src='http://www.facebook.com/plugins/like.php?href="+servico+"&layout=button_count&show_faces=false&width=100&action=like&colorscheme=light&height=21' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:100px; height:21px;' allowTransparency='true'></iframe>"; | ||
| 114 | + | ||
| 104 | ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4291&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar</a>" | 115 | ins += "<p><a target=blank href='"+servico+"&SRS=EPSG:4291&WIDTH=500&HEIGHT=500&BBOX=-76.5125927,-39.3925675209,-29.5851853,9.49014852081&FORMAT=image/png&service=wms&version=1.1.0&request=getmap&layers="+tema+"' />testar</a>" |
| 105 | if(!$i("panellistaarquivos")){ | 116 | if(!$i("panellistaarquivos")){ |
| 106 | YAHOO.namespace("datadownloadLista"); | 117 | YAHOO.namespace("datadownloadLista"); |
| @@ -113,6 +124,7 @@ function ogc_endereco(tema) | @@ -113,6 +124,7 @@ function ogc_endereco(tema) | ||
| 113 | }; | 124 | }; |
| 114 | YAHOO.datadownloadLista.panel.setBody(ins); | 125 | YAHOO.datadownloadLista.panel.setBody(ins); |
| 115 | YAHOO.datadownloadLista.panel.show(); | 126 | YAHOO.datadownloadLista.panel.show(); |
| 127 | + $i("bm").innerHTML = i3GEO.util.bookmark(servico); | ||
| 116 | //document.getElementById("corpo").innerHTML = ins | 128 | //document.getElementById("corpo").innerHTML = ins |
| 117 | } | 129 | } |
| 118 | 130 |