Commit 4dde11dab29666ecd1b4b7bc56f6576cbc4fa3d2
1 parent
b6179b68
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
10 additions
and
9 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/xml.php
@@ -162,9 +162,9 @@ Parametros: | @@ -162,9 +162,9 @@ Parametros: | ||
162 | 162 | ||
163 | locaplic {string} - localização do i3Geo no sistema de arquivos | 163 | locaplic {string} - localização do i3Geo no sistema de arquivos |
164 | 164 | ||
165 | -id {string} - c�digo do n� | 165 | +id {string} - codigo do no |
166 | 166 | ||
167 | -nivel {string} - nível do n� | 167 | +nivel {string} - nível do no |
168 | 168 | ||
169 | Retorno: | 169 | Retorno: |
170 | 170 | ||
@@ -503,7 +503,7 @@ function geraXmlRSS($locaplic,$sql,$descricao) | @@ -503,7 +503,7 @@ function geraXmlRSS($locaplic,$sql,$descricao) | ||
503 | $link = xmlTexto_prepara($row["link_ws"]); | 503 | $link = xmlTexto_prepara($row["link_ws"]); |
504 | if(stristr($link, 'http') === FALSE) | 504 | if(stristr($link, 'http') === FALSE) |
505 | {$link = "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["REQUEST_URI"])."/".$link;} | 505 | {$link = "http://".$_SERVER["HTTP_HOST"].dirname($_SERVER["REQUEST_URI"])."/".$link;} |
506 | - $xml .= "<link>".$link."</link>\n"; | 506 | + $xml .= "<link><![CDATA[".$link."]]></link>\n"; |
507 | $xml .= "<pubDate/>\n"; | 507 | $xml .= "<pubDate/>\n"; |
508 | $xml .= "<author>".xmlTexto_prepara($row["autor_ws"])."</author>\n"; | 508 | $xml .= "<author>".xmlTexto_prepara($row["autor_ws"])."</author>\n"; |
509 | $xml .= "<nacessos></nacessos>\n"; | 509 | $xml .= "<nacessos></nacessos>\n"; |
@@ -548,7 +548,7 @@ function geraXmlAtlas($locaplic,$editores) | @@ -548,7 +548,7 @@ function geraXmlAtlas($locaplic,$editores) | ||
548 | $xml .= " <TITULO>".xmlTexto_prepara($row["titulo_atlas"])."</TITULO>\n"; | 548 | $xml .= " <TITULO>".xmlTexto_prepara($row["titulo_atlas"])."</TITULO>\n"; |
549 | $xml .= " <DESCRICAO>".xmlTexto_prepara($row["desc_atlas"])."</DESCRICAO>\n"; | 549 | $xml .= " <DESCRICAO>".xmlTexto_prepara($row["desc_atlas"])."</DESCRICAO>\n"; |
550 | $xml .= " <ICONE>".$row["icone_atlas"]."</ICONE>\n"; | 550 | $xml .= " <ICONE>".$row["icone_atlas"]."</ICONE>\n"; |
551 | - $xml .= " <LINKMAISINFO>".xmlTexto_prepara($row["link_atlas"])."</LINKMAISINFO>\n"; | 551 | + $xml .= " <LINKMAISINFO><![CDATA[".xmlTexto_prepara($row["link_atlas"])."]]></LINKMAISINFO>\n"; |
552 | $xml .= " <TEMPLATEHTML>".xmlTexto_prepara($row["template_atlas"])."</TEMPLATEHTML>\n"; | 552 | $xml .= " <TEMPLATEHTML>".xmlTexto_prepara($row["template_atlas"])."</TEMPLATEHTML>\n"; |
553 | $xml .= " <WABERTURA>".$row["w_atlas"]."</WABERTURA>\n"; | 553 | $xml .= " <WABERTURA>".$row["w_atlas"]."</WABERTURA>\n"; |
554 | $xml .= " <HABERTURA>".$row["h_atlas"]."</HABERTURA>\n"; | 554 | $xml .= " <HABERTURA>".$row["h_atlas"]."</HABERTURA>\n"; |
@@ -652,13 +652,13 @@ function geraXmlMapas($perfil,$locaplic,$editores) | @@ -652,13 +652,13 @@ function geraXmlMapas($perfil,$locaplic,$editores) | ||
652 | $extensao = $row["ext_mapa"]; | 652 | $extensao = $row["ext_mapa"]; |
653 | $xml .= " <EXTENSAO>".$extensao."</EXTENSAO>\n"; | 653 | $xml .= " <EXTENSAO>".$extensao."</EXTENSAO>\n"; |
654 | $outros = xmlTexto_prepara($row["outros_mapa"]); | 654 | $outros = xmlTexto_prepara($row["outros_mapa"]); |
655 | - $xml .= " <OUTROS>".$outros."</OUTROS>\n"; | 655 | + $xml .= " <OUTROS><![CDATA[".$outros."]]></OUTROS>\n"; |
656 | $linkdireto = xmlTexto_prepara($row["linkdireto_mapa"]); | 656 | $linkdireto = xmlTexto_prepara($row["linkdireto_mapa"]); |
657 | if(empty($linkdireto)){ | 657 | if(empty($linkdireto)){ |
658 | $linkdireto = $url."/ms_criamapa.php?mapext=".$extensao."&perfil=".$perfil."&temasa=".$temas."&layers=".$ligados.$row["outros_mapa"]; | 658 | $linkdireto = $url."/ms_criamapa.php?mapext=".$extensao."&perfil=".$perfil."&temasa=".$temas."&layers=".$ligados.$row["outros_mapa"]; |
659 | $linkdireto = xmlTexto_prepara($linkdireto); | 659 | $linkdireto = xmlTexto_prepara($linkdireto); |
660 | } | 660 | } |
661 | - $xml .= " <LINKDIRETO>".$linkdireto."</LINKDIRETO>\n"; | 661 | + $xml .= " <LINKDIRETO><![CDATA[".$linkdireto."]]></LINKDIRETO>\n"; |
662 | $xml .= " <PUBLICADO>".$row["publicado_mapa"]."</PUBLICADO>\n"; | 662 | $xml .= " <PUBLICADO>".$row["publicado_mapa"]."</PUBLICADO>\n"; |
663 | $xml .= " <ID_MAPA>".$row["id_mapa"]."</ID_MAPA>\n"; | 663 | $xml .= " <ID_MAPA>".$row["id_mapa"]."</ID_MAPA>\n"; |
664 | if($row["mapfile"] != ""){ | 664 | if($row["mapfile"] != ""){ |
@@ -810,7 +810,7 @@ function geraXmlMenutemas_notema($qtemas,$xml,$perfil) | @@ -810,7 +810,7 @@ function geraXmlMenutemas_notema($qtemas,$xml,$perfil) | ||
810 | $xml .= "<PERFIL>".$row["perfil"]."</PERFIL>\n"; | 810 | $xml .= "<PERFIL>".$row["perfil"]."</PERFIL>\n"; |
811 | $xml .= "<TNOME>".xmlTexto_prepara($row["nome_tema"])."</TNOME>\n"; | 811 | $xml .= "<TNOME>".xmlTexto_prepara($row["nome_tema"])."</TNOME>\n"; |
812 | $xml .= "<TDESC>".xmlTexto_prepara($row["desc_tema"])."</TDESC>\n"; | 812 | $xml .= "<TDESC>".xmlTexto_prepara($row["desc_tema"])."</TDESC>\n"; |
813 | - $xml .= "<TLINK>".xmlTexto_prepara($row["link_tema"])."</TLINK>\n"; | 813 | + $xml .= "<TLINK><![CDATA[".xmlTexto_prepara($row["link_tema"])."]]></TLINK>\n"; |
814 | $xml .= "<TIPOA>".$row["tipoa_tema"]."</TIPOA>\n"; | 814 | $xml .= "<TIPOA>".$row["tipoa_tema"]."</TIPOA>\n"; |
815 | $xml .= "<TAGS>".xmlTexto_prepara($row["tags_tema"])."</TAGS>\n"; | 815 | $xml .= "<TAGS>".xmlTexto_prepara($row["tags_tema"])."</TAGS>\n"; |
816 | $xml .= "<KML>".$row["kml_tema"]."</KML>\n"; | 816 | $xml .= "<KML>".$row["kml_tema"]."</KML>\n"; |
@@ -837,7 +837,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) | @@ -837,7 +837,7 @@ function geraXmlAtlas_pegapranchas($xml,$id_atlas,$dbh) | ||
837 | $xml .= " <TITULO>".xmlTexto_prepara($row["titulo_prancha"])."</TITULO>\n"; | 837 | $xml .= " <TITULO>".xmlTexto_prepara($row["titulo_prancha"])."</TITULO>\n"; |
838 | $xml .= " <DESCRICAO>".xmlTexto_prepara($row["desc_prancha"])."</DESCRICAO>\n"; | 838 | $xml .= " <DESCRICAO>".xmlTexto_prepara($row["desc_prancha"])."</DESCRICAO>\n"; |
839 | $xml .= " <ICONE>".$row["icone_prancha"]."</ICONE>\n"; | 839 | $xml .= " <ICONE>".$row["icone_prancha"]."</ICONE>\n"; |
840 | - $xml .= " <LINKMAISINFO>".xmlTexto_prepara($row["link_prancha"])."</LINKMAISINFO>\n"; | 840 | + $xml .= " <LINKMAISINFO><![CDATA[".xmlTexto_prepara($row["link_prancha"])."]]></LINKMAISINFO>\n"; |
841 | $xml .= " <WABERTURA>".$row["w_prancha"]."</WABERTURA>\n"; | 841 | $xml .= " <WABERTURA>".$row["w_prancha"]."</WABERTURA>\n"; |
842 | $xml .= " <HABERTURA>".$row["h_prancha"]."</HABERTURA>\n"; | 842 | $xml .= " <HABERTURA>".$row["h_prancha"]."</HABERTURA>\n"; |
843 | $xml .= " <MAPEXT>".$row["mapext_prancha"]."</MAPEXT>\n"; | 843 | $xml .= " <MAPEXT>".$row["mapext_prancha"]."</MAPEXT>\n"; |
classesphp/classe_menutemas.php
@@ -247,6 +247,7 @@ array | @@ -247,6 +247,7 @@ array | ||
247 | include_once($this->locaplic."/admin/php/xml.php"); | 247 | include_once($this->locaplic."/admin/php/xml.php"); |
248 | $this->xml = simplexml_load_string(geraXmlMapas(implode(" ",$this->perfil),$this->locaplic)); | 248 | $this->xml = simplexml_load_string(geraXmlMapas(implode(" ",$this->perfil),$this->locaplic)); |
249 | } | 249 | } |
250 | + //print_r($this->xml);exit; | ||
250 | $mapas = array(); | 251 | $mapas = array(); |
251 | //pega os sistemas checando os perfis | 252 | //pega os sistemas checando os perfis |
252 | foreach($this->xml->MAPA as $s) | 253 | foreach($this->xml->MAPA as $s) |
@@ -714,4 +715,4 @@ nrss - (opcional) n&uacute;mero de registros no rss que ser&atilde;o considerado | @@ -714,4 +715,4 @@ nrss - (opcional) n&uacute;mero de registros no rss que ser&atilde;o considerado | ||
714 | return mb_convert_encoding($texto,"HTML-ENTITIES","auto"); | 715 | return mb_convert_encoding($texto,"HTML-ENTITIES","auto"); |
715 | } | 716 | } |
716 | } | 717 | } |
717 | -?> | ||
718 | \ No newline at end of file | 718 | \ No newline at end of file |
719 | +?> |