mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-10-30 17:54:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			632 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			632 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| /**
 | |
|  * User data helper
 | |
|  *
 | |
|  * @author Pierre HUBERT
 | |
|  */
 | |
| 
 | |
| /**
 | |
|  * Get and returns the URL path to an userdata file
 | |
|  *
 | |
|  * @param String $fileURI Optionnal, defines the URI pointing on the file
 | |
|  * @return String The full URL to the userdata file
 | |
|  */
 | |
| function path_user_data($fileURI = ""){
 | |
| 	return CS::get()->config->get("storage_url").$fileURI;
 | |
| }
 | |
| 
 | |
| /**
 | |
|  * Get and return the URL path to a specified account image
 | |
|  *
 | |
|  * @param String $imageURI Optionnal, defines URI of the image
 | |
|  * @return String The full URL to the image account file
 | |
|  */
 | |
| function path_account_image($imageURI=""){
 | |
| 	return path_user_data("avatars/".$imageURI);
 | |
| } | 
