Commit 84ddecacbf31c146fd90f50ea5528c0ac49cacf8
1 parent
6c496466
Exists in
master
and in
7 other branches
--no commit message
Showing
1 changed file
with
10 additions
and
6 deletions
Show diff stats
testainstal.php
... | ... | @@ -168,7 +168,7 @@ if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) |
168 | 168 | {$mapa = ms_newMapObj($locaplic."/aplicmap/geral1windows.map");} |
169 | 169 | else |
170 | 170 | {$mapa = ms_newMapObj($locaplic."/aplicmap/geral1.map");} |
171 | -echo "<b>E agora..desenhando o mapa (se o mapa não aparecer é um problema...\nverifique os caminhos no ms_configura.php e no geral1.map ou geral1windows.map):</b>\n"; | |
171 | +echo "<b>E agora..desenhando o mapa (se o mapa não aparecer é um problema...\nverifique os caminhos no ms_configura.php e no geral1.map, geral1debian.map ou geral1windows.map):</b>\n"; | |
172 | 172 | $imgo = $mapa->draw(); |
173 | 173 | $nome = ($imgo->imagepath)."teste.png"; |
174 | 174 | echo "<p>Nome da imagem gerada: $nome </p>"; |
... | ... | @@ -179,11 +179,15 @@ echo "<p><img src=$nome /></p>"; |
179 | 179 | echo " \n"; |
180 | 180 | $error = ""; |
181 | 181 | ms_ResetErrorList(); |
182 | -echo "Carregando o map_file geral1... e acrescentando o estadosl.map \n"; | |
183 | -if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | |
184 | -{$maptemp = ms_newMapObj($locaplic."/aplicmap/estadoslwindows.map");} | |
185 | -else | |
186 | -{$maptemp = ms_newMapObj($locaplic."/aplicmap/estadosl.map");} | |
182 | +echo "Carregando o map_file geral1... e acrescentando os limites estaduais (aplicmap/estadosl...) \n"; | |
183 | +if(isset($estadosl)) | |
184 | +{$maptemp = ms_newMapObj($locaplic."/aplicmap/".$estadosl);} | |
185 | +else{ | |
186 | + if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) | |
187 | + {$maptemp = ms_newMapObj($locaplic."/aplicmap/estadoslwindows.map");} | |
188 | + else | |
189 | + {$maptemp = ms_newMapObj($locaplic."/aplicmap/estadosl.map");} | |
190 | +} | |
187 | 191 | while($error && $error->code != MS_NOERR) |
188 | 192 | { |
189 | 193 | printf("<br>Error in %s: %s<br>\n", $error->routine, $error->message); | ... | ... |