. */ require_once("core".DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_request.php"); require_once("apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_SEPARATOR."class".DIRECTORY_SEPARATOR."class_list_show.php"); $core_tools = new core_tools(); $core_tools->test_user(); $core_tools->load_lang(); $core_tools->test_service('reports', 'reports'); $db = new Database(); $req = new request(); $list = new list_show(); if(isset($_REQUEST['user']) && $_REQUEST['user'] != '') { $stmt = $db->query('SELECT lastname, firstname FROM '.$_SESSION['tablename']['users']." WHERE user_id =?", array($_REQUEST['user'])); if($stmt->rowCount() == 0) { ?>
fetchObject(); $user_name = $res->firstname.' '.$res->lastname; $select[$_SESSION['tablename']['history']] = array(); array_push($select[$_SESSION['tablename']['history']],'id','event_type','event_date' ); $where = " (".$_SESSION['tablename']['history'].".event_type = 'LOGIN' or ".$_SESSION['tablename']['history'].".event_type = 'LOGOUT') AND ".$_SESSION['tablename']['history'].".user_id = ? "; $arrayPDO = array($_REQUEST['user']); $req = new request(); $tab = $req->PDOselect($select, $where, $arrayPDO, " ORDER BY ".$_SESSION['tablename']['history'].".event_date DESC ", $_SESSION['config']['databasetype'], $limit="500",false); if (count($tab) > 0) { for ($i=0;$i