Commit 0d58b059614f860f62166f72cd8c81cea78bd2cc
1 parent
2e62b822
Exists in
master
and in
7 other branches
Inclusão de openhub na página de abertura
Showing
5 changed files
with
48 additions
and
34 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/classe_arvore.php
| ... | ... | @@ -21,7 +21,7 @@ Este programa é distribuído na expectativa de que seja útil |
| 21 | 21 | porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita |
| 22 | 22 | de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. |
| 23 | 23 | Consulte a Licença Pública Geral do GNU para mais detalhes. |
| 24 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 24 | +Você deve ter recebido uma c�pia da Licença Pública Geral do | |
| 25 | 25 | GNU junto com este programa; se não, escreva para a |
| 26 | 26 | Free Software Foundation, Inc., no endereço |
| 27 | 27 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| ... | ... | @@ -117,7 +117,7 @@ class Arvore |
| 117 | 117 | // |
| 118 | 118 | $this->editor = false; |
| 119 | 119 | $this->editor = $this->verificaOperacaoSessao("admin/php/classe_arvore/editor"); |
| 120 | - $this->pubsql = " (publicado != 'NAO' or publicado isnull) and "; | |
| 120 | + $this->pubsql = " (publicado != 'NAO' or publicado is null) and "; | |
| 121 | 121 | if($this->editor){ |
| 122 | 122 | $this->pubsql = ""; |
| 123 | 123 | } |
| ... | ... | @@ -172,7 +172,7 @@ class Arvore |
| 172 | 172 | $sql = "SELECT publicado_menu,'' as perfil_menu,aberto,desc_menu,id_menu,$coluna as nome_menu from ".$this->esquemaadmin."i3geoadmin_menus order by nome_menu"; |
| 173 | 173 | } |
| 174 | 174 | else{ |
| 175 | - $sql = "SELECT publicado_menu,perfil_menu,aberto,desc_menu,id_menu,$coluna as nome_menu from ".$this->esquemaadmin."i3geoadmin_menus where publicado_menu != 'NAO' or publicado_menu isnull order by nome_menu"; | |
| 175 | + $sql = "SELECT publicado_menu,perfil_menu,aberto,desc_menu,id_menu,$coluna as nome_menu from ".$this->esquemaadmin."i3geoadmin_menus where publicado_menu != 'NAO' or publicado_menu is null order by nome_menu"; | |
| 176 | 176 | } |
| 177 | 177 | $regs = $this->execSQL($sql); |
| 178 | 178 | $resultado = array(); |
| ... | ... | @@ -923,18 +923,18 @@ class Arvore |
| 923 | 923 | */ |
| 924 | 924 | function removeAcentos($s) |
| 925 | 925 | { |
| 926 | - $s = ereg_replace("[áàâã]","a",$s); | |
| 927 | - $s = ereg_replace("[ÁÀÂÃ]","A",$s); | |
| 928 | - $s = ereg_replace("[éèê]","e",$s); | |
| 929 | - $s = ereg_replace("[í]","i",$s); | |
| 930 | - $s = ereg_replace("[Í]","I",$s); | |
| 931 | - $s = ereg_replace("[ÊÈÊ]","E",$s); | |
| 932 | - $s = ereg_replace("[óòôõ]","o",$s); | |
| 933 | - $s = ereg_replace("[ÓÒÔÕ]","O",$s); | |
| 934 | - $s = ereg_replace("[úùû]","u",$s); | |
| 935 | - $s = ereg_replace("[ÚÙÛ]","U",$s); | |
| 936 | - $s = str_replace("ç","c",$s); | |
| 937 | - $s = str_replace("Ç","C",$s); | |
| 926 | + $s = ereg_replace("[����]","a",$s); | |
| 927 | + $s = ereg_replace("[����]","A",$s); | |
| 928 | + $s = ereg_replace("[���]","e",$s); | |
| 929 | + $s = ereg_replace("[�]","i",$s); | |
| 930 | + $s = ereg_replace("[�]","I",$s); | |
| 931 | + $s = ereg_replace("[���]","E",$s); | |
| 932 | + $s = ereg_replace("[����]","o",$s); | |
| 933 | + $s = ereg_replace("[����]","O",$s); | |
| 934 | + $s = ereg_replace("[���]","u",$s); | |
| 935 | + $s = ereg_replace("[���]","U",$s); | |
| 936 | + $s = str_replace("�","c",$s); | |
| 937 | + $s = str_replace("�","C",$s); | |
| 938 | 938 | //$str = htmlentities($s); |
| 939 | 939 | $str = preg_replace("/(&)([a-z])([a-z]+;)/i", '$2', $s); |
| 940 | 940 | $str = preg_replace("/[^A-Z0-9]/i", ' ', $str); | ... | ... |
admin/php/classe_metaestat.php
| ... | ... | @@ -2174,7 +2174,7 @@ class Metaestat{ |
| 2174 | 2174 | function tabelasEsquema($codigo_estat_conexao,$nome_esquema,$excluigeom=""){ |
| 2175 | 2175 | $sql = "SELECT table_name as tabela FROM information_schema.tables where table_schema = '$nome_esquema'"; |
| 2176 | 2176 | if(strtolower($excluigeom) == "sim"){ |
| 2177 | - $sql = "SELECT c.table_name as tabela FROM information_schema.tables as c left join (SELECT distinct a.table_name FROM information_schema.tables as a left join information_schema.columns as b on a.table_name = b.table_name where a.table_schema = '$nome_esquema' and udt_name = 'geometry' ) as d on c.table_name = d.table_name where c.table_schema = '$nome_esquema' and d.table_name isnull"; | |
| 2177 | + $sql = "SELECT c.table_name as tabela FROM information_schema.tables as c left join (SELECT distinct a.table_name FROM information_schema.tables as a left join information_schema.columns as b on a.table_name = b.table_name where a.table_schema = '$nome_esquema' and udt_name = 'geometry' ) as d on c.table_name = d.table_name where c.table_schema = '$nome_esquema' and d.table_name is null"; | |
| 2178 | 2178 | } |
| 2179 | 2179 | return $this->execSQLDB($codigo_estat_conexao,$sql); |
| 2180 | 2180 | } | ... | ... |
init/index.php
| ... | ... | @@ -119,7 +119,7 @@ a { |
| 119 | 119 | <div id="bandeiras"></div> |
| 120 | 120 | <div class="bordaSuperior" style="z-index: 1;"> </div> |
| 121 | 121 | |
| 122 | - <div class="mascaraPrincipal" style="max-width: 718pt"> | |
| 122 | + <div class="mascaraPrincipal" style="max-width: 718pt;"> | |
| 123 | 123 | <div id="conteudo" style="position: relative; top: -10px; margin: 0 0 0.2cm 0.2cm;"> |
| 124 | 124 | <div style="margin-top: 0px;"> |
| 125 | 125 | <?php |
| ... | ... | @@ -128,25 +128,39 @@ a { |
| 128 | 128 | } |
| 129 | 129 | ?> |
| 130 | 130 | <div id="botoes"></div> |
| 131 | - </div> | |
| 132 | - | |
| 133 | 131 | |
| 132 | + <a class="r"><table><tbody><tr><td> | |
| 133 | + <script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_users.js?style=gray"></script> | |
| 134 | + </td></tr></tbody></table></a> | |
| 135 | + </div> | |
| 134 | 136 | <div style="float: left"> |
| 135 | - <a href="#" class="r" style="width: 230px; height: 380px"><table> | |
| 137 | + <a href="#" class="r" style="width: 230px; height: 380px;"> | |
| 138 | + <table> | |
| 136 | 139 | <tr> |
| 137 | 140 | <td><a class="twitter-timeline" href="https://twitter.com/i3geo" data-widget-id="288061915689787392" width="220" height="350">Tweets @i3Geo</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> |
| 138 | 141 | </td> |
| 139 | 142 | </tr> |
| 140 | - </table> </a> <a href="#" class="r" style="width: 230px; height: 380px"><table> | |
| 143 | + </table> | |
| 144 | + </a> <a href="#" class="r" style="width: 230px; height: 380px;"> | |
| 145 | + <table> | |
| 141 | 146 | <tr> |
| 142 | 147 | <td><a class="twitter-timeline" href="https://twitter.com/search?q=@i3geo" data-widget-id="288053202174222336" width="220" height="350">Tweets #i3Geo</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script> |
| 143 | 148 | </td> |
| 144 | 149 | </tr> |
| 145 | - </table> </a> | |
| 150 | + </table> | |
| 151 | + </a> | |
| 152 | + <a href="#" class="r" style="width: 345px; height: 220px;"> | |
| 153 | + <table> | |
| 154 | + <tr> | |
| 155 | + <td> | |
| 156 | + <script type="text/javascript" src="http://www.openhub.net/p/150688/widgets/project_basic_stats.js"></script> | |
| 157 | + </td> | |
| 158 | + </tr> | |
| 159 | + </table> | |
| 160 | + </a> | |
| 146 | 161 | </div> |
| 147 | - | |
| 148 | 162 | </div> |
| 149 | - | |
| 163 | + </div> | |
| 150 | 164 | </center> |
| 151 | 165 | </body> |
| 152 | 166 | <script> | ... | ... |
kml.php
| ... | ... | @@ -23,7 +23,7 @@ Este programa &eacute; distribu&iacute;do na expectativa de que seja &uacute;til |
| 23 | 23 | porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita |
| 24 | 24 | de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. |
| 25 | 25 | Consulte a Licença Pública Geral do GNU para mais detalhes. |
| 26 | -Você deve ter recebido uma cópia da Licença Pública Geral do | |
| 26 | +Você deve ter recebido uma c�pia da Licença Pública Geral do | |
| 27 | 27 | GNU junto com este programa; se não, escreva para a |
| 28 | 28 | Free Software Foundation, Inc., no endereço |
| 29 | 29 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
| ... | ... | @@ -81,7 +81,7 @@ if($idioma == "pt") |
| 81 | 81 | {$coluna = "nome_menu";} |
| 82 | 82 | else |
| 83 | 83 | {$coluna = $idioma;} |
| 84 | -$menus = pegaDados("SELECT publicado_menu,perfil_menu,aberto,desc_menu,id_menu,$coluna as nome_menu from ".$esquemaadmin."i3geoadmin_menus where lower(publicado_menu) != 'nao' or publicado_menu isnull order by nome_menu "); | |
| 84 | +$menus = pegaDados("SELECT publicado_menu,perfil_menu,aberto,desc_menu,id_menu,$coluna as nome_menu from ".$esquemaadmin."i3geoadmin_menus where lower(publicado_menu) != 'nao' or publicado_menu is null order by nome_menu "); | |
| 85 | 85 | foreach($menus as $menu){ |
| 86 | 86 | kml_cabecalho($menu["nome_menu"],$menu["desc_menu"]); |
| 87 | 87 | $id_menu = $menu["id_menu"]; |
| ... | ... | @@ -90,7 +90,7 @@ foreach($menus as $menu){ |
| 90 | 90 | {$coluna = "nome_tema";} |
| 91 | 91 | else |
| 92 | 92 | {$coluna = $idioma;} |
| 93 | - $sql = "select id_raiz,i3geoadmin_raiz.id_tema,$coluna as nome_tema,tipoa_tema,codigo_tema,kmz_tema FROM ".$esquemaadmin."i3geoadmin_raiz LEFT JOIN ".$esquemaadmin."i3geoadmin_temas ON i3geoadmin_temas.id_tema = i3geoadmin_raiz.id_tema where (lower(i3geoadmin_temas.tipoa_tema) != 'wms' or i3geoadmin_temas.tipoa_tema isnull) and (lower(i3geoadmin_temas.kml_tema) != 'nao' or i3geoadmin_temas.kml_tema isnull) and i3geoadmin_temas.tipoa_tema != 'WMS' and i3geoadmin_temas.kml_tema != 'nao' and i3geoadmin_raiz.id_menu='$id_menu' and i3geoadmin_raiz.nivel = 0 and i3geoadmin_raiz.id_nivel = 0 order by ordem"; | |
| 93 | + $sql = "select id_raiz,i3geoadmin_raiz.id_tema,$coluna as nome_tema,tipoa_tema,codigo_tema,kmz_tema FROM ".$esquemaadmin."i3geoadmin_raiz LEFT JOIN ".$esquemaadmin."i3geoadmin_temas ON i3geoadmin_temas.id_tema = i3geoadmin_raiz.id_tema where (lower(i3geoadmin_temas.tipoa_tema) != 'wms' or i3geoadmin_temas.tipoa_tema is null) and (lower(i3geoadmin_temas.kml_tema) != 'nao' or i3geoadmin_temas.kml_tema isnull) and i3geoadmin_temas.tipoa_tema != 'WMS' and i3geoadmin_temas.kml_tema != 'nao' and i3geoadmin_raiz.id_menu='$id_menu' and i3geoadmin_raiz.nivel = 0 and i3geoadmin_raiz.id_nivel = 0 order by ordem"; | |
| 94 | 94 | $temas = pegaDados($sql); |
| 95 | 95 | if(count($temas) > 0){ |
| 96 | 96 | foreach ($temas as $tema) |
| ... | ... | @@ -102,7 +102,7 @@ foreach($menus as $menu){ |
| 102 | 102 | else{ |
| 103 | 103 | $coluna = $idioma; |
| 104 | 104 | } |
| 105 | - $grupos = pegaDados("SELECT $coluna as nome_grupo,n1.id_n1,n1.id_grupo,gr.desc_grupo from ".$esquemaadmin."i3geoadmin_n1 as n1,".$esquemaadmin."i3geoadmin_grupos as gr where (lower(n1.publicado) != 'nao' or n1.publicado isnull) and n1.id_menu = '$id_menu' and n1.id_grupo = gr.id_grupo order by gr.nome_grupo"); | |
| 105 | + $grupos = pegaDados("SELECT $coluna as nome_grupo,n1.id_n1,n1.id_grupo,gr.desc_grupo from ".$esquemaadmin."i3geoadmin_n1 as n1,".$esquemaadmin."i3geoadmin_grupos as gr where (lower(n1.publicado) != 'nao' or n1.publicado is null) and n1.id_menu = '$id_menu' and n1.id_grupo = gr.id_grupo order by gr.nome_grupo"); | |
| 106 | 106 | foreach($grupos as $grupo){ |
| 107 | 107 | kml_cabecalho($grupo["nome_grupo"],$grupo["desc_grupo"]); |
| 108 | 108 | $id_grupo = $grupo["id_grupo"]; |
| ... | ... | @@ -126,8 +126,8 @@ foreach($menus as $menu){ |
| 126 | 126 | $sql = "select s.$coluna as nome_subgrupo,n2.id_n2 from ".$esquemaadmin."i3geoadmin_n2 as n2,".$esquemaadmin."i3geoadmin_n1 as n1, ".$esquemaadmin."i3geoadmin_subgrupos as s "; |
| 127 | 127 | $sql .= "where n1.id_grupo = '$id_grupo' and n2.id_subgrupo = s.id_subgrupo "; |
| 128 | 128 | $sql .= "and n2.id_n1 = n1.id_n1 "; |
| 129 | - $sql .= "and (n1.n1_perfil = '' or n1.n1_perfil isnull) and (n2.n2_perfil = '' or n2.n2_perfil isnull) "; | |
| 130 | - $sql .= "and (lower(n2.publicado) != 'nao' or n2.publicado isnull) "; | |
| 129 | + $sql .= "and (n1.n1_perfil = '' or n1.n1_perfil is null) and (n2.n2_perfil = '' or n2.n2_perfil isnull) "; | |
| 130 | + $sql .= "and (lower(n2.publicado) != 'nao' or n2.publicado is null) "; | |
| 131 | 131 | $sql .= "order by s.nome_subgrupo"; |
| 132 | 132 | $subgrupos = pegaDados($sql); |
| 133 | 133 | if($idioma == "pt"){ |
| ... | ... | @@ -141,10 +141,10 @@ foreach($menus as $menu){ |
| 141 | 141 | $sql = "select t.codigo_tema,t.$coluna as nome_tema,t.link_tema, t.desc_tema, t.kmz_tema from ".$esquemaadmin."i3geoadmin_n3 as n3,".$esquemaadmin."i3geoadmin_temas as t where "; |
| 142 | 142 | $sql .= "n3.id_n2='$id_n2' "; |
| 143 | 143 | $sql .= "and n3.id_tema = t.id_tema "; |
| 144 | - $sql .= "and (n3_perfil = '' or n3_perfil isnull) "; | |
| 145 | - $sql .= "and (lower(t.kml_tema) != 'nao' or t.kml_tema isnull)"; | |
| 146 | - $sql .= "and (lower(t.tipoa_tema) != 'wms' or t.tipoa_tema isnull)"; | |
| 147 | - $sql .= "and (lower(n3.publicado) != 'nao' or n3.publicado isnull) "; | |
| 144 | + $sql .= "and (n3_perfil = '' or n3_perfil is null) "; | |
| 145 | + $sql .= "and (lower(t.kml_tema) != 'nao' or t.kml_tema is null)"; | |
| 146 | + $sql .= "and (lower(t.tipoa_tema) != 'wms' or t.tipoa_tema is null)"; | |
| 147 | + $sql .= "and (lower(n3.publicado) != 'nao' or n3.publicado is null) "; | |
| 148 | 148 | $temas = pegadados($sql); |
| 149 | 149 | kml_folder($subgrupo["nome_subgrupo"]); |
| 150 | 150 | if(count($temas) > 0){ | ... | ... |