mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
36431dd296
* Security fix: unauthorized access Affects nginx users: Moved php files outside of public html directory (Apache was protected by .htaccess) Affects all users: Some files did not check for authentication and could disclose some info. Better checks before including files from user input * git mv html/includes/ includes/html git mv html/pages/ includes/html/
25 lines
747 B
PHP
25 lines
747 B
PHP
<?php
|
|
|
|
if (file_exists(get_port_rrdfile_path($device['hostname'], $port['port_id'], 'adsl'))) {
|
|
$iid = $id;
|
|
echo '<div class=graphhead>ADSL Line Speed</div>';
|
|
$graph_type = 'port_adsl_speed';
|
|
|
|
include 'includes/html/print-interface-graphs.inc.php';
|
|
|
|
echo '<div class=graphhead>ADSL Line Attenuation</div>';
|
|
$graph_type = 'port_adsl_attenuation';
|
|
|
|
include 'includes/html/print-interface-graphs.inc.php';
|
|
|
|
echo '<div class=graphhead>ADSL Line SNR Margin</div>';
|
|
$graph_type = 'port_adsl_snr';
|
|
|
|
include 'includes/html/print-interface-graphs.inc.php';
|
|
|
|
echo '<div class=graphhead>ADSL Output Powers</div>';
|
|
$graph_type = 'port_adsl_power';
|
|
|
|
include 'includes/html/print-interface-graphs.inc.php';
|
|
}
|