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.
		
			
				
	
	
		
			17 lines
		
	
	
		
			501 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			501 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| $link_array = array('page' => 'plugin');
 | |
| 
 | |
| $pagetitle[] = 'Plugin';
 | |
| 
 | |
| if ($vars['view'] == 'admin') {
 | |
|     include_once 'pages/plugin/admin.inc.php';
 | |
| } else {
 | |
|     $plugin = dbFetchRow("SELECT `plugin_name` FROM `plugins` WHERE `plugin_name` = '".$vars['p']."' AND `plugin_active`='1'");
 | |
|     if (!empty($plugin)) {
 | |
|         include 'plugins/'.$plugin['plugin_name'].'/'.$plugin['plugin_name'].'.inc.php';
 | |
|     } else {
 | |
|         print_error('This plugin is either disabled or not available.');
 | |
|     }
 | |
| }
 |