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/
		
			
				
	
	
		
			27 lines
		
	
	
		
			589 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			589 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
$file = rrd_name($device['hostname'], 'screenos_sessions');
 | 
						|
 | 
						|
$rrd_list[0]['filename'] = $file;
 | 
						|
$rrd_list[0]['descr']    = 'Maxiumum';
 | 
						|
$rrd_list[0]['ds']       = 'max';
 | 
						|
 | 
						|
$rrd_list[1]['filename'] = $file;
 | 
						|
$rrd_list[1]['descr']    = 'Allocated';
 | 
						|
$rrd_list[1]['ds']       = 'allocate';
 | 
						|
 | 
						|
$rrd_list[2]['filename'] = $file;
 | 
						|
$rrd_list[2]['descr']    = 'Failed';
 | 
						|
$rrd_list[2]['ds']       = 'failed';
 | 
						|
 | 
						|
if ($_GET['debug']) {
 | 
						|
    print_r($rrd_list);
 | 
						|
}
 | 
						|
 | 
						|
$colours   = 'mixed';
 | 
						|
$nototal   = 1;
 | 
						|
$unit_text = 'Sessions';
 | 
						|
$scale_min = '0';
 | 
						|
 | 
						|
require 'includes/html/graphs/generic_multi_line.inc.php';
 |