Commit ddc53badd512672f4f5e59a70129a0b2aaab6cbd

Authored by Starlone Passos
1 parent 732125ce

Indicador 26 - Obtedo sistemas operacionais dos usuarios

Showing 1 changed file with 13 additions and 0 deletions   Show diff stats
rn/MdEstatisticasColetarRN.php
... ... @@ -36,6 +36,7 @@ class MdEstatisticasColetarRN extends InfraRN {
36 36 'sistemaOperacionalDetalhado' => $this->obterSistemaOperacionalDetalhado(),
37 37 'navegadores' => $this->obterNavegadores(),
38 38 'modulos' => $this->obterPlugins(),
  39 + 'sistemasOperacionaisUsuarios' => $this->obterSistemasOperacionaisUsuarios(),
39 40 'tamanhoFilesystem' => $this->obterTamanhoFileSystem(),
40 41 'tamanhoDocumentosExternos' => $this->obterTamanhoDocumentosExternos(),
41 42 'extensoes' => $this->obterQuantidadeDocumentosExternosPorExtensao()
... ... @@ -315,5 +316,17 @@ class MdEstatisticasColetarRN extends InfraRN {
315 316 return $resultado;
316 317 }
317 318  
  319 + private function obterSistemasOperacionaisUsuarios(){
  320 + $query = "select distinct user_agent from infra_auditoria";
  321 + $rs = BancoSEI::getInstance()->consultarSql($query);
  322 + $sistemas = (count($rs) && isset($rs[0]['user_agent'])) ? $rs[0]['user_agent'] : '';
  323 + $lista = array();
  324 + foreach($rs as $r) {
  325 + array_push($lista, $r['user_agent']);
  326 + }
  327 + InfraDebug::getInstance()->gravar('SEI26 - Sistemas Operacionais dos Clientes: ' . json_encode($lista), InfraLog::$INFORMACAO);
  328 + return $lista;
  329 + }
  330 +
318 331 }
319 332 ?>
... ...