Commit 20f33066ebfb2da07c31450ccdaa2a77031a612f

Authored by Edmar Moretti
1 parent 2b9be69d

Versão 45. sp7

admin/admin44.db 0 → 100644
No preview for this file type
admin/js/core.js
@@ -1220,7 +1220,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose) @@ -1220,7 +1220,7 @@ function core_montaEditor(funcaoOK,w,h,funcaoClose)
1220 }}} 1220 }}}
1221 ); 1221 );
1222 } 1222 }
1223 - YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: true,visible:false,constraintoviewport:true } ); 1223 + YAHOO.example.container.panelEditor = new YAHOO.widget.Panel("janela_editor", { fixedcenter:true,close:true,width:w, overflow:"auto",modal: false,visible:false,constraintoviewport:true } );
1224 YAHOO.example.container.panelEditor.render(); 1224 YAHOO.example.container.panelEditor.render();
1225 } 1225 }
1226 else 1226 else
admin/php/classe_arvore.php
@@ -458,7 +458,15 @@ Return: @@ -458,7 +458,15 @@ Return:
458 */ 458 */
459 function pegaTema($id_tema) 459 function pegaTema($id_tema)
460 { 460 {
461 - return $this->execSQL($this->sql_temas." and id_tema = '$id_tema' "); 461 + $q = $this->execSQL($this->sql_temas." and id_tema = '$id_tema' ");
  462 + if($q)
  463 + {return $q;}
  464 + else{
  465 + //caso de banco de dados antigo
  466 + $sql = "select kmz_tema,'0' as nacessos,id_tema,kml_tema,ogc_tema,download_tema,tags_tema,tipoa_tema,link_tema,desc_tema,nome_tema,codigo_tema from i3geoadmin_temas ";
  467 + $q = $this->execSQL($sql." where id_tema = '$id_tema' ");
  468 + return $q;
  469 + }
462 } 470 }
463 /* 471 /*
464 Function: pegaTemasSubGrupo 472 Function: pegaTemasSubGrupo
@@ -695,7 +703,10 @@ Return: @@ -695,7 +703,10 @@ Return:
695 //echo "<br>".$sql; 703 //echo "<br>".$sql;
696 //error_reporting(E_ALL); 704 //error_reporting(E_ALL);
697 $q = $this->dbh->query($sql,PDO::FETCH_ASSOC); 705 $q = $this->dbh->query($sql,PDO::FETCH_ASSOC);
698 - return $q->fetchAll(); 706 + if($q)
  707 + {return $q->fetchAll();}
  708 + else
  709 + {return false;}
699 } 710 }
700 /* 711 /*
701 Verifica se uma string ocorre em um array 712 Verifica se uma string ocorre em um array
testainstal.php
@@ -65,7 +65,7 @@ if(!function_exists(&quot;ms_GetVersion&quot;)) @@ -65,7 +65,7 @@ if(!function_exists(&quot;ms_GetVersion&quot;))
65 {echo "<span style=color:red >O MAPSERVER PARECE NAO ESTAR INSTALADO!!!<br><br>";} 65 {echo "<span style=color:red >O MAPSERVER PARECE NAO ESTAR INSTALADO!!!<br><br>";}
66 echo "---<br>"; 66 echo "---<br>";
67 if (get_cfg_var("allow_call_time_pass_reference") != 1){ 67 if (get_cfg_var("allow_call_time_pass_reference") != 1){
68 - echo "<span style=color:red >Problema: allow_call_time_pass_reference no php.ini deveria estar como 'On'. O i3Geo n&atilde;o ir&aacute; funcionar!!!<br></span>"; 68 + echo "<span style=color:red >Problema: allow_call_time_pass_reference no php.ini deveria estar como 'On'. O i3Geo pode n&atilde;o funcionar!!!<br></span>";
69 } 69 }
70 if (get_cfg_var("safe_mode") == 1){ 70 if (get_cfg_var("safe_mode") == 1){
71 echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo n&atilde;o ir&aacute; funcionar!!!<br></span>"; 71 echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo n&atilde;o ir&aacute; funcionar!!!<br></span>";