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,6 +115,11 @@ | ||
115 | type: "text", | 115 | type: "text", |
116 | href: "xmlmetaestatogc.php", | 116 | href: "xmlmetaestatogc.php", |
117 | target: "principal" | 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 | label: "Enviar arquivo para o servidor", | 125 | label: "Enviar arquivo para o servidor", |
admin/php/xml.php
@@ -671,6 +671,14 @@ function geraXmlMapas($perfil,$locaplic,$editores) | @@ -671,6 +671,14 @@ function geraXmlMapas($perfil,$locaplic,$editores) | ||
671 | $dbhw = null; | 671 | $dbhw = null; |
672 | return $xml; | 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 | //$id_menu = id do menu que será montado | 683 | //$id_menu = id do menu que será montado |
676 | //$perfil = perfis separados por espaços | 684 | //$perfil = perfis separados por espaços |
admin/xmlmapas.php
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | /* | 2 | /* |
3 | Title: xmlmapas | 3 | Title: xmlmapas |
4 | 4 | ||
5 | -Monta um arquivo XML, no padrão RSS, contendo a lista de links para outros mapas. | 5 | +Monta um arquivo XML contendo a lista de links para outros mapas. |
6 | 6 | ||
7 | <http://localhost/i3geo/admin/xmlmapas.php> | 7 | <http://localhost/i3geo/admin/xmlmapas.php> |
8 | 8 |