mirror of
				https://github.com/nerzhul/ocsms.git
				synced 2025-11-03 20:08:58 +00:00 
			
		
		
		
	Add a basic countrycode mapper for future use to dedup phone intl/local prefix problems
This commit is contained in:
		
							parent
							
								
									a438a82681
								
							
						
					
					
						commit
						ab3bd8718e
					
				
							
								
								
									
										41
									
								
								lib/countrycodes.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										41
									
								
								lib/countrycodes.php
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,41 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					/**
 | 
				
			||||||
 | 
					 * ownCloud - ocsms
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * This file is licensed under the Affero General Public License version 3 or
 | 
				
			||||||
 | 
					 * later. See the COPYING file.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * @author Loic Blot <loic.blot@unix-experience.fr>
 | 
				
			||||||
 | 
					 * @contributor: stagprom <https://github.com/stagprom/>
 | 
				
			||||||
 | 
					 * @copyright Loic Blot 2014-2015
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace OCA\OcSms\Lib;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class CountryCodes {
 | 
				
			||||||
 | 
						public static $codes = array(
 | 
				
			||||||
 | 
							"Algeria" => "+213",
 | 
				
			||||||
 | 
							"Belgium" => "+32",
 | 
				
			||||||
 | 
							"Brazil" => "+55",
 | 
				
			||||||
 | 
							"Canada" => "+1",
 | 
				
			||||||
 | 
							"Egypt" => "+20",
 | 
				
			||||||
 | 
							"France" => "+33",
 | 
				
			||||||
 | 
							"Germany" => "+49",
 | 
				
			||||||
 | 
							"Hong Kong" => "+852",
 | 
				
			||||||
 | 
							"India" => "+91",
 | 
				
			||||||
 | 
							"Italy" => "+39",
 | 
				
			||||||
 | 
							"Japan" => "+81",
 | 
				
			||||||
 | 
							"Mexico" => "+52",
 | 
				
			||||||
 | 
							"Morocco" => "+212",
 | 
				
			||||||
 | 
							"Norway" => "+47",
 | 
				
			||||||
 | 
							"Poland" => "+48",
 | 
				
			||||||
 | 
							"Russia" => "+7",
 | 
				
			||||||
 | 
							"South Korea" => "+82",
 | 
				
			||||||
 | 
							"South Sudan" => "+211",
 | 
				
			||||||
 | 
							"Spain" => "+34",
 | 
				
			||||||
 | 
							"Sweden" => "+46",
 | 
				
			||||||
 | 
							"Tunisia" => "+216",
 | 
				
			||||||
 | 
							"USA" => "+1",
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						);
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user