Commit fca8ce392c89ceacf4500daae3c4b597649f0fed
1 parent
9150735d
Exists in
master
and in
7 other branches
remocão de arquivos desnecessarios
Showing
17 changed files
with
90 additions
and
89 deletions
Show diff stats
admin/admin.db
No preview for this file type
admin/php/admin.php
@@ -38,8 +38,8 @@ if(!isset($locaplic) || !isset($dir_tmp)){ | @@ -38,8 +38,8 @@ if(!isset($locaplic) || !isset($dir_tmp)){ | ||
38 | include(dirname(__FILE__)."/../../ms_configura.php"); | 38 | include(dirname(__FILE__)."/../../ms_configura.php"); |
39 | } | 39 | } |
40 | if(!file_exists($dir_tmp)){ | 40 | if(!file_exists($dir_tmp)){ |
41 | - @mkdir ($dir_tmp,0774); | ||
42 | - chmod($dir_tmp,0774); | 41 | + @mkdir ($dir_tmp,0744); |
42 | + chmod($dir_tmp,0744); | ||
43 | } | 43 | } |
44 | include_once($locaplic."/classesphp/pega_variaveis.php"); | 44 | include_once($locaplic."/classesphp/pega_variaveis.php"); |
45 | error_reporting(0); | 45 | error_reporting(0); |
classesphp/mapa_googlemaps.php
@@ -483,7 +483,7 @@ function salvaCacheImagem(){ | @@ -483,7 +483,7 @@ function salvaCacheImagem(){ | ||
483 | } | 483 | } |
484 | $c = $cachedir."/googlemaps/$layer/$z/$x"; | 484 | $c = $cachedir."/googlemaps/$layer/$z/$x"; |
485 | if(!file_exists($c."/$y.png")){ | 485 | if(!file_exists($c."/$y.png")){ |
486 | - mkdir($cachedir."/googlemaps/$layer/$z/$x",0774,true); | 486 | + mkdir($cachedir."/googlemaps/$layer/$z/$x",0744,true); |
487 | $img->saveImage($c."/$y.png"); | 487 | $img->saveImage($c."/$y.png"); |
488 | // | 488 | // |
489 | //corta a imagem gerada para voltar ao tamanho normal | 489 | //corta a imagem gerada para voltar ao tamanho normal |
@@ -492,8 +492,8 @@ function salvaCacheImagem(){ | @@ -492,8 +492,8 @@ function salvaCacheImagem(){ | ||
492 | $img = cortaImagemDisco($c."/$y.png",$cortePixels,256); | 492 | $img = cortaImagemDisco($c."/$y.png",$cortePixels,256); |
493 | } | 493 | } |
494 | 494 | ||
495 | - chmod($cachedir."/googlemaps/$layer/$z/$x",0774); | ||
496 | - chmod($c."/$y.png",0774); | 495 | + chmod($cachedir."/googlemaps/$layer/$z/$x",0744); |
496 | + chmod($c."/$y.png",0744); | ||
497 | } | 497 | } |
498 | return $c."/$y.png"; | 498 | return $c."/$y.png"; |
499 | } | 499 | } |
classesphp/mapa_openlayers.php
@@ -496,8 +496,8 @@ function salvaCacheImagem($cachedir,$map,$tms){ | @@ -496,8 +496,8 @@ function salvaCacheImagem($cachedir,$map,$tms){ | ||
496 | } | 496 | } |
497 | $nome = $nome.".png"; | 497 | $nome = $nome.".png"; |
498 | if(!file_exists($nome)){ | 498 | if(!file_exists($nome)){ |
499 | - @mkdir(dirname($nome),0774,true); | ||
500 | - chmod(dirname($nome),0774); | 499 | + @mkdir(dirname($nome),0744,true); |
500 | + chmod(dirname($nome),0744); | ||
501 | $img->saveImage($nome); | 501 | $img->saveImage($nome); |
502 | // | 502 | // |
503 | //corta a imagem gerada para voltar ao tamanho normal | 503 | //corta a imagem gerada para voltar ao tamanho normal |
@@ -505,7 +505,7 @@ function salvaCacheImagem($cachedir,$map,$tms){ | @@ -505,7 +505,7 @@ function salvaCacheImagem($cachedir,$map,$tms){ | ||
505 | if($cortePixels > 0){ | 505 | if($cortePixels > 0){ |
506 | $img = cortaImagemDisco($nome,$cortePixels,256); | 506 | $img = cortaImagemDisco($nome,$cortePixels,256); |
507 | } | 507 | } |
508 | - chmod($nome,0774); | 508 | + chmod($nome,0744); |
509 | } | 509 | } |
510 | return $nome; | 510 | return $nome; |
511 | } | 511 | } |
ferramentas/congelamapa/openlayers.php
@@ -15,7 +15,7 @@ $base = basename($map_file); | @@ -15,7 +15,7 @@ $base = basename($map_file); | ||
15 | $dir = dirname($map_file); | 15 | $dir = dirname($map_file); |
16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; | 16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
17 | copy($map_file,$novo_mapfile); | 17 | copy($map_file,$novo_mapfile); |
18 | -chmod($novo_mapfile,0774); | 18 | +chmod($novo_mapfile,0744); |
19 | $mapa = ms_newMapObj($novo_mapfile); | 19 | $mapa = ms_newMapObj($novo_mapfile); |
20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); | 20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); |
21 | $numlayers = $mapa->numlayers; | 21 | $numlayers = $mapa->numlayers; |
ferramentas/congelamapa/openlayers3.php
@@ -15,7 +15,7 @@ $base = basename($map_file); | @@ -15,7 +15,7 @@ $base = basename($map_file); | ||
15 | $dir = dirname($map_file); | 15 | $dir = dirname($map_file); |
16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; | 16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
17 | copy($map_file,$novo_mapfile); | 17 | copy($map_file,$novo_mapfile); |
18 | -chmod($novo_mapfile,0774); | 18 | +chmod($novo_mapfile,0744); |
19 | $mapa = ms_newMapObj($novo_mapfile); | 19 | $mapa = ms_newMapObj($novo_mapfile); |
20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); | 20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); |
21 | $numlayers = $mapa->numlayers; | 21 | $numlayers = $mapa->numlayers; |
ferramentas/melhorcaminho/exec.php
@@ -50,7 +50,7 @@ switch (strtoupper($funcao)) | @@ -50,7 +50,7 @@ switch (strtoupper($funcao)) | ||
50 | if(file_exists($cost_surface_path)){ | 50 | if(file_exists($cost_surface_path)){ |
51 | $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico(); | 51 | $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico(); |
52 | //cria a pasta onde os resultados serao armazenados | 52 | //cria a pasta onde os resultados serao armazenados |
53 | - mkdir ($pathresult,0774); | 53 | + mkdir ($pathresult,0744); |
54 | 54 | ||
55 | //parametros para o calculo de melhor caminho e linha reta | 55 | //parametros para o calculo de melhor caminho e linha reta |
56 | $best = array( | 56 | $best = array( |
ferramentas/parametrossql/ogc.php
@@ -538,8 +538,8 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){ | @@ -538,8 +538,8 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){ | ||
538 | else{ | 538 | else{ |
539 | $nome = $cachedir.$tms; | 539 | $nome = $cachedir.$tms; |
540 | } | 540 | } |
541 | - @mkdir(dirname($nome),0774,true); | ||
542 | - chmod(dirname($nome),0774); | 541 | + @mkdir(dirname($nome),0744,true); |
542 | + chmod(dirname($nome),0744); | ||
543 | $img->saveImage($nome); | 543 | $img->saveImage($nome); |
544 | // | 544 | // |
545 | //corta a imagem gerada para voltar ao tamanho normal | 545 | //corta a imagem gerada para voltar ao tamanho normal |
@@ -556,7 +556,7 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){ | @@ -556,7 +556,7 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){ | ||
556 | imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256); | 556 | imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256); |
557 | imagepng($imgc,$nome); | 557 | imagepng($imgc,$nome); |
558 | } | 558 | } |
559 | - chmod($nome,0774); | 559 | + chmod($nome,0744); |
560 | header('Content-Length: '.filesize($nome)); | 560 | header('Content-Length: '.filesize($nome)); |
561 | header('Content-Type: image/png'); | 561 | header('Content-Type: image/png'); |
562 | header('Cache-Control: max-age=3600, must-revalidate'); | 562 | header('Cache-Control: max-age=3600, must-revalidate'); |
init/index.php
@@ -21,16 +21,17 @@ if (! empty ( $_GET ["customDir"] )) { | @@ -21,16 +21,17 @@ if (! empty ( $_GET ["customDir"] )) { | ||
21 | $customDir = "interface"; | 21 | $customDir = "interface"; |
22 | } | 22 | } |
23 | if (! file_exists ( $dir_tmp )) { | 23 | if (! file_exists ( $dir_tmp )) { |
24 | - @mkdir ( $dir_tmp, 0774 ); | 24 | + @mkdir ( $dir_tmp, 0744 ); |
25 | } | 25 | } |
26 | if (file_exists ( $dir_tmp )) { | 26 | if (file_exists ( $dir_tmp )) { |
27 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
28 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
29 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
30 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
31 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
32 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
33 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 27 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
28 | + chmod ( $dir_tmp . "/comum", 0744 ); | ||
29 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
30 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
31 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
32 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
33 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
34 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
34 | } | 35 | } |
35 | error_reporting ( 0 ); | 36 | error_reporting ( 0 ); |
36 | include "head.php"; | 37 | include "head.php"; |
mapas/index.php
@@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) { | @@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) { | ||
7 | $customDir = "interface"; | 7 | $customDir = "interface"; |
8 | } | 8 | } |
9 | if (! file_exists ( $dir_tmp )) { | 9 | if (! file_exists ( $dir_tmp )) { |
10 | - @mkdir ( $dir_tmp, 0774 ); | 10 | + @mkdir ( $dir_tmp, 0744 ); |
11 | } | 11 | } |
12 | if (file_exists ( $dir_tmp )) { | 12 | if (file_exists ( $dir_tmp )) { |
13 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
14 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
15 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
16 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
17 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
18 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
19 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 13 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
14 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
15 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
16 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
17 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
18 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
19 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
20 | } | 20 | } |
21 | error_reporting ( 0 ); | 21 | error_reporting ( 0 ); |
22 | include "../init/head.php"; | 22 | include "../init/head.php"; |
mashups/openlayers.php
@@ -41,16 +41,16 @@ $nocache = $parurl["nocache"]; | @@ -41,16 +41,16 @@ $nocache = $parurl["nocache"]; | ||
41 | 41 | ||
42 | //cria as pastas temporarias caso nao existam | 42 | //cria as pastas temporarias caso nao existam |
43 | if (! file_exists ( $dir_tmp )) { | 43 | if (! file_exists ( $dir_tmp )) { |
44 | - @mkdir ( $dir_tmp, 0774 ); | 44 | + @mkdir ( $dir_tmp, 0744 ); |
45 | } | 45 | } |
46 | if (file_exists ( $dir_tmp )) { | 46 | if (file_exists ( $dir_tmp )) { |
47 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
48 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
49 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
50 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
51 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
52 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
53 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 47 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
48 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
49 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
50 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
51 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
52 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
53 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
54 | } | 54 | } |
55 | if(!empty($desligacache)){ | 55 | if(!empty($desligacache)){ |
56 | $DESLIGACACHE = $desligacache; | 56 | $DESLIGACACHE = $desligacache; |
mashups/openlayers3.php
@@ -40,16 +40,16 @@ $legendahtml = $parurl["legendahtml"]; | @@ -40,16 +40,16 @@ $legendahtml = $parurl["legendahtml"]; | ||
40 | $nocache = $parurl["nocache"]; | 40 | $nocache = $parurl["nocache"]; |
41 | //cria as pastas temporarias caso nao existam | 41 | //cria as pastas temporarias caso nao existam |
42 | if (! file_exists ( $dir_tmp )) { | 42 | if (! file_exists ( $dir_tmp )) { |
43 | - @mkdir ( $dir_tmp, 0774 ); | 43 | + @mkdir ( $dir_tmp, 0744 ); |
44 | } | 44 | } |
45 | if (file_exists ( $dir_tmp )) { | 45 | if (file_exists ( $dir_tmp )) { |
46 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
47 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
48 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
49 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
50 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
51 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
52 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 46 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
47 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
48 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
49 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
50 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
51 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
52 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
53 | } | 53 | } |
54 | if(!empty($desligacache)){ | 54 | if(!empty($desligacache)){ |
55 | $DESLIGACACHE = $desligacache; | 55 | $DESLIGACACHE = $desligacache; |
mashups/osm.php
@@ -11,16 +11,16 @@ include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); | @@ -11,16 +11,16 @@ include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); | ||
11 | error_reporting(0); | 11 | error_reporting(0); |
12 | //cria as pastas temporarias caso nao existam | 12 | //cria as pastas temporarias caso nao existam |
13 | if (! file_exists ( $dir_tmp )) { | 13 | if (! file_exists ( $dir_tmp )) { |
14 | - @mkdir ( $dir_tmp, 0774 ); | 14 | + @mkdir ( $dir_tmp, 0744 ); |
15 | } | 15 | } |
16 | if (file_exists ( $dir_tmp )) { | 16 | if (file_exists ( $dir_tmp )) { |
17 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
18 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
19 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
20 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
21 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
22 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
23 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 17 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
18 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
19 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
20 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
21 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
22 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
23 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
24 | } | 24 | } |
25 | //variaveis utilizadas | 25 | //variaveis utilizadas |
26 | $parurl = array_merge($_GET,$_POST); | 26 | $parurl = array_merge($_GET,$_POST); |
ms_criamapa.php
@@ -1366,33 +1366,33 @@ Retorno: | @@ -1366,33 +1366,33 @@ Retorno: | ||
1366 | function criaDirMapa($dir_tmp,$cachedir="") | 1366 | function criaDirMapa($dir_tmp,$cachedir="") |
1367 | { | 1367 | { |
1368 | if(!file_exists($dir_tmp)){ | 1368 | if(!file_exists($dir_tmp)){ |
1369 | - @mkdir ($dir_tmp,0774); | 1369 | + @mkdir ($dir_tmp,0744); |
1370 | } | 1370 | } |
1371 | if(file_exists($dir_tmp)) | 1371 | if(file_exists($dir_tmp)) |
1372 | { | 1372 | { |
1373 | $tmpdirname = nomeRandomico(); | 1373 | $tmpdirname = nomeRandomico(); |
1374 | - $crdir = @mkdir ($dir_tmp."/".$tmpdirname,0774); | ||
1375 | - chmod($dir_tmp."/".$tmpdirname,0774); | ||
1376 | - $crdiri = @mkdir ($dir_tmp."/img".$tmpdirname,0774); | ||
1377 | - chmod($dir_tmp."/img".$tmpdirname,0774); | 1374 | + $crdir = @mkdir ($dir_tmp."/".$tmpdirname,0744); |
1375 | + chmod($dir_tmp."/".$tmpdirname,0744); | ||
1376 | + $crdiri = @mkdir ($dir_tmp."/img".$tmpdirname,0744); | ||
1377 | + chmod($dir_tmp."/img".$tmpdirname,0744); | ||
1378 | $mapfile = $dir_tmp."/".$tmpdirname."/".$tmpdirname.".map"; | 1378 | $mapfile = $dir_tmp."/".$tmpdirname."/".$tmpdirname.".map"; |
1379 | $tmpimgname = "img".$tmpdirname; | 1379 | $tmpimgname = "img".$tmpdirname; |
1380 | - @mkdir($dir_tmp."/comum",0774); | 1380 | + @mkdir($dir_tmp."/comum",0744); |
1381 | //utilizado para armazenar os arquivos de fonte de dados do SAIKU | 1381 | //utilizado para armazenar os arquivos de fonte de dados do SAIKU |
1382 | - @mkdir($dir_tmp."/saiku-datasources",0774); | ||
1383 | - chmod($dir_tmp."/saiku-datasources",0774); | 1382 | + @mkdir($dir_tmp."/saiku-datasources",0744); |
1383 | + chmod($dir_tmp."/saiku-datasources",0744); | ||
1384 | // | 1384 | // |
1385 | if($cachedir == ""){ | 1385 | if($cachedir == ""){ |
1386 | - @mkdir($dir_tmp."/cache",0774); | ||
1387 | - chmod($dir_tmp."/cache",0774); | ||
1388 | - @mkdir($dir_tmp."/cache/googlemaps",0774); | ||
1389 | - chmod($dir_tmp."/cache/googlemaps",0774); | 1386 | + @mkdir($dir_tmp."/cache",0744); |
1387 | + chmod($dir_tmp."/cache",0744); | ||
1388 | + @mkdir($dir_tmp."/cache/googlemaps",0744); | ||
1389 | + chmod($dir_tmp."/cache/googlemaps",0744); | ||
1390 | } | 1390 | } |
1391 | else{ | 1391 | else{ |
1392 | - @mkdir($cachedir,0774); | ||
1393 | - chmod($cachedir,0774); | ||
1394 | - @mkdir($cachedir."/googlemaps",0774); | ||
1395 | - chmod($cachedir."/googlemaps",0774); | 1392 | + @mkdir($cachedir,0744); |
1393 | + chmod($cachedir,0744); | ||
1394 | + @mkdir($cachedir."/googlemaps",0744); | ||
1395 | + chmod($cachedir."/googlemaps",0744); | ||
1396 | } | 1396 | } |
1397 | if(file_exists($dir_tmp."/".$tmpdirname)) | 1397 | if(file_exists($dir_tmp."/".$tmpdirname)) |
1398 | return array($mapfile,$tmpdirname,$tmpimgname); | 1398 | return array($mapfile,$tmpdirname,$tmpimgname); |
ogc.php
@@ -510,7 +510,7 @@ else{ | @@ -510,7 +510,7 @@ else{ | ||
510 | $l->setmetadata("wms_extent",$extensao); | 510 | $l->setmetadata("wms_extent",$extensao); |
511 | if (!empty($postgis_mapa)){ | 511 | if (!empty($postgis_mapa)){ |
512 | if ($l->connectiontype == MS_POSTGIS){ | 512 | if ($l->connectiontype == MS_POSTGIS){ |
513 | - | 513 | + |
514 | $lcon = $l->connection; | 514 | $lcon = $l->connection; |
515 | if (($lcon == " ") || ($lcon == "") || (in_array($lcon,array_keys($postgis_mapa)))){ | 515 | if (($lcon == " ") || ($lcon == "") || (in_array($lcon,array_keys($postgis_mapa)))){ |
516 | // | 516 | // |
@@ -1173,8 +1173,8 @@ function salvaCacheImagem($cachedir,$map,$tms){ | @@ -1173,8 +1173,8 @@ function salvaCacheImagem($cachedir,$map,$tms){ | ||
1173 | $nome = $cachedir.$tms; | 1173 | $nome = $cachedir.$tms; |
1174 | } | 1174 | } |
1175 | $nome = str_replace(".png","",$nome).".png"; | 1175 | $nome = str_replace(".png","",$nome).".png"; |
1176 | - @mkdir(dirname($nome),0774,true); | ||
1177 | - chmod(dirname($nome),0774); | 1176 | + @mkdir(dirname($nome),0744,true); |
1177 | + chmod(dirname($nome),0744); | ||
1178 | 1178 | ||
1179 | $img->saveImage($nome); | 1179 | $img->saveImage($nome); |
1180 | // | 1180 | // |
@@ -1192,7 +1192,7 @@ function salvaCacheImagem($cachedir,$map,$tms){ | @@ -1192,7 +1192,7 @@ function salvaCacheImagem($cachedir,$map,$tms){ | ||
1192 | imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256); | 1192 | imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256); |
1193 | imagepng($imgc,$nome); | 1193 | imagepng($imgc,$nome); |
1194 | } | 1194 | } |
1195 | - chmod($nome,0774); | 1195 | + chmod($nome,0744); |
1196 | header('Content-Length: '.filesize($nome)); | 1196 | header('Content-Length: '.filesize($nome)); |
1197 | header('Content-Type: image/png'); | 1197 | header('Content-Type: image/png'); |
1198 | header('Cache-Control: max-age=3600, must-revalidate'); | 1198 | header('Cache-Control: max-age=3600, must-revalidate'); |
permlinks/index.php
@@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) { | @@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) { | ||
7 | $customDir = "interface"; | 7 | $customDir = "interface"; |
8 | } | 8 | } |
9 | if (! file_exists ( $dir_tmp )) { | 9 | if (! file_exists ( $dir_tmp )) { |
10 | - @mkdir ( $dir_tmp, 0774 ); | 10 | + @mkdir ( $dir_tmp, 0744 ); |
11 | } | 11 | } |
12 | if (file_exists ( $dir_tmp )) { | 12 | if (file_exists ( $dir_tmp )) { |
13 | - @mkdir ( $dir_tmp . "/comum", 0774 ); | ||
14 | - @mkdir ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
15 | - chmod ( $dir_tmp . "/saiku-datasources", 0774 ); | ||
16 | - @mkdir ( $dir_tmp . "/cache", 0774 ); | ||
17 | - chmod ( $dir_tmp . "/cache", 0774 ); | ||
18 | - @mkdir ( $dir_tmp . "/cache/googlemaps", 0774 ); | ||
19 | - chmod ( $dir_tmp . "/cache/googlemaps", 0774 ); | 13 | + @mkdir ( $dir_tmp . "/comum", 0744 ); |
14 | + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
15 | + chmod ( $dir_tmp . "/saiku-datasources", 0744 ); | ||
16 | + @mkdir ( $dir_tmp . "/cache", 0744 ); | ||
17 | + chmod ( $dir_tmp . "/cache", 0744 ); | ||
18 | + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
19 | + chmod ( $dir_tmp . "/cache/googlemaps", 0744 ); | ||
20 | } | 20 | } |
21 | error_reporting ( 0 ); | 21 | error_reporting ( 0 ); |
22 | include "../init/head.php"; | 22 | include "../init/head.php"; |
testainstal/index.php
@@ -221,10 +221,10 @@ HTML; | @@ -221,10 +221,10 @@ HTML; | ||
221 | if(!empty($_POST["criaPastaMstmp"]) && $_POST["criaPastaMstmp"] == "on"){ | 221 | if(!empty($_POST["criaPastaMstmp"]) && $_POST["criaPastaMstmp"] == "on"){ |
222 | echo "Criando a pasta $dir_tmp"; | 222 | echo "Criando a pasta $dir_tmp"; |
223 | if(!file_exists($dir_tmp)){ | 223 | if(!file_exists($dir_tmp)){ |
224 | - @mkdir ($dir_tmp,0774); | 224 | + @mkdir ($dir_tmp,0744); |
225 | } | 225 | } |
226 | else{ | 226 | else{ |
227 | - chmod($dir_tmp,0774); | 227 | + chmod($dir_tmp,0744); |
228 | } | 228 | } |
229 | if(!file_exists($dir_tmp)){ | 229 | if(!file_exists($dir_tmp)){ |
230 | echo "<span style=color:red >Arquivo $dir_tmp não pode ser criado"; | 230 | echo "<span style=color:red >Arquivo $dir_tmp não pode ser criado"; |
@@ -243,7 +243,7 @@ HTML; | @@ -243,7 +243,7 @@ HTML; | ||
243 | @symlink($dir_tmp,$d); | 243 | @symlink($dir_tmp,$d); |
244 | } | 244 | } |
245 | else{ | 245 | else{ |
246 | - chmod($d,0774); | 246 | + chmod($d,0744); |
247 | } | 247 | } |
248 | if(!file_exists($d)){ | 248 | if(!file_exists($d)){ |
249 | echo "<span style=color:red >Link $d não pode ser criado\n"; | 249 | echo "<span style=color:red >Link $d não pode ser criado\n"; |
@@ -258,10 +258,10 @@ HTML; | @@ -258,10 +258,10 @@ HTML; | ||
258 | if(!empty($_POST["criaPastaMstmp"]) && $_POST["permPastaI3geo"] == "on"){ | 258 | if(!empty($_POST["criaPastaMstmp"]) && $_POST["permPastaI3geo"] == "on"){ |
259 | echo "Alterando permissões i3geo i3geo/temas i3geo/admin i3geo/admin/admin.db\n"; | 259 | echo "Alterando permissões i3geo i3geo/temas i3geo/admin i3geo/admin/admin.db\n"; |
260 | if(file_exists($locaplic)){ | 260 | if(file_exists($locaplic)){ |
261 | - chmod($locaplic,0774); | ||
262 | - chmod($locaplic."/temas",0774); | ||
263 | - chmod($locaplic."/admin",0774); | ||
264 | - chmod($locaplic."/admin/admin.db",0774); | 261 | + chmod($locaplic,0744); |
262 | + chmod($locaplic."/temas",0744); | ||
263 | + chmod($locaplic."/admin",0744); | ||
264 | + chmod($locaplic."/admin/admin.db",0744); | ||
265 | echo "...OK\n"; | 265 | echo "...OK\n"; |
266 | } | 266 | } |
267 | } | 267 | } |