diff --git a/admin/admin.db b/admin/admin.db
index 164aef1..6d9d82c 100644
Binary files a/admin/admin.db and b/admin/admin.db differ
diff --git a/classesphp/lews/wms_functions.php b/classesphp/lews/wms_functions.php
index 2e74a9e..3b6ed63 100644
--- a/classesphp/lews/wms_functions.php
+++ b/classesphp/lews/wms_functions.php
@@ -1,4 +1,4 @@
-
+item($i)->tagName;
$tvalor = $noslayer->item($i)->nodeValue;
if($tnome){
+ //echo "
".$tnome;
if ($tnome == "Title")
{$resultado["titulo"] = $tvalor;}
if ($tnome == "Name")
{$resultado["nome"] = $tvalor;}
if ($tnome == "Abstract")
{$resultado["resumo"] = $tvalor;}
- if ($tnome == "Style"){
+
+ if ($tnome == "StyleXXXX"){
$ss = $noslayer->item($i)->childNodes;
$ssl = $ss->length;
+ $n = "";
+ $t = "";
for ($s = 0; $s < $ssl; $s++)
{
$snome = $ss->item($s)->tagName;
$svalor = $ss->item($s)->nodeValue;
- if($snome)
+ if($snome && $svalor)
{
if ($snome == "Title")
{$t=$svalor;}
@@ -598,9 +602,13 @@ function pegaTag($layer)
{$n=$svalor;}
}
}
- $resultado["estilos"][] = array("nome"=>$n,"titulo"=>$t);
+ //echo "
";echo $n; + if($n != ""){ + array_push($resultado["estilos"],array("nome"=>$n,"titulo"=>$t)); + } } - $resultado["tags"][] = $tnome; + array_push($resultado["tags"],$tnome); + //echo "";var_dump($resultado); } } return $resultado; @@ -1063,4 +1071,4 @@ function wms_layer4html( $layer ) { return $html; } -?> \ No newline at end of file +?> -- libgit2 0.21.2