Commit version 24.12.13800
This commit is contained in:
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage webui
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -15,60 +15,58 @@ $ap['text'] = $ap['name'] . " " . $ap['type'];
|
||||
|
||||
echo("<tr onclick=\"openLink('" . generate_ap_url($ap) . "/')\" style='cursor: pointer;'>
|
||||
<td valign=top width=350>");
|
||||
echo(" <span class=entity-title> " . generate_ap_link($ap, " ".$ap['text']." </span><br />"));
|
||||
echo(" <span class=entity-title> " . generate_ap_link($ap, " " . $ap['text'] . " </span><br />"));
|
||||
echo("<span class=small>");
|
||||
echo("$break".$ap['mac_addr']."<br>".$ap['type']. " - channel ".$ap['channel']);
|
||||
echo("<br />txpow ".$ap['txpow']);
|
||||
echo("$break" . $ap['mac_addr'] . "<br>" . $ap['type'] . " - channel " . $ap['channel']);
|
||||
echo("<br />txpow " . $ap['txpow']);
|
||||
echo("</span>");
|
||||
echo("</td><td width=100>");
|
||||
|
||||
echo("</td><td width=150>");
|
||||
$ap['graph_type'] = "accesspoints_numasoclients";
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=".$ap['graph_type']."&id=".$ap['accesspoint_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=100&height=20&legend=no&bg=".str_replace("#","", $row_colour)."'>"));
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=" . $ap['graph_type'] . "&id=" . $ap['accesspoint_id'] . "&from=" . get_time('day') . "&to=" . get_time('now') . "&width=100&height=20&legend=no&bg=" . str_replace("#", "", $row_colour) . "'>"));
|
||||
echo("<br>\n");
|
||||
$ap['graph_type'] = "accesspoints_radioutil";
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=".$ap['graph_type']."&id=".$ap['accesspoint_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=100&height=20&legend=no&bg=".str_replace("#","", $row_colour)."'>"));
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=" . $ap['graph_type'] . "&id=" . $ap['accesspoint_id'] . "&from=" . get_time('day') . "&to=" . get_time('now') . "&width=100&height=20&legend=no&bg=" . str_replace("#", "", $row_colour) . "'>"));
|
||||
echo("<br>\n");
|
||||
$ap['graph_type'] = "accesspoints_interference";
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=".$ap['graph_type']."&id=".$ap['accesspoint_id']."&from=".$config['time']['day']."&to=".$config['time']['now']."&width=100&height=20&legend=no&bg=".str_replace("#","", $row_colour)."'>"));
|
||||
echo(generate_ap_link($ap, "<img src='graph.php?type=" . $ap['graph_type'] . "&id=" . $ap['accesspoint_id'] . "&from=" . get_time('day') . "&to=" . get_time('now') . "&width=100&height=20&legend=no&bg=" . str_replace("#", "", $row_colour) . "'>"));
|
||||
echo("<br>\n");
|
||||
|
||||
echo("</td><td width=120>");
|
||||
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> ".format_bi($ap['numasoclients'])." Clients<br />");
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> ".format_bi($ap['radioutil'])." % busy<br />");
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> ".format_bi($ap['interference'])." interference index<br />");
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> " . format_bi($ap['numasoclients']) . " Clients<br />");
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> " . format_bi($ap['radioutil']) . " % busy<br />");
|
||||
echo("<img src='images/icons/wireless.png' align=absmiddle /> " . format_bi($ap['interference']) . " interference index<br />");
|
||||
|
||||
echo("</td></tr>");
|
||||
|
||||
if ($vars['tab'] == "accesspoint")
|
||||
{
|
||||
$graphs = array('accesspoints_numasoclients' => 'Associated Clients',
|
||||
'accesspoints_interference' => 'Interference',
|
||||
'accesspoints_channel' => 'Channel',
|
||||
'accesspoints_txpow' => 'Transmit Power',
|
||||
'accesspoints_radioutil' => 'Radio Utilisation',
|
||||
'accesspoints_nummonclients' => 'Monitored Clients',
|
||||
'accesspoints_nummonbssid' => 'Monitored BSSIDs');
|
||||
if ($vars['tab'] == "accesspoint") {
|
||||
$graphs = ['accesspoints_numasoclients' => 'Associated Clients',
|
||||
'accesspoints_interference' => 'Interference',
|
||||
'accesspoints_channel' => 'Channel',
|
||||
'accesspoints_txpow' => 'Transmit Power',
|
||||
'accesspoints_radioutil' => 'Radio Utilisation',
|
||||
'accesspoints_nummonclients' => 'Monitored Clients',
|
||||
'accesspoints_nummonbssid' => 'Monitored BSSIDs'];
|
||||
|
||||
foreach ($graphs as $key => $text)
|
||||
{
|
||||
foreach ($graphs as $key => $text) {
|
||||
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = $config['time']['now'];
|
||||
$graph_array['id'] = $ap['accesspoint_id'];
|
||||
$graph_array['type'] = $key;
|
||||
$graph_array['height'] = "100";
|
||||
$graph_array['width'] = "215";
|
||||
$graph_array['to'] = get_time();
|
||||
$graph_array['id'] = $ap['accesspoint_id'];
|
||||
$graph_array['type'] = $key;
|
||||
|
||||
echo '<tr><td colspan=4>';
|
||||
echo '<h4>',$text,'</h4>';
|
||||
echo '<tr><td colspan=4>';
|
||||
echo '<h4>', $text, '</h4>';
|
||||
|
||||
print_graph_row($graph_array);
|
||||
print_graph_row($graph_array);
|
||||
|
||||
echo '</td></tr>';
|
||||
echo '</td></tr>';
|
||||
}
|
||||
|
||||
echo("</td></tr>");
|
||||
echo("</td></tr>");
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user