From 0d58b059614f860f62166f72cd8c81cea78bd2cc Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Mon, 1 Sep 2014 12:32:27 +0000 Subject: [PATCH] Inclusão de openhub na página de abertura --- admin/admin.db | Bin 263168 -> 0 bytes admin/php/classe_arvore.php | 30 +++++++++++++++--------------- admin/php/classe_metaestat.php | 2 +- init/index.php | 30 ++++++++++++++++++++++-------- kml.php | 20 ++++++++++---------- 5 files changed, 48 insertions(+), 34 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index 774dfbe..f66857d 100644 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/admin/php/classe_arvore.php b/admin/php/classe_arvore.php index 825a0f1..cd444d9 100644 --- a/admin/php/classe_arvore.php +++ b/admin/php/classe_arvore.php @@ -21,7 +21,7 @@ Este programa é distribuído na expectativa de que seja útil porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. Consulte a Licença Pública Geral do GNU para mais detalhes. -Você deve ter recebido uma cópia da Licença Pública Geral do +Você deve ter recebido uma c�pia da Licença Pública Geral do GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. @@ -117,7 +117,7 @@ class Arvore // $this->editor = false; $this->editor = $this->verificaOperacaoSessao("admin/php/classe_arvore/editor"); - $this->pubsql = " (publicado != 'NAO' or publicado isnull) and "; + $this->pubsql = " (publicado != 'NAO' or publicado is null) and "; if($this->editor){ $this->pubsql = ""; } @@ -172,7 +172,7 @@ class Arvore $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"; } else{ - $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"; + $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"; } $regs = $this->execSQL($sql); $resultado = array(); @@ -923,18 +923,18 @@ class Arvore */ function removeAcentos($s) { - $s = ereg_replace("[áàâã]","a",$s); - $s = ereg_replace("[ÁÀÂÃ]","A",$s); - $s = ereg_replace("[éèê]","e",$s); - $s = ereg_replace("[í]","i",$s); - $s = ereg_replace("[Í]","I",$s); - $s = ereg_replace("[ÊÈÊ]","E",$s); - $s = ereg_replace("[óòôõ]","o",$s); - $s = ereg_replace("[ÓÒÔÕ]","O",$s); - $s = ereg_replace("[úùû]","u",$s); - $s = ereg_replace("[ÚÙÛ]","U",$s); - $s = str_replace("ç","c",$s); - $s = str_replace("Ç","C",$s); + $s = ereg_replace("[����]","a",$s); + $s = ereg_replace("[����]","A",$s); + $s = ereg_replace("[���]","e",$s); + $s = ereg_replace("[�]","i",$s); + $s = ereg_replace("[�]","I",$s); + $s = ereg_replace("[���]","E",$s); + $s = ereg_replace("[����]","o",$s); + $s = ereg_replace("[����]","O",$s); + $s = ereg_replace("[���]","u",$s); + $s = ereg_replace("[���]","U",$s); + $s = str_replace("�","c",$s); + $s = str_replace("�","C",$s); //$str = htmlentities($s); $str = preg_replace("/(&)([a-z])([a-z]+;)/i", '$2', $s); $str = preg_replace("/[^A-Z0-9]/i", ' ', $str); diff --git a/admin/php/classe_metaestat.php b/admin/php/classe_metaestat.php index 5eb33e1..6000237 100755 --- a/admin/php/classe_metaestat.php +++ b/admin/php/classe_metaestat.php @@ -2174,7 +2174,7 @@ class Metaestat{ function tabelasEsquema($codigo_estat_conexao,$nome_esquema,$excluigeom=""){ $sql = "SELECT table_name as tabela FROM information_schema.tables where table_schema = '$nome_esquema'"; if(strtolower($excluigeom) == "sim"){ - $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"; + $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"; } return $this->execSQLDB($codigo_estat_conexao,$sql); } diff --git a/init/index.php b/init/index.php index 87a14ea..99a3a5b 100755 --- a/init/index.php +++ b/init/index.php @@ -119,7 +119,7 @@ a {
 
-
+
-
- +
+ +
+
- + +
-
+
+
+ -
+ + + + + + + +
+ +
+
-
- +