35,18 → 35,18 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']); |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'fr'){ |
$l_activity = "Activité; sur le réseau de consultation"; |
$l_activity = "Activité sur le réseau de consultation"; |
$l_ip_adr = "Adresse IP"; |
$l_mac_adr = "Adresse MAC"; |
$l_user = "Usager"; |
$l_mac_allowed = "@MAC autorisée"; |
$l_mac_temporarily_allowed = "@MAC autorisée temporairement"; |
$l_action = "Action"; |
$l_dissociate = "Dissocier"; |
$l_dissociate = "Dissocier @IP"; |
$l_disconnect = "Déconnecter"; |
$l_refresh = "Cette page est rafraichie toutes les 30 secondes"; |
$l_edit_user = "Editer l'utilisateur"; |
$l_mac_action = "Action temporaire"; |
$l_connect = "Autoriser"; |
$l_connect = "Autoriser temporairement"; |
} |
else { |
$l_activity = "Activity on the consultation LAN"; |
54,13 → 54,13 |
$l_mac_adr = "MAC Adress"; |
$l_user = "User"; |
$l_mac_allowed = "@MAC allowed"; |
$l_mac_temporarily_allowed = "@MAC temporarily allowed"; |
$l_action = "Action"; |
$l_dissociate = "Dissociate"; |
$l_dissociate = "Dissociate @IP"; |
$l_disconnect = "Disconnect"; |
$l_refresh = "This frame is refreshed every 30'"; |
$l_edit_user = "Edit user"; |
$l_mac_action = "Temporarily Action"; |
$l_connect = "Authorize"; |
$l_connect = "Temporarily authorize"; |
} |
echo " |
<tr><th>$l_activity</th></tr> |
135,7 → 135,6 |
include("../lib/sql/find.php"); |
if (isset ($found_users)) // user is in database |
{ |
echo "OK - "; |
if (is_file("../lib/sql/user_info.php")) //retrieve user info (especialy $cn) |
include("../lib/sql/user_info.php"); |
} |
143,17 → 142,17 |
# The user is an allowed MAC address |
if ($detail[5] == $detail[0]){ |
if (isset ($found_users)) { #MAC is in database |
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>"; |
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>"; |
echo "</td><td>"; |
} |
else { #MAC is temporarly allowed |
echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_temporarly_allowed</a>"; |
else { #MAC is temporarily allowed |
echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user\">$l_mac_temporarily_allowed</a>"; |
echo "</td><td>"; |
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>"; |
echo "<INPUT type=submit name='action' value='$l_disconnect'>"; |
} |
echo "</TD>"; |
echo "<TD>"; |
# Disable temporarily @MAC access |
echo "<INPUT type='hidden' name='mac_addr' value='$detail[0]'>"; |
echo "<INPUT type=submit name='action' value='$l_disconnect'>"; |
} |
} |
# The user is a humanoide ;-) |
else { |
if ($cn != '-') { echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"$l_edit_user $detail[5]\">$detail[5] ($cn)</a>";} |