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;$iis_var_in_history_keywords_tab($tab[$i][$j]['value']); $tab[$i][$j]["value"] = $core_tools->is_var_in_history_keywords_tab($tab[$i][$j]['value']); } if($tab[$i][$j][$value]=="event_date"){ $tab[$i][$j]["label"]=_DATE; $tab[$i][$j]["size"]="30"; $tab[$i][$j]["label_align"]="left"; $tab[$i][$j]["align"]="center"; $tab[$i][$j]["valign"]="bottom"; $tab[$i][$j]["show"]=true; //$tab[$i][$j]["value_export"] = $funct -> dateformat($tab[$i][$j]['value']); $tab[$i][$j]["value"] = $db -> dateformat($tab[$i][$j]['value']); } } } } $title = _TITLE_STATS_USER_LOG.' : '.$user_name.' ('.$_REQUEST['user'].')'; ?>
list_simple($tab, $i, $title, 'folder_id', 'istats_result', false, "", 'listing spec', '', 400, 500); ?>
'.$title.''; ?>