Commit 20f33066ebfb2da07c31450ccdaa2a77031a612f
1 parent
2b9be69d
Exists in
master
and in
7 other branches
Versão 45. sp7
Showing
4 changed files
with
15 additions
and
4 deletions
Show diff stats
No preview for this file type
admin/js/core.js
| ... | ... | @@ -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 | 1224 | YAHOO.example.container.panelEditor.render(); |
| 1225 | 1225 | } |
| 1226 | 1226 | else | ... | ... |
admin/php/classe_arvore.php
| ... | ... | @@ -458,7 +458,15 @@ Return: |
| 458 | 458 | */ |
| 459 | 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 | 472 | Function: pegaTemasSubGrupo |
| ... | ... | @@ -695,7 +703,10 @@ Return: |
| 695 | 703 | //echo "<br>".$sql; |
| 696 | 704 | //error_reporting(E_ALL); |
| 697 | 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 | 712 | Verifica se uma string ocorre em um array | ... | ... |
testainstal.php
| ... | ... | @@ -65,7 +65,7 @@ if(!function_exists("ms_GetVersion")) |
| 65 | 65 | {echo "<span style=color:red >O MAPSERVER PARECE NAO ESTAR INSTALADO!!!<br><br>";} |
| 66 | 66 | echo "---<br>"; |
| 67 | 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ão irá 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ão funcionar!!!<br></span>"; | |
| 69 | 69 | } |
| 70 | 70 | if (get_cfg_var("safe_mode") == 1){ |
| 71 | 71 | echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!<br></span>"; | ... | ... |