Peter Nixon
* Count online users correctly (through a separate query) in user_finger.
* Use the correct max results variable in lib/*/find.php3
+* In time2strclock also show days if applicable
Ver 1.78:
* Add a snmp_clearsession which can disconnect a user by using the Cisco AAA Session MIB
* Add a configuration directive general_sessionclear_bin
if (!$time)
return "00:00:00";
- $str["hour"] = $str["min"] = $str["sec"] = "00";
+ $str["days"] = $str["hour"] = $str["min"] = $str["sec"] = "00";
+
+ $d = $time/86400;
+ $d = floor($d);
+ if ($d){
+ if ($d < 10)
+ $d = "0" . $d;
+ $str["days"] = "$d";
+ $time = $time % 86400;
+ }
$h = $time/3600;
$h = floor($h);
if ($h){
else
$time = "00";
$str["sec"] = "$time";
- $ret = "$str[hour]:$str[min]:$str[sec]";
+ if ($str["days"] != "00")
+ $ret = "$str[days]:$str[hour]:$str[min]:$str[sec]";
+ else
+ $ret = "$str[hour]:$str[min]:$str[sec]";
return $ret;
}