Commit fd2100c80ef337aee3222a3070d847eff77a2085

Authored by Edmar Moretti
1 parent bfe5162c

--no commit message

Showing 1 changed file with 26 additions and 0 deletions   Show diff stats
ferramentas/atalhosedicao/exec.php 0 → 100755
... ... @@ -0,0 +1,26 @@
  1 +<?php
  2 +include_once(dirname(__FILE__)."/../inicia.php");
  3 +//
  4 +//faz a busca da fun&ccedil;&atilde;o que deve ser executada
  5 +//
  6 +$retorno = ""; //string que ser&aacute; retornada ao browser via JSON
  7 +switch (strtoupper($funcao))
  8 +{
  9 + case "METADATA":
  10 + $mapa = ms_newMapObj($map_file);
  11 + $l = $mapa->getlayerbyname($tema);
  12 + if($l != ""){
  13 + $l->setmetadata($meta,$valor);
  14 + $mapa->save($map_file);
  15 + }
  16 + $retorno = "ok";
  17 + break;
  18 +}
  19 +if (!connection_aborted()){
  20 + if(isset($map_file) && isset($postgis_mapa) && $map_file != "")
  21 + restauraCon($map_file,$postgis_mapa);
  22 + cpjson($retorno);
  23 +}
  24 +else
  25 +{exit();}
  26 +?>
0 27 \ No newline at end of file
... ...