mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Can easily overwrite website configuration
This commit is contained in:
		
							
								
								
									
										3
									
								
								init.php
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								init.php
									
									
									
									
									
								
							@@ -34,6 +34,9 @@ $cs->register("config", $config);
 | 
			
		||||
foreach(glob(PROJECT_PATH."config/*.php") as $confFile){
 | 
			
		||||
	require $confFile;
 | 
			
		||||
}
 | 
			
		||||
//Reload overwrite config if any
 | 
			
		||||
if(file_exists(PROJECT_PATH."config/overwrite.php"))
 | 
			
		||||
    require PROJECT_PATH."config/overwrite.php";
 | 
			
		||||
unset($config);
 | 
			
		||||
 | 
			
		||||
//Connexion to the database
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user