session_start(); if ( !isset($_SESSION["userBrazilian"]['nome'])) { //nao esta logado, redirecionar para login header("Location: /intranet"); exit; } $f = fopen('log.csv', 'a'); fwrite($f, date("d/m/Y H:i:s").";". $_SERVER['REMOTE_ADDR']. ";".$_SESSION["userBrazilian"]['id'].";".$_SESSION["userBrazilian"]['nome'].";". $_SERVER["REQUEST_URI"] ."\n"); fclose($f); ?>