* Pass the whole password as salt in da_encrypt() in password_check.php3
* Refresh the online users page every 50 secs. Patch by Alexandre Strube <surak@barroco.com.br>
* Check if the last logged in server and client ip are valid before calling gethostbyaddr
+* If the same attribute appears more than once in the user edit page then show a count of the number of
+ occurences next to the attribute name
+* Add a server argument to user_finger.php3. If it is set then the page will only show the logged in users
+ in that access server instead of all of them. Update the README with documentation for that fact.
Ver 1.29:
* Add general_ld_library_path directive and set LD_LIBRARY_PATH accordingly (used in snmpfinger and
radaclient).
stoptime = 0. It will not do an harm even if it deletes valid entries since radiusd will fall
back to insert if update fails.
+
The structure of the tree is:
conf:: Contains various configuration files.
separated by new lines:
account_status(active or inactive),lock message,weekly limit,daily limit,
weekly used,weekly connections,daily used,daily connections
+htdocs:: user_finger.php3 =>
+ It will inger the nas(es) and show the logged in users. If an argument server is passed then
+ it will only show users for the specific access server.
html:: Contains the html code for a few pages
html::user_admin.html.php3 =>
$link2 = connect2db($config);
if ($link){
$h = 21;
+ $servers_num = 0;
while(1){
$i++;
$num = 0;
$i--;
break;
}
+ if ($server != ''){
+ if ($config[$name] == $server)
+ $servers_num++;
+ else
+ continue;
+ }
+ else
+ $servers_num++;
$name_data = $config[$ip];
$community_data = $config[$community];
- $server_name[$i] = $config[$name];
- $server_model[$i] = $config[$model];
+ $server_name[$servers_num] = $config[$name];
+ $server_model[$servers_num] = $config[$model];
if ($config[general_ld_library_path] != '')
putenv("LD_LIBRARY_PATH=$config[general_ld_library_path]");
$extra = "";
$num++;
$h += 21;
$user = $row['UserName'];
- $finger_info[$i][$num]['ip'] = $row['FramedIPAddress'];
- if ($finger_info[$i][$num]['ip'] == '')
- $finger_info[$i][$num]['ip'] = '-';
+ $finger_info[$servers_num][$num]['ip'] = $row['FramedIPAddress'];
+ if ($finger_info[$servers_num][$num]['ip'] == '')
+ $finger_info[$servers_num][$num]['ip'] = '-';
$session_time = $row['AcctStartTime'];
$session_time = date2timediv($session_time);
- $finger_info[$i][$num]['session_time'] = time2strclock($session_time);
- $finger_info[$i][$num]['user'] = $user;
- $finger_info[$i][$num]['callerid'] = $row['CallingStationId'];
- if ($finger_info[$i][$num]['callerid'] == '')
- $finger_info[$i][$num]['callerid'] = '-';
+ $finger_info[$servers_num][$num]['session_time'] = time2strclock($session_time);
+ $finger_info[$servers_num][$num]['user'] = $user;
+ $finger_info[$servers_num][$num]['callerid'] = $row['CallingStationId'];
+ if ($finger_info[$servers_num][$num]['callerid'] == '')
+ $finger_info[$servers_num][$num]['callerid'] = '-';
if ($user_info["$user"] == ''){
$user_info["$user"] = get_user_info($link2,$user,$config);
if ($user_info["$user"] == '' || $user_info["$user"] == ' ')
$user_info["$user"] = 'Unknown User';
}
}
- $height[$i] = $h;
+ $height[$servers_num] = $h;
}
- $server_loggedin[$i] = $num;
- $server_rem[$i] = ($config[$portnum]) ? ($config[$portnum] - $num) : 'unknown';
+ $server_loggedin[$servers_num] = $num;
+ $server_rem[$servers_num] = ($config[$portnum]) ? ($config[$portnum] - $num) : 'unknown';
}
}
?>
echo <<<EOM
<b>$date</b>
EOM;
- for($j = 1; $j <= $i; $j++){
+ for($j = 1; $j <= $servers_num; $j++){
echo <<<EOM
<p>
<table width=100% cellpadding=0 height=30><tr>