load_lang(); $db = new dbquery(); $db->connect(); $req = new request(); $list = new list_show(); if(isset($_REQUEST['user']) && $_REQUEST['user'] != '') { $db->query('select lastname, firstname from '.$_SESSION['tablename']['users']." where user_id ='".$db->protect_string_db($_REQUEST['user'])."'"); if($db->nb_result() == 0) { ?>
fetch_object(); $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 = '".$_REQUEST['user']."' "; $req = new request(); $tab = $req->select($select, $where, " ORDER BY ".$_SESSION['tablename']['history'].".event_date DESC ", $_SESSION['config']['databasetype'], $limit="500",false); if (count($tab) > 0) { for ($i=0;$i