Commit 2f5b47048872099191c671f2fb381aa7ff88b77b

Authored by Edmar Moretti
1 parent 2ebdd46f

--no commit message

Showing 2 changed files with 9 additions and 3 deletions   Show diff stats
ms_configura.php
... ... @@ -371,10 +371,16 @@ if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN'))
371 371 }
372 372 else //se for linux
373 373 {
  374 + if(file_exists("/opt/www/html/i3geo/ms_criamapa.php")){
  375 + $dir_tmp = "/var/tmp/ms_tmp";
  376 + $locaplic = "/opt/www/html/i3geo";
  377 + }
  378 + else{
  379 + $dir_tmp = "/tmp";
  380 + $locaplic = "/var/www/i3geo";
  381 + }
374 382 $editores = array("127.0.0.1","localhost");
375   - $dir_tmp = "/var/tmp/ms_tmp";
376 383 $locmapserv = "/cgi-bin/mapserv";
377   - $locaplic = "/opt/www/html/i3geo";
378 384 $R_path = "R";//se vc não instalou o R no seu servidor, tente o endereço $R_path = $locaplic."/pacotes/r/linux/r";
379 385 $postgis_mapa = "";
380 386 $utilizacgi = "nao";
... ...
ms_criamapa.php
... ... @@ -170,7 +170,7 @@ Cria os diretórios temporários que serão utilizados pelo i3geo para armazenar as
170 170 */
171 171 $diretorios = criaDirMapa($dir_tmp);
172 172 if(!$diretorios)
173   -{echo "<p style=color:red ><b>N&atilde;o foi po&iacute;vel criar os diret&oacute;rios tempor&aacute;rios em $dir_tmp.</b></p>";exit;}
  173 +{echo "<p style=color:red ><b>N&atilde;o foi poss&iacute;vel criar os diret&oacute;rios tempor&aacute;rios em $dir_tmp.</b></p>";exit;}
174 174 criaIndex();
175 175 $tmpfname = $diretorios[0];
176 176 $protocolo = explode("/",$_SERVER['SERVER_PROTOCOL']);
... ...