Commit fca8ce392c89ceacf4500daae3c4b597649f0fed

Authored by Edmar Moretti
1 parent 9150735d

remocão de arquivos desnecessarios

admin/admin.db
No preview for this file type
admin/php/admin.php
... ... @@ -38,8 +38,8 @@ if(!isset($locaplic) || !isset($dir_tmp)){
38 38 include(dirname(__FILE__)."/../../ms_configura.php");
39 39 }
40 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 44 include_once($locaplic."/classesphp/pega_variaveis.php");
45 45 error_reporting(0);
... ...
classesphp/mapa_googlemaps.php
... ... @@ -483,7 +483,7 @@ function salvaCacheImagem(){
483 483 }
484 484 $c = $cachedir."/googlemaps/$layer/$z/$x";
485 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 487 $img->saveImage($c."/$y.png");
488 488 //
489 489 //corta a imagem gerada para voltar ao tamanho normal
... ... @@ -492,8 +492,8 @@ function salvaCacheImagem(){
492 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 498 return $c."/$y.png";
499 499 }
... ...
classesphp/mapa_openlayers.php
... ... @@ -496,8 +496,8 @@ function salvaCacheImagem($cachedir,$map,$tms){
496 496 }
497 497 $nome = $nome.".png";
498 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 501 $img->saveImage($nome);
502 502 //
503 503 //corta a imagem gerada para voltar ao tamanho normal
... ... @@ -505,7 +505,7 @@ function salvaCacheImagem($cachedir,$map,$tms){
505 505 if($cortePixels > 0){
506 506 $img = cortaImagemDisco($nome,$cortePixels,256);
507 507 }
508   - chmod($nome,0774);
  508 + chmod($nome,0744);
509 509 }
510 510 return $nome;
511 511 }
... ...
ferramentas/congelamapa/openlayers.php
... ... @@ -15,7 +15,7 @@ $base = basename($map_file);
15 15 $dir = dirname($map_file);
16 16 $novo_mapfile = $dir."/".nomeRandomico(5).$base;
17 17 copy($map_file,$novo_mapfile);
18   -chmod($novo_mapfile,0774);
  18 +chmod($novo_mapfile,0744);
19 19 $mapa = ms_newMapObj($novo_mapfile);
20 20 $mapa->setProjection(pegaProjecaoDefault("proj4"));
21 21 $numlayers = $mapa->numlayers;
... ...
ferramentas/congelamapa/openlayers3.php
... ... @@ -15,7 +15,7 @@ $base = basename($map_file);
15 15 $dir = dirname($map_file);
16 16 $novo_mapfile = $dir."/".nomeRandomico(5).$base;
17 17 copy($map_file,$novo_mapfile);
18   -chmod($novo_mapfile,0774);
  18 +chmod($novo_mapfile,0744);
19 19 $mapa = ms_newMapObj($novo_mapfile);
20 20 $mapa->setProjection(pegaProjecaoDefault("proj4"));
21 21 $numlayers = $mapa->numlayers;
... ...
ferramentas/melhorcaminho/exec.php
... ... @@ -50,7 +50,7 @@ switch (strtoupper($funcao))
50 50 if(file_exists($cost_surface_path)){
51 51 $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico();
52 52 //cria a pasta onde os resultados serao armazenados
53   - mkdir ($pathresult,0774);
  53 + mkdir ($pathresult,0744);
54 54  
55 55 //parametros para o calculo de melhor caminho e linha reta
56 56 $best = array(
... ...
ferramentas/parametrossql/ogc.php
... ... @@ -538,8 +538,8 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){
538 538 else{
539 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 543 $img->saveImage($nome);
544 544 //
545 545 //corta a imagem gerada para voltar ao tamanho normal
... ... @@ -556,7 +556,7 @@ function salvaCacheImagem($cachedir,$map,$tms, $plugin, $tema){
556 556 imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256);
557 557 imagepng($imgc,$nome);
558 558 }
559   - chmod($nome,0774);
  559 + chmod($nome,0744);
560 560 header('Content-Length: '.filesize($nome));
561 561 header('Content-Type: image/png');
562 562 header('Cache-Control: max-age=3600, must-revalidate');
... ...
init/index.php
... ... @@ -21,16 +21,17 @@ if (! empty ( $_GET ["customDir"] )) {
21 21 $customDir = "interface";
22 22 }
23 23 if (! file_exists ( $dir_tmp )) {
24   - @mkdir ( $dir_tmp, 0774 );
  24 + @mkdir ( $dir_tmp, 0744 );
25 25 }
26 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 36 error_reporting ( 0 );
36 37 include "head.php";
... ...
mapas/index.php
... ... @@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) {
7 7 $customDir = "interface";
8 8 }
9 9 if (! file_exists ( $dir_tmp )) {
10   - @mkdir ( $dir_tmp, 0774 );
  10 + @mkdir ( $dir_tmp, 0744 );
11 11 }
12 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 21 error_reporting ( 0 );
22 22 include "../init/head.php";
... ...
mashups/openlayers.php
... ... @@ -41,16 +41,16 @@ $nocache = $parurl["nocache"];
41 41  
42 42 //cria as pastas temporarias caso nao existam
43 43 if (! file_exists ( $dir_tmp )) {
44   - @mkdir ( $dir_tmp, 0774 );
  44 + @mkdir ( $dir_tmp, 0744 );
45 45 }
46 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 55 if(!empty($desligacache)){
56 56 $DESLIGACACHE = $desligacache;
... ...
mashups/openlayers3.php
... ... @@ -40,16 +40,16 @@ $legendahtml = $parurl["legendahtml"];
40 40 $nocache = $parurl["nocache"];
41 41 //cria as pastas temporarias caso nao existam
42 42 if (! file_exists ( $dir_tmp )) {
43   - @mkdir ( $dir_tmp, 0774 );
  43 + @mkdir ( $dir_tmp, 0744 );
44 44 }
45 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 54 if(!empty($desligacache)){
55 55 $DESLIGACACHE = $desligacache;
... ...
mashups/osm.php
... ... @@ -11,16 +11,16 @@ include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php");
11 11 error_reporting(0);
12 12 //cria as pastas temporarias caso nao existam
13 13 if (! file_exists ( $dir_tmp )) {
14   - @mkdir ( $dir_tmp, 0774 );
  14 + @mkdir ( $dir_tmp, 0744 );
15 15 }
16 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 25 //variaveis utilizadas
26 26 $parurl = array_merge($_GET,$_POST);
... ...
ms_criamapa.php
... ... @@ -1366,33 +1366,33 @@ Retorno:
1366 1366 function criaDirMapa($dir_tmp,$cachedir="")
1367 1367 {
1368 1368 if(!file_exists($dir_tmp)){
1369   - @mkdir ($dir_tmp,0774);
  1369 + @mkdir ($dir_tmp,0744);
1370 1370 }
1371 1371 if(file_exists($dir_tmp))
1372 1372 {
1373 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 1378 $mapfile = $dir_tmp."/".$tmpdirname."/".$tmpdirname.".map";
1379 1379 $tmpimgname = "img".$tmpdirname;
1380   - @mkdir($dir_tmp."/comum",0774);
  1380 + @mkdir($dir_tmp."/comum",0744);
1381 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 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 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 1397 if(file_exists($dir_tmp."/".$tmpdirname))
1398 1398 return array($mapfile,$tmpdirname,$tmpimgname);
... ...
ogc.php
... ... @@ -510,7 +510,7 @@ else{
510 510 $l->setmetadata("wms_extent",$extensao);
511 511 if (!empty($postgis_mapa)){
512 512 if ($l->connectiontype == MS_POSTGIS){
513   -
  513 +
514 514 $lcon = $l->connection;
515 515 if (($lcon == " ") || ($lcon == "") || (in_array($lcon,array_keys($postgis_mapa)))){
516 516 //
... ... @@ -1173,8 +1173,8 @@ function salvaCacheImagem($cachedir,$map,$tms){
1173 1173 $nome = $cachedir.$tms;
1174 1174 }
1175 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 1179 $img->saveImage($nome);
1180 1180 //
... ... @@ -1192,7 +1192,7 @@ function salvaCacheImagem($cachedir,$map,$tms){
1192 1192 imagecopy($imgc, $img, 0 , 0 , $cortePixels , $cortePixels , 256, 256);
1193 1193 imagepng($imgc,$nome);
1194 1194 }
1195   - chmod($nome,0774);
  1195 + chmod($nome,0744);
1196 1196 header('Content-Length: '.filesize($nome));
1197 1197 header('Content-Type: image/png');
1198 1198 header('Cache-Control: max-age=3600, must-revalidate');
... ...
permlinks/index.php
... ... @@ -7,16 +7,16 @@ if (! empty ( $_GET ["customDir"] )) {
7 7 $customDir = "interface";
8 8 }
9 9 if (! file_exists ( $dir_tmp )) {
10   - @mkdir ( $dir_tmp, 0774 );
  10 + @mkdir ( $dir_tmp, 0744 );
11 11 }
12 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 21 error_reporting ( 0 );
22 22 include "../init/head.php";
... ...
testainstal/index.php
... ... @@ -221,10 +221,10 @@ HTML;
221 221 if(!empty($_POST["criaPastaMstmp"]) && $_POST["criaPastaMstmp"] == "on"){
222 222 echo "Criando a pasta $dir_tmp";
223 223 if(!file_exists($dir_tmp)){
224   - @mkdir ($dir_tmp,0774);
  224 + @mkdir ($dir_tmp,0744);
225 225 }
226 226 else{
227   - chmod($dir_tmp,0774);
  227 + chmod($dir_tmp,0744);
228 228 }
229 229 if(!file_exists($dir_tmp)){
230 230 echo "<span style=color:red >Arquivo $dir_tmp n&atilde;o pode ser criado";
... ... @@ -243,7 +243,7 @@ HTML;
243 243 @symlink($dir_tmp,$d);
244 244 }
245 245 else{
246   - chmod($d,0774);
  246 + chmod($d,0744);
247 247 }
248 248 if(!file_exists($d)){
249 249 echo "<span style=color:red >Link $d n&atilde;o pode ser criado\n";
... ... @@ -258,10 +258,10 @@ HTML;
258 258 if(!empty($_POST["criaPastaMstmp"]) && $_POST["permPastaI3geo"] == "on"){
259 259 echo "Alterando permiss&otilde;es i3geo i3geo/temas i3geo/admin i3geo/admin/admin.db\n";
260 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 265 echo "...OK\n";
266 266 }
267 267 }
... ...