Commit 0af3c6aa12bec52dcbd4b4e6bfd6a0440da2d830

Authored by Edmar Moretti
1 parent 9576f4dd

inclusão do modo cgi no i3geo mobile

Showing 1 changed file with 9 additions and 5 deletions   Show diff stats
mobile/mobile.php
... ... @@ -92,11 +92,15 @@ if ($tipo=="desligar")
92 92 $mapa = ms_newMapObj($tmpfname);
93 93 $w = $mapa->width;
94 94 $h = $mapa->height;
95   -
96   -$imgo = $mapa->draw();
97   -$nome = ($imgo->imagepath).nomeRandomico().".png";
98   -$imgo->saveImage($nome);
99   -$nomeimagem = ($imgo->imageurl).basename($nome);
  95 +if (isset($utilizacgi) && strtolower($utilizacgi) == "sim")
  96 +{$nomeimagem = $locmapserv."?map=".$tmpfname."&mode=map";}
  97 +else
  98 +{
  99 + $imgo = $mapa->draw();
  100 + $nome = ($imgo->imagepath).nomeRandomico().".png";
  101 + $imgo->saveImage($nome);
  102 + $nomeimagem = ($imgo->imageurl).basename($nome);
  103 +}
100 104 ?>
101 105 <div id='botoes' >
102 106 <input type='button' value='+' onclick='zoommais()' />
... ...