Commit f15d4bd9d859b9590f4a816a8d2cab69e8d22f53

Authored by Edmar Moretti
1 parent 363186d9

Criação de uma nova página de inicialização

admin/admin.db
No preview for this file type
documentacao/manual-i3geo-4_7-pt.pdf 0 → 100644
No preview for this file type
init/dicionario.js
@@ -3,14 +3,102 @@ g_traducao_init = { @@ -3,14 +3,102 @@ g_traducao_init = {
3 { 3 {
4 pt:"Remover essa tela de apresentação (depois você poderá ir direto para http://localhost/i3geo/init)", 4 pt:"Remover essa tela de apresentação (depois você poderá ir direto para http://localhost/i3geo/init)",
5 en:"", 5 en:"",
6 -es:"",  
7 -it:"" 6 +es:""
8 }], 7 }],
9 2: [ 8 2: [
10 { 9 {
11 pt:"Teste da instalação", 10 pt:"Teste da instalação",
12 en:"", 11 en:"",
13 -es:"",  
14 -it:"" 12 +es:""
  13 +}],
  14 +3: [
  15 +{
  16 +pt:"Sistema de administração",
  17 +en:"",
  18 +es:""
  19 +}],
  20 +4: [
  21 +{
  22 +pt:"Mapa com interface Openlayers",
  23 +en:"",
  24 +es:""
  25 +}],
  26 +5: [
  27 +{
  28 +pt:"Mapa com interface Openlayers (modo debug)",
  29 +en:"",
  30 +es:""
  31 +}],
  32 +6: [
  33 +{
  34 +pt:"Mapa com interface Google Maps",
  35 +en:"",
  36 +es:""
  37 +}],
  38 +7: [
  39 +{
  40 +pt:"Mapa com interface Google Earth",
  41 +en:"",
  42 +es:""
  43 +}],
  44 +8: [
  45 +{
  46 +pt:"Cartogramas (METAESTAT)",
  47 +en:"",
  48 +es:""
  49 +}],
  50 +9: [
  51 +{
  52 +pt:"Editor de regiões (METAESTAT)",
  53 +en:"",
  54 +es:""
  55 +}],
  56 +10: [
  57 +{
  58 +pt:"Download de dados geo",
  59 +en:"",
  60 +es:""
  61 +}],
  62 +11: [
  63 +{
  64 +pt:"Serviços OGC (WMS e WFS)",
  65 +en:"",
  66 +es:""
  67 +}],
  68 +12: [
  69 +{
  70 +pt:"Catálogo de temas no formato KML",
  71 +en:"",
  72 +es:""
  73 +}],
  74 +13: [
  75 +{
  76 +pt:"Gerador de links permanentes",
  77 +en:"",
  78 +es:""
  79 +}],
  80 +14: [
  81 +{
  82 +pt:"Exemplos de customização da interface de mapas",
  83 +en:"",
  84 +es:""
  85 +}],
  86 +15: [
  87 +{
  88 +pt:"Manual de uso",
  89 +en:"",
  90 +es:""
  91 +}],
  92 +16: [
  93 +{
  94 +pt:"Registro de bugs",
  95 +en:"",
  96 +es:""
  97 +}],
  98 +17: [
  99 +{
  100 +pt:"Guia de migração",
  101 +en:"",
  102 +es:""
15 }] 103 }]
16 }; 104 };
17 \ No newline at end of file 105 \ No newline at end of file
init/index.php
@@ -14,7 +14,7 @@ header("Cache-Control: max-age=".$cache_expire); @@ -14,7 +14,7 @@ header("Cache-Control: max-age=".$cache_expire);
14 header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT'); 14 header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$cache_expire) . ' GMT');
15 include("../ms_configura.php"); 15 include("../ms_configura.php");
16 if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){ 16 if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){
17 - echo "<p style='font-size:14px;color:red'>ATEN&Ccedil;&Atilde;O!!! Sua seguran&ccedil;a esta vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster"; 17 + echo "<p style='font-size:14px;color:red'>ATEN&Ccedil;&Atilde;O!!! Essa instala&ccedil;&atilde;o est&aacute; vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster";
18 } 18 }
19 ?> 19 ?>
20 20
@@ -28,7 +28,6 @@ body { @@ -28,7 +28,6 @@ body {
28 text-align: center; 28 text-align: center;
29 font-size: 0.6cm; 29 font-size: 0.6cm;
30 font-family: Verdana, Arial, Helvetica, sans-serif; 30 font-family: Verdana, Arial, Helvetica, sans-serif;
31 - width:900px;  
32 background: rgb(250,250,250); 31 background: rgb(250,250,250);
33 } 32 }
34 .r { 33 .r {
@@ -36,10 +35,10 @@ body { @@ -36,10 +35,10 @@ body {
36 border-radius: 5px 5px 5px 5px; 35 border-radius: 5px 5px 5px 5px;
37 box-shadow: 0 8px 10px 0 #888888; 36 box-shadow: 0 8px 10px 0 #888888;
38 float: left; 37 float: left;
39 - height: 160px;  
40 - margin: 25px; 38 + height: 150px;
  39 + margin: 10px;
41 padding: 10px; 40 padding: 10px;
42 - width: 220px; 41 + width: 200px;
43 background: white; 42 background: white;
44 vertical-align:middle; 43 vertical-align:middle;
45 font-size: 0.4cm; 44 font-size: 0.4cm;
@@ -76,9 +75,99 @@ h1{ @@ -76,9 +75,99 @@ h1{
76 </tr> 75 </tr>
77 </table></a> 76 </table></a>
78 77
79 - <a href="testei3geo" ><table class="r"> 78 + <a href="../testainstal.php" ><table class="r">
80 <tr> 79 <tr>
81 - <td><img src="../imagens/i3geo1.png" /><br><script>document.write($trad(2,g_traducao_init));</script></a></td> 80 + <td><img src="../imagens/oxygen/22x22/application-vnd.scribus.png" /><br><script>document.write($trad(2,g_traducao_init));</script></a></td>
  81 + </tr>
  82 + </table></a>
  83 +
  84 + <a href="../admin" ><table class="r">
  85 + <tr>
  86 + <td><img src="../imagens/oxygen/22x22/preferences-system.png" /><br><script>document.write($trad(3,g_traducao_init));</script></a></td>
  87 + </tr>
  88 + </table></a>
  89 +
  90 + <a href="../interface/openlayers.htm" ><table class="r" style="box-shadow: 0 8px 10px 0 orange;">
  91 + <tr>
  92 + <td><img src="../imagens/oxygen/22x22/openlayers.png" /><br><script>document.write($trad(4,g_traducao_init));</script></a></td>
  93 + </tr>
  94 + </table></a>
  95 +
  96 + <a href="../interface/openlayersdebug.htm" ><table class="r" style="box-shadow: 0 8px 10px 0 orange;">
  97 + <tr>
  98 + <td><img src="../imagens/oxygen/22x22/openlayers.png" /><br><script>document.write($trad(5,g_traducao_init));</script></a></td>
  99 + </tr>
  100 + </table></a>
  101 +
  102 + <a href="../interface/googlemaps.phtml" ><table class="r" style="box-shadow: 0 8px 10px 0 orange;">
  103 + <tr>
  104 + <td><img src="../imagens/oxygen/22x22/googlemaps.png" /><br><script>document.write($trad(6,g_traducao_init));</script></a></td>
  105 + </tr>
  106 + </table></a>
  107 +
  108 + <a href="../interface/googleearth.phtml" ><table class="r" style="box-shadow: 0 8px 10px 0 orange;">
  109 + <tr>
  110 + <td><img src="../imagens/oxygen/22x22/googleearth.png" /><br><script>document.write($trad(7,g_traducao_init));</script></a></td>
  111 + </tr>
  112 + </table></a>
  113 +
  114 + <a href="../interface/carto_ol.htm" ><table class="r" style="box-shadow: 0 8px 10px 0 orange;">
  115 + <tr>
  116 + <td><img src="../imagens/oxygen/22x22/kspread.png" /><br><script>document.write($trad(8,g_traducao_init));</script></a></td>
  117 + </tr>
  118 + </table></a>
  119 +
  120 + <a href="../ferramentas/metaestat/editorlimites.php" ><table class="r">
  121 + <tr>
  122 + <td><img src="../imagens/oxygen/22x22/draw-freehand.png" /><br><script>document.write($trad(9,g_traducao_init));</script></a></td>
  123 + </tr>
  124 + </table></a>
  125 +
  126 + <a href="../datadownload.htm" ><table class="r">
  127 + <tr>
  128 + <td><img src="../imagens/oxygen/22x22/download.png" /><br><script>document.write($trad(10,g_traducao_init));</script></a></td>
  129 + </tr>
  130 + </table></a>
  131 +
  132 + <a href="../ogc.htm" ><table class="r">
  133 + <tr>
  134 + <td><img src="../imagens/oxygen/22x22/internet-web-browser.png" /><br><script>document.write($trad(11,g_traducao_init));</script></a></td>
  135 + </tr>
  136 + </table></a>
  137 +
  138 + <a href="../kml.php" ><table class="r">
  139 + <tr>
  140 + <td><img src="../imagens/oxygen/22x22/internet-web-browser.png" /><br><script>document.write($trad(12,g_traducao_init));</script></a></td>
  141 + </tr>
  142 + </table></a>
  143 +
  144 + <a href="../geradordelinks.htm" ><table class="r">
  145 + <tr>
  146 + <td><img src="../imagens/oxygen/22x22/preferences-web-browser-shortcuts.png" /><br><script>document.write($trad(13,g_traducao_init));</script></a></td>
  147 + </tr>
  148 + </table></a>
  149 +
  150 + <a href="../exemplos" ><table class="r">
  151 + <tr>
  152 + <td><img src="../imagens/oxygen/22x22/help-contents.png" /><br><script>document.write($trad(14,g_traducao_init));</script></a></td>
  153 + </tr>
  154 + </table></a>
  155 +
  156 + <a href="../documentacao/manual-i3geo-4_7-pt.pdf" ><table class="r">
  157 + <tr>
  158 + <td><img src="../imagens/oxygen/22x22/help-contents.png" /><br><script>document.write($trad(15,g_traducao_init));</script></a></td>
  159 + </tr>
  160 + </table></a>
  161 +
  162 + <a href="../guia_de_migracao.txt" ><table class="r">
  163 + <tr>
  164 + <td><img src="../imagens/oxygen/22x22/help-contents.png" /><br><script>document.write($trad(17,g_traducao_init));</script></a></td>
  165 + </tr>
  166 + </table></a>
  167 +
  168 + <a href="http://svn.softwarepublico.gov.br/trac/i3geo" ><table class="r">
  169 + <tr>
  170 + <td><img src="../imagens/oxygen/22x22/kbugbuster.png" /><br><script>document.write($trad(16,g_traducao_init));</script></a></td>
82 </tr> 171 </tr>
83 </table></a> 172 </table></a>
84 </body> 173 </body>
ms_criamapa.php
@@ -185,7 +185,7 @@ if(isset($tempBaseX) &amp;&amp; $tempBaseX != &quot;&quot;) @@ -185,7 +185,7 @@ if(isset($tempBaseX) &amp;&amp; $tempBaseX != &quot;&quot;)
185 //verifica se o usuario trocou a senha do master 185 //verifica se o usuario trocou a senha do master
186 //TODO incluir observacao sobre esse bloqueio no site do SPB 186 //TODO incluir observacao sobre esse bloqueio no site do SPB
187 if($_SERVER['HTTP_HOST'] != "localhost" && ($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin") ){ 187 if($_SERVER['HTTP_HOST'] != "localhost" && ($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin") ){
188 - echo "<p style='color:red;font-size:14px'>Bloqueado. ATEN&Ccedil;&Atilde;O!!! Sua seguran&ccedil;a esta vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster"; 188 + echo "<p style='font-size:14px;color:red'>Bloqueado. ATEN&Ccedil;&Atilde;O!!! Essa instala&ccedil;&atilde;o est&aacute; vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster";
189 exit; 189 exit;
190 } 190 }
191 /* 191 /*
testainstal.php
@@ -60,7 +60,7 @@ include_once(&quot;admin/php/admin.php&quot;); @@ -60,7 +60,7 @@ include_once(&quot;admin/php/admin.php&quot;);
60 include_once("admin/php/conexao.php"); 60 include_once("admin/php/conexao.php");
61 61
62 if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){ 62 if($i3geomaster[0]["usuario"] == "admin" && $i3geomaster[0]["senha"] == "admin" ){
63 - echo "<p style='color:red;font-size:14px'>ATEN&Ccedil;&Atilde;O!!! Sua seguran&ccedil;a esta vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster</p><br><br>"; 63 + echo "<p style='font-size:14px;color:red'>ATEN&Ccedil;&Atilde;O!!! Essa instala&ccedil;&atilde;o est&aacute; vulner&aacute;vel: edite o arquivo i3geo/ms_configura.php e altere o login e senha da vari&aacute;vel i3geomaster";
64 } 64 }
65 65
66 if(empty($_POST["senha"]) || empty($_POST["usuario"])){ 66 if(empty($_POST["senha"]) || empty($_POST["usuario"])){