Commit 80baefff2572a004f13e85c18ef3b92ff4e7d946
Exists in
master
Merge from Marcelo201811
Showing
1 changed file
with
14 additions
and
6 deletions
Show diff stats
rn/MdEstatisticasColetarRN.php
| ... | ... | @@ -47,6 +47,8 @@ class MdEstatisticasColetarRN extends InfraRN |
| 47 | 47 | $ind['modulos'] = $this->obterPlugins(); |
| 48 | 48 | $ind['extensoes'] = $this->obterQuantidadeDocumentosExternosPorExtensao(); |
| 49 | 49 | $ind['anexosTamanhos'] = $this->obterTamanhoDocumentosExternos(); |
| 50 | + $ind['filesHashs'] = $this->obterHashs(); | |
| 51 | + | |
| 50 | 52 | return $ind; |
| 51 | 53 | } catch (Exception $e) { |
| 52 | 54 | InfraDebug::getInstance()->setBolLigado(false); |
| ... | ... | @@ -111,11 +113,18 @@ class MdEstatisticasColetarRN extends InfraRN |
| 111 | 113 | break; |
| 112 | 114 | } |
| 113 | 115 | } |
| 116 | + | |
| 117 | + //vamos retirar a parte inicial do dir que nao interessa | |
| 118 | + $novo_valor = $value; | |
| 119 | + $pos=MdEstatisticasColetarRN::bolArrFindItem(array('infra/infra', 'sei/', 'sip/'), $novo_valor); | |
| 120 | + if($pos !== false){ | |
| 121 | + $novo_valor = substr($novo_valor, $pos); | |
| 122 | + } | |
| 114 | 123 | |
| 115 | - $b[] = array('file' => $value, | |
| 116 | - 'hash' => hash_file('sha256', $value), | |
| 117 | - 'modulo' => $m, | |
| 118 | - 'versaoModulo' => $version, | |
| 124 | + $b[] = array('file' => $novo_valor, | |
| 125 | + 'hash' => hash_file('sha256', $value), | |
| 126 | + 'modulo' => $m, | |
| 127 | + 'versaoModulo' => $version, | |
| 119 | 128 | 'versaoSei' => SEI_VERSAO); |
| 120 | 129 | } |
| 121 | 130 | |
| ... | ... | @@ -559,5 +568,4 @@ class MdEstatisticasColetarRN extends InfraRN |
| 559 | 568 | } |
| 560 | 569 | } |
| 561 | 570 | } |
| 562 | -?> | |
| 563 | - | |
| 571 | +?> | |
| 564 | 572 | \ No newline at end of file | ... | ... |