DEBUG kapcsoló a utils-ba
This commit is contained in:
		
							parent
							
								
									0ffaf09ae0
								
							
						
					
					
						commit
						cda9c66306
					
				@ -2,13 +2,6 @@
 | 
			
		||||
 | 
			
		||||
include_once "utils.php";
 | 
			
		||||
 | 
			
		||||
// hibakeresés
 | 
			
		||||
if (DEBUG_MODE) {
 | 
			
		||||
    ini_set("display_errors", "On");
 | 
			
		||||
} else {
 | 
			
		||||
    ini_set("display_errors", "Off");
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// feltöltési limit 10 percen belül
 | 
			
		||||
define("UPLOAD_LIMIT_10MIN", 10);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										11
									
								
								utils.php
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								utils.php
									
									
									
									
									
								
							@ -2,6 +2,17 @@
 | 
			
		||||
 | 
			
		||||
include_once "globals.php";
 | 
			
		||||
 | 
			
		||||
// hibakeresés
 | 
			
		||||
if (DEBUG_MODE) {
 | 
			
		||||
    ini_set('display_errors', '1');
 | 
			
		||||
    ini_set('display_startup_errors', '1');
 | 
			
		||||
    error_reporting(E_ALL);
 | 
			
		||||
} else {
 | 
			
		||||
    ini_set('display_errors', '0');
 | 
			
		||||
    ini_set('display_startup_errors', '0');
 | 
			
		||||
    error_reporting(0); // Turn off all error reporting
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// olyan szöveget ad vissza, amibe csak angol ABC betűi és számok szerepelnek (KL)
 | 
			
		||||
function only_alpha_numeric($input)
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user