mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
558 B
PHP
25 lines
558 B
PHP
<?php
|
|
|
|
$units = 'b';
|
|
$total_units = 'B';
|
|
$colours_in = 'greens';
|
|
// $multiplier = "0";
|
|
$colours_out = 'blues';
|
|
|
|
$nototal = 1;
|
|
|
|
$ds_in = 'traf_in';
|
|
$ds_out = 'traf_out';
|
|
|
|
$graph_title .= '::bits';
|
|
|
|
$colour_line_in = '006600';
|
|
$colour_line_out = '000099';
|
|
$colour_area_in = 'CDEB8B';
|
|
$colour_area_out = 'C3D9FF';
|
|
|
|
$hostname = (isset($_GET['hostname']) ? $_GET['hostname'] : 'unknown');
|
|
$rrd_filename = rrd_name($device['hostname'], array('app', 'shoutcast', $app['app_id'], $hostname));
|
|
|
|
require 'includes/html/graphs/generic_data.inc.php';
|