create a new page, user_stats.php3 which will show the top users in connections or connections duration based
on the data in the totacct table.
* Add a few comments in the tot_stats and monthly_tot_stats scripts
+* Add support for ! in usernames in log_badlogins
Ver 1.61:
* Add a string encoder for greek
* If general_decode_normal_attributes is set then encode attributes in lib/ldap/change_info. In the near future
($year,$mon,$mday,$hour,$min,$sec)=UnixDate($date2,'%Y','%m','%d','%H','%M','%S');
}
$time = "$year-$mon-$mday $hour:$min:$sec";
- if (/\[([\w\-\.]+?)\]\s+\(from (.+?)\)/){
+ if (/\[([\w\-\.\!]+?)\]\s+\(from (.+?)\)/){
$user = $1;
($nas,$port,$caller) = (split /\s+/,$2)[1,3,5];
}
- elsif (/\[([\w\-\.]+?)\/.+?\]\s+\(from (.+?)\)/){
+ elsif (/\[([\w\-\.\!]+?)\/.+?\]\s+\(from (.+?)\)/){
$user = $1;
($nas,$port,$caller) = (split /\s+/,$2)[1,3,5];
}
$caller='' if (!defined($caller));
- $user =~s/[^\w\-\.\d]//g;
+ $user =~s/[^\w\-\.\d\!]//g;
$nas =~s/[^\w\.]//g;
if ($nas ne 'localhost' && $nas !~ /\.$domain$/){
$nas .= ".$domain";