mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Travis tests for code conformance. Ignore warnings for now. Fixed all errors, left most warnings.
		
			
				
	
	
		
			33 lines
		
	
	
		
			988 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			988 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
/*
 | 
						|
 * LibreNMS front page graphs
 | 
						|
 *
 | 
						|
 * Author: Paul Gear
 | 
						|
 * Copyright (c) 2013 Gear Consulting Pty Ltd <http://libertysys.com.au/>
 | 
						|
 *
 | 
						|
 * This program is free software: you can redistribute it and/or modify it
 | 
						|
 * under the terms of the GNU General Public License as published by the
 | 
						|
 * Free Software Foundation, either version 3 of the License, or (at your
 | 
						|
 * option) any later version.  Please see LICENSE.txt at the top level of
 | 
						|
 * the source code distribution for details.
 | 
						|
 */
 | 
						|
 | 
						|
echo '
 | 
						|
<div class="cycle-slideshow"
 | 
						|
data-cycle-fx="fade"
 | 
						|
data-cycle-timeout="10000"
 | 
						|
data-cycle-slides="> div"
 | 
						|
style="clear: both">
 | 
						|
';
 | 
						|
 | 
						|
foreach (get_matching_files($config['html_dir'].'/includes/front/', '/^top_.*\.php$/') as $file) {
 | 
						|
    if (($file == 'top_ports.inc.php' && $config['top_ports'] == 0) || ($file == 'top_device_bits.inc.php' && $config['top_devices'] == 0)) {
 | 
						|
    } else {
 | 
						|
        echo "<div class=box>\n";
 | 
						|
        include_once $file;
 | 
						|
        echo "</div>\n";
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
echo "</div>\n";
 |