Add hostname to registrations

This commit is contained in:
Mark Crane
2014-09-24 04:56:59 +00:00
parent 0b391e92d1
commit 2623deafe3
2 changed files with 7 additions and 0 deletions

View File

@@ -101,6 +101,11 @@
$text['label-agent']['pt-pt'] = "Agente";
$text['label-agent']['fr-fr'] = "Agent";
$text['label-hostname']['en-us'] = "Hostname";
$text['label-hostname']['es-cl'] = "Hostname";
$text['label-hostname']['pt-pt'] = "Hostname";
$text['label-hostname']['fr-fr'] = "Nom d'hôte";
$text['label-ip']['en-us'] = "IP";
$text['label-ip']['es-cl'] = "IP";
$text['label-ip']['pt-pt'] = "IP";

View File

@@ -150,6 +150,7 @@ require_once "resources/check_auth.php";
echo " <th>".$text['label-agent']."</th>\n";
echo " <th>".$text['label-ip']."</th>\n";
echo " <th>".$text['label-port']."</th>\n";
echo " <th>".$text['label-hostname']."</th>\n";
echo " <th>".$text['label-status']."</th>\n";
echo " <th>".$text['label-tools']."&nbsp;</th>\n";
echo "</tr>\n";
@@ -171,6 +172,7 @@ require_once "resources/check_auth.php";
echo " <td class='".$row_style[$c]."'>".htmlentities($row['agent'])."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'><a href='http://".$row['network-ip']."' target='_blank'>".$row['network-ip']."</a>&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['network-port']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['host']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."'>".$row['status']."&nbsp;</td>\n";
echo " <td class='".$row_style[$c]."' style='text-align: right;' nowrap='nowrap'>\n";
echo " <input type='button' class='btn' value='".$text['button-unregister']."' onclick=\"document.location.href='cmd.php?cmd=unregister&profile=".$sip_profile_name."&show=".$show."&user=".$row['user']."&domain=".$row['sip-auth-realm']."&agent=".urlencode($row['agent'])."';\" />\n";