Line 127... |
Line 127... |
127 |
echo "<TD>$detail[0]</TD>";
|
127 |
echo "<TD>$detail[0]</TD>";
|
128 |
}
|
128 |
}
|
129 |
echo "<TD>";
|
129 |
echo "<TD>";
|
130 |
if ($detail[4] == "1"){ // authenticated equipment
|
130 |
if ($detail[4] == "1"){ // authenticated equipment
|
131 |
$login = $detail[5];
|
131 |
$login = $detail[5];
|
- |
|
132 |
unset ($found_users); unset ($cn);
|
132 |
unset ($found_users); $search = $login; $search_IN = 'username'; // is user in database ?
|
133 |
$search = $login; $search_IN = 'username'; // is user in database ?
|
133 |
if (is_file("../lib/sql/find.php"))
|
134 |
if (is_file("../lib/sql/find.php"))
|
134 |
include("../lib/sql/find.php");
|
135 |
include("../lib/sql/find.php");
|
135 |
if (isset ($found_users)) // user is in database
|
136 |
if (isset ($found_users)) // user is in database
|
136 |
{
|
137 |
{
|
137 |
echo "OK - ";
|
138 |
echo "OK - ";
|
138 |
if (is_file("../lib/sql/user_info.php")) //retrieve user info
|
139 |
if (is_file("../lib/sql/user_info.php")) //retrieve user info (especialy $cn)
|
139 |
include("../lib/sql/user_info.php");
|
140 |
include("../lib/sql/user_info.php");
|
140 |
}
|
141 |
}
|
- |
|
142 |
if (! isset ($cn)){ $cn='-';}
|
141 |
# The user is an allowed MAC address
|
143 |
# The user is an allowed MAC address
|
142 |
if ($detail[5] == $detail[0]){
|
144 |
if ($detail[5] == $detail[0]){
|
- |
|
145 |
if (isset ($found_users)) { #MAC is in database
|
143 |
if ($cn != '-') {echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_allowed ($cn)</a>";}
|
146 |
echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_allowed";if ($cn != '-'){ echo "($cn)";};echo "</a>";
|
- |
|
147 |
}
|
- |
|
148 |
else { #MAC is temporarly allowed
|
144 |
else { echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_allowed</a>";}
|
149 |
echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_temporarly_allowed</a>";
|
- |
|
150 |
}
|
145 |
echo "</TD>";
|
151 |
echo "</TD>";
|
146 |
echo "<TD>";
|
152 |
echo "<TD>";
|
147 |
# Disable temporarily @MAC access
|
153 |
# Disable temporarily @MAC access
|
148 |
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>";
|
154 |
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>";
|
149 |
echo "<INPUT type=submit name='action' value='$l_disconnect'>";
|
155 |
echo "<INPUT type=submit name='action' value='$l_disconnect'>";
|