|
@@ -1417,9 +1417,9 @@ function get_device_by_auth($db, $id)
|
|
|
|
|
|
|
|
function print_auth_port($db, $port_id, $new_window = FALSE)
|
|
function print_auth_port($db, $port_id, $new_window = FALSE)
|
|
|
{
|
|
{
|
|
|
- $d_sql = "SELECT A.ip,A.ip_int,A.mac,A.id,A.dns_name,A.user_id FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
|
|
|
|
|
|
|
+ $d_sql = "SELECT A.ip, A.ip_int, A.mac, A.id, A.dns_name, A.user_id FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
|
|
|
$t_auth = mysqli_query($db, $d_sql);
|
|
$t_auth = mysqli_query($db, $d_sql);
|
|
|
- while (list($f_ip, $f_int, $f_mac, $f_auth_id, $f_dns, $f_comment, $f_user_id) = mysqli_fetch_array($t_auth)) {
|
|
|
|
|
|
|
+ while (list($f_ip, $f_int, $f_mac, $f_auth_id, $f_dns, $f_user_id) = mysqli_fetch_array($t_auth)) {
|
|
|
$name = $f_ip;
|
|
$name = $f_ip;
|
|
|
if (!empty($f_dns)) { $name = $f_dns; }
|
|
if (!empty($f_dns)) { $name = $f_dns; }
|
|
|
$title=get_login($db,$f_user_id)." =>".$f_ip."[".$f_mac."]";
|
|
$title=get_login($db,$f_user_id)." =>".$f_ip."[".$f_mac."]";
|
|
@@ -1434,7 +1434,7 @@ function print_auth_port($db, $port_id, $new_window = FALSE)
|
|
|
|
|
|
|
|
function get_port_comment($db, $port_id, $port_comment = '')
|
|
function get_port_comment($db, $port_id, $port_comment = '')
|
|
|
{
|
|
{
|
|
|
- $d_sql = "SELECT A.ip_int,A.comments FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
|
|
|
|
|
|
|
+ $d_sql = "SELECT A.ip_int, A.comments FROM User_auth as A, connections as C WHERE C.port_id=$port_id and A.id=C.auth_id and A.deleted=0 order by A.ip_int";
|
|
|
$t_auth = mysqli_query($db, $d_sql);
|
|
$t_auth = mysqli_query($db, $d_sql);
|
|
|
$comment_found = 0;
|
|
$comment_found = 0;
|
|
|
$result = '';
|
|
$result = '';
|