mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 17:05:36 -04:00 
			
		
		
		
	Added realpath so that included files work properly.
This commit is contained in:
		
							parent
							
								
									2d12b59786
								
							
						
					
					
						commit
						ce921e8169
					
				| @ -8,9 +8,8 @@ $hostname_YBDB = "enter_hostname"; | |||||||
| $database_YBDB = "enter_schema"; | $database_YBDB = "enter_schema"; | ||||||
| $username_YBDB = "enter_username"; | $username_YBDB = "enter_username"; | ||||||
| $password_YBDB = "enter_password"; | $password_YBDB = "enter_password"; | ||||||
| if(file_exists('Connections/local_configurations.php')) { | if(file_exists( realpath($_SERVER["DOCUMENT_ROOT"]) . "/Connections/local_configurations.php")) { | ||||||
| 	require_once('local_configurations.php'); | 	require_once('local_configurations.php'); | ||||||
| } | } | ||||||
| $YBDB = mysql_pconnect($hostname_YBDB, $username_YBDB, $password_YBDB) or trigger_error(mysql_error(),E_USER_ERROR); | $YBDB = mysql_pconnect($hostname_YBDB, $username_YBDB, $password_YBDB) or trigger_error(mysql_error(),E_USER_ERROR); | ||||||
| 
 |  | ||||||
| ?>
 | ?>
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user