Commit d372b64da99d61d38cee6b834cbd3129ffbcfae9
1 parent
2caa5d0e
Exists in
master
and in
7 other branches
rss com mapas cadastrados
Showing
3 changed files
with
14 additions
and
1 deletions
Show diff stats
admin/menu.html
... | ... | @@ -115,6 +115,11 @@ |
115 | 115 | type: "text", |
116 | 116 | href: "xmlmetaestatogc.php", |
117 | 117 | target: "principal" |
118 | + },{ | |
119 | + label: "Ver RSS com a lista de mapas cadastrados", | |
120 | + type: "text", | |
121 | + href: "rssmapas.php", | |
122 | + target: "principal" | |
118 | 123 | } |
119 | 124 | ]},{ |
120 | 125 | label: "Enviar arquivo para o servidor", | ... | ... |
admin/php/xml.php
... | ... | @@ -671,6 +671,14 @@ function geraXmlMapas($perfil,$locaplic,$editores) |
671 | 671 | $dbhw = null; |
672 | 672 | return $xml; |
673 | 673 | } |
674 | +function geraRSSmapas($locaplic) | |
675 | +{ | |
676 | + global $esquemaadmin; | |
677 | + $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']); | |
678 | + $sql = "select '' as tipo_ws,linkdireto as link_ws, nome_mapa as nome_ws, '' as desc_ws, '' as autor_ws from ".$esquemaadmin."i3geoadmin_mapas WHERE linkdireto != ''"; | |
679 | + return geraXmlRSS($locaplic,$sql,"Mapas cadastrados"); | |
680 | +} | |
681 | + | |
674 | 682 | // |
675 | 683 | //$id_menu = id do menu que será montado |
676 | 684 | //$perfil = perfis separados por espaços | ... | ... |
admin/xmlmapas.php