mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	webui: make d_echo work in webui (#4432)
* webui: make d_echo work in webui Remove d_print_r(), it is redundant to d_echo() Remove d_echo calls in services.inc.php * Switched debug check to work with nginx
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							ce95ceaa2b
						
					
				
				
					commit
					0351b54fb8
				
			@@ -34,14 +34,16 @@ function catchFatal()
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
if (strpos($_SERVER['PATH_INFO'], "debug")) {
 | 
			
		||||
    $debug = "1";
 | 
			
		||||
if (strpos($_SERVER['REQUEST_URI'], "debug")) {
 | 
			
		||||
    $debug = true;
 | 
			
		||||
    ini_set('display_errors', 0);
 | 
			
		||||
    ini_set('display_startup_errors', 1);
 | 
			
		||||
    ini_set('log_errors', 1);
 | 
			
		||||
    ini_set('error_reporting', E_ALL);
 | 
			
		||||
    set_error_handler('logErrors');
 | 
			
		||||
    register_shutdown_function('catchFatal');
 | 
			
		||||
    $sql_debug = array();
 | 
			
		||||
    $php_debug = array();
 | 
			
		||||
} else {
 | 
			
		||||
    $debug = false;
 | 
			
		||||
    ini_set('display_errors', 0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user