Commit 9112094c62790fe2a459d03a3fb3bafcacd42e8d

Authored by Edmar Moretti
1 parent 83638951
Exists in master

Conclusão da implantação do log de transações #62

Showing 1 changed file with 16 additions and 0 deletions   Show diff stats
admin/php/logtransacoes.php 0 → 100644
... ... @@ -0,0 +1,16 @@
  1 +<?php
  2 +//para rodar, comente a linha abaixo
  3 +exit;
  4 +include("admin.php");
  5 +$dados = pegaDados("select * from ".$esquemaadmin."i3geoadmin_log");
  6 +//["serializedata"]=> string(96) "a:5:{i:0;s:22:"administrador do i3geo";i:1;s:10:"admingeral";i:2;s:0:"";i:3;s:1:"1";i:4;s:0:"";}" ["usuario"]=> string(5) "admin" ["ip"]=> string(9) "127.0.0.1" ["timestamp"]=> string(43) "1458610085(Mon, 21 Mar 2016 22:28:05 -0300)" ["outros"]=> string(0) "" } }
  7 +foreach($dados as $d){
  8 + echo "<b>id_log:</b> ".$d["id_log"]."<br> \n";
  9 + echo "timestamp = ".$d["timestamp"] ."<br> \n";
  10 + echo "usuario = ".$d["usuario"] ."<br> \n";
  11 + echo "ip = ".$d["ip"] ."<br> \n";
  12 + echo "sql = ".$d["sql"] ."<br> \n";
  13 + echo "dados = '".implode("','",unserialize($d["serializedata"])) ."'<br> \n";
  14 + echo "outros = ".$d["outros"] ."<br><br> \n";
  15 +}
  16 +?>
0 17 \ No newline at end of file
... ...