mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Connexion to database
This commit is contained in:
		
							
								
								
									
										38
									
								
								config/main.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								config/main.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,38 @@
 | 
			
		||||
<?php
 | 
			
		||||
/**
 | 
			
		||||
 * Main configuration file
 | 
			
		||||
 *
 | 
			
		||||
 * @author Pierre HUBERT
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * The mode of the website
 | 
			
		||||
 * debug / production
 | 
			
		||||
 */
 | 
			
		||||
$config->set("site_mode", "debug");
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Storage URL
 | 
			
		||||
 *
 | 
			
		||||
 * The base url of the user_data folder 
 | 
			
		||||
 */
 | 
			
		||||
$config->set("storage_url", "http://devweb.local/comunic/current/user_data/");
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Storage PATH
 | 
			
		||||
 *
 | 
			
		||||
 * The path (on the server) pointing of the user_data folder
 | 
			
		||||
 */
 | 
			
		||||
$config->set("storage_path", "/home/pierre/Documents/projets_web/comunic/current/user_data");
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Database credentials
 | 
			
		||||
 *
 | 
			
		||||
 * The database must be a MySQL database
 | 
			
		||||
 */
 | 
			
		||||
$config->set("mysql", array(
 | 
			
		||||
    "host" => "localhost",
 | 
			
		||||
    "database" => "comunic", 
 | 
			
		||||
    "user" => "root", 
 | 
			
		||||
    "password" => "root"
 | 
			
		||||
));
 | 
			
		||||
		Reference in New Issue
	
	Block a user