Commit 836b88588d5edb2744702bc159ca94cc960926f5
1 parent
9c2152e5
Exists in
master
and in
7 other branches
Alteração no ordenamento da lista de WMS
Showing
3 changed files
with
5 additions
and
3 deletions
Show diff stats
admin/php/conexaomma.php
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | try | 2 | try |
| 3 | { | 3 | { |
| 4 | $dbh = new PDO('pgsql:dbname=geodados;user=geodados;password=geodados;host=pgsql1.mma.gov.br'); | 4 | $dbh = new PDO('pgsql:dbname=geodados;user=geodados;password=geodados;host=pgsql1.mma.gov.br'); |
| 5 | - $dbhw = new PDO('pgsql:dbname=geodados;user=pgsql;password=pgsql;host=dsvmapas.mma.gov.br'); | 5 | + $dbhw = new PDO('pgsql:dbname=geodados;user=pgsql;password=pgsql;host=pgsql1.mma.gov.br'); |
| 6 | } | 6 | } |
| 7 | catch (PDOException $e) | 7 | catch (PDOException $e) |
| 8 | { | 8 | { |
| @@ -10,4 +10,4 @@ catch (PDOException $e) | @@ -10,4 +10,4 @@ catch (PDOException $e) | ||
| 10 | die(); | 10 | die(); |
| 11 | } | 11 | } |
| 12 | $convUTF = false; | 12 | $convUTF = false; |
| 13 | -?> | ||
| 14 | \ No newline at end of file | 13 | \ No newline at end of file |
| 14 | +?> |
admin/php/webservices.php
| @@ -127,6 +127,7 @@ function adicionaAcesso($id_ws,$sucesso) | @@ -127,6 +127,7 @@ function adicionaAcesso($id_ws,$sucesso) | ||
| 127 | //error_reporting(E_ALL); | 127 | //error_reporting(E_ALL); |
| 128 | include("conexao.php"); | 128 | include("conexao.php"); |
| 129 | $dados = pegaDados("select * from i3geoadmin_ws WHERE id_ws = $id_ws"); | 129 | $dados = pegaDados("select * from i3geoadmin_ws WHERE id_ws = $id_ws"); |
| 130 | + //var_dump($dados); | ||
| 130 | $acessos = $dados[0]["nacessos"] + 1; | 131 | $acessos = $dados[0]["nacessos"] + 1; |
| 131 | if($sucesso) | 132 | if($sucesso) |
| 132 | $ok = $dados[0]["nacessosok"] + 1; | 133 | $ok = $dados[0]["nacessosok"] + 1; |
| @@ -135,6 +136,7 @@ function adicionaAcesso($id_ws,$sucesso) | @@ -135,6 +136,7 @@ function adicionaAcesso($id_ws,$sucesso) | ||
| 135 | $dbhw->query("UPDATE i3geoadmin_ws SET nacessos = '$acessos',nacessosok = '$ok' WHERE id_ws = $id_ws"); | 136 | $dbhw->query("UPDATE i3geoadmin_ws SET nacessos = '$acessos',nacessosok = '$ok' WHERE id_ws = $id_ws"); |
| 136 | $dbhw = null; | 137 | $dbhw = null; |
| 137 | $dbh = null; | 138 | $dbh = null; |
| 139 | + //error_reporting(0); | ||
| 138 | } | 140 | } |
| 139 | catch (PDOException $e) | 141 | catch (PDOException $e) |
| 140 | { | 142 | { |
admin/php/xml.php
| @@ -71,7 +71,7 @@ function geraXmlWS($locaplic) | @@ -71,7 +71,7 @@ function geraXmlWS($locaplic) | ||
| 71 | } | 71 | } |
| 72 | function geraXmlWMS($locaplic) | 72 | function geraXmlWMS($locaplic) |
| 73 | { | 73 | { |
| 74 | - $sql = "select * from i3geoadmin_ws where tipo_ws = 'WMS' and nome_ws <> ''"; | 74 | + $sql = "select * from i3geoadmin_ws where tipo_ws = 'WMS' and nome_ws <> '' order by nome_ws"; |
| 75 | return geraXmlRSS($locaplic,$sql,"Web services WMS-OGC"); | 75 | return geraXmlRSS($locaplic,$sql,"Web services WMS-OGC"); |
| 76 | } | 76 | } |
| 77 | function geraXmlGeorss($locaplic) | 77 | function geraXmlGeorss($locaplic) |