query('SELECT id,username,email,joindate,locale,last_active,account_flag FROM system.user ORDER BY last_active DESC;');
$now = microtime(true);
$result = '
'.
''.'| '.'ID'.' | '.''.'Username'.' | '.''.'EMail'.' | '.''.'JoinDate'.' | '.''.'Locale'.' | '.''.'Last Active'.' | '.''.'Flag'.' | '.''.'Rights'.' | '.'
';
while($r = $res->next()){
$result .= ''.'| '.$r['id'].' | '.''.$r['username'].' | '.''.$r['email'].' | '.''.$r['joindate'].' | '.''.$r['locale'].' | '.''.$r['last_active'].' | '.''.$r['account_flag'].' | '.''.'BUTTON'.' | '.'
';
}
$result .= '
';
return $result;
}
private static function tablerow_class($last_active){
$time = time() - strtotime($last_active);
if($time <= 60*60){
return 'success';}
if($time <= 60*60*24){
return 'info';}
if($time <= 60*60*24*7){
return 'warning';}
return 'error';
}
public static function html_li_menu(){return 'Security';}
public static function right_public(){return false;}
public static function right_right(){return \SYSTEM\SECURITY\Security::check(\SYSTEM\system::getSystemDBInfo(), \SYSTEM\SECURITY\RIGHTS::SYS_SAI);}
public static function src_css(){}
public static function src_js(){}
}