<?php /*~ maps.common.inc.php
.---------------------------------------------------------------------------.
|  Software: Common Map Library                                       |
|   Version: 0.1                                                            |
|   Contact: via http://www.uniwits.com/contact                             |
|      Info: http://www.uniwits.com/                                        |
|   Support: http://www.uniwits.com/support                                 |
|      Note: This library is designed for Linux and compatible systems.     |
| ------------------------------------------------------------------------- |
|     Admin: Yuxiang Mao (project admininistrator)                          |
|   Authors: Yuxiang Mao (Uniwits) contact@uniwits.com                      |
|   Founder: Yuxiang Mao                                                    |
| Copyright (c) 2010-2012, Yuxiang Mao. All Rights Reserved.                |
| ------------------------------------------------------------------------- |
|   License: Distributed under Uniwits Shareware License (USL)              |
|            http://www.uniwits.com/licenses/shareware/                     |
| This program is distributed as a part of software provided by Uniwits     |
| System WITHOUT ANY WARRANTY; without even the implied warranty of         |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                      |
| ------------------------------------------------------------------------- |
*/ function getCodeMapCountry2Currency() { $map=array(); $map['AD']='EUR'; $map['AE']='AED'; $map['AF']='AFA'; $map['AG']='XCD'; $map['AI']='XCD'; $map['AL']='ALL'; $map['AM']='AMD'; $map['AN']='ANG'; $map['AO']='AOA'; $map['AQ']='N/A'; $map['AR']='ARS'; $map['AS']='USD'; $map['AT']='EUR'; $map['AU']='AUD'; $map['AW']='AWG'; $map['AX']=''; $map['AZ']='AZM'; $map['BA']='BAM'; $map['BB']='BBD'; $map['BD']='BDT'; $map['BE']='EUR'; $map['BF']='XOF'; $map['BG']='BGL'; $map['BH']='BHD'; $map['BI']='BIF'; $map['BJ']='XOF'; $map['BM']='BMD'; $map['BN']='BND'; $map['BO']='BOB'; $map['BR']='BRL'; $map['BS']='BSD'; $map['BT']='BTN'; $map['BV']='NOK'; $map['BW']='BWP'; $map['BY']='BYR'; $map['BZ']='BZD'; $map['CA']='CAD'; $map['CC']='AUD'; $map['CD']='CDF'; $map['CF']='XAF'; $map['CG']='XAF'; $map['CH']='CHF'; $map['CI']='XOF'; $map['CK']='NZD'; $map['CL']='CLP'; $map['CM']='XAF'; $map['CN']='CNY'; $map['CO']='COP'; $map['CR']='CRC'; $map['CS']=''; $map['CU']='CUP'; $map['CV']='CVE'; $map['CX']='AUD'; $map['CY']='CYP'; $map['CZ']='CZK'; $map['DE']='EUR'; $map['DJ']='DJF'; $map['DK']='DKK'; $map['DM']='XCD'; $map['DO']='DOP'; $map['DZ']='DZD'; $map['EC']='USD'; $map['EE']='EEK'; $map['EG']='EGP'; $map['EH']='MAD'; $map['ER']='ERN'; $map['ES']='EUR'; $map['ET']='ETB'; $map['FI']='EUR'; $map['FJ']='FJD'; $map['FK']='FKP'; $map['FM']='USD'; $map['FO']='DKK'; $map['FR']='EUR'; $map['GA']='XAF'; $map['GB']='GBP'; $map['GD']='XCD'; $map['GE']='GEL'; $map['GF']='EUR'; $map['GH']='GHC'; $map['GI']='GIP'; $map['GL']='DKK'; $map['GM']='GMD'; $map['GN']='GNF'; $map['GP']='EUR'; $map['GQ']='XAF'; $map['GR']='EUR'; $map['GS']=''; $map['GT']='GTQ'; $map['GU']='USD'; $map['GW']='GWP'; $map['GY']='GYD'; $map['HK']='HKD'; $map['HM']='AUD'; $map['HN']='HNL'; $map['HR']='HRK'; $map['HT']='HTG'; $map['HU']='HUF'; $map['ID']='IDR'; $map['IE']='EUR'; $map['IL']='ILS'; $map['IN']='INR'; $map['IO']='USD'; $map['IQ']='IQD'; $map['IR']='IRR'; $map['IS']='ISK'; $map['IT']='EUR'; $map['JM']='JMD'; $map['JO']='JOD'; $map['JP']='JPY'; $map['KE']='KES'; $map['KG']='KGS'; $map['KH']='KHR'; $map['KI']='AUD'; $map['KM']='KMF'; $map['KN']='XCD'; $map['KP']='KPW'; $map['KR']='KRW'; $map['KW']='KWD'; $map['KY']='KYD'; $map['KZ']='KZT'; $map['LA']='LAK'; $map['LB']='LBP'; $map['LC']='XCD'; $map['LI']='CHF'; $map['LK']='LKR'; $map['LR']='LRD'; $map['LS']='LSL'; $map['LT']='LTL'; $map['LU']='EUR'; $map['LV']='LVL'; $map['LY']='LYD'; $map['MA']='MAD'; $map['MC']='EUR'; $map['MD']='MDL'; $map['MG']='MGF'; $map['MH']='USD'; $map['MK']='MKD'; $map['ML']='XOF'; $map['MM']='MMK'; $map['MN']='MNT'; $map['MO']='MOP'; $map['MP']='USD'; $map['MQ']='EUR'; $map['MR']='MRO'; $map['MS']='XCD'; $map['MT']='MTL'; $map['MU']='MUR'; $map['MV']='MVR'; $map['MW']='MWK'; $map['MX']='MXN'; $map['MY']='MYR'; $map['MZ']='MZM'; $map['NA']='NAD'; $map['NC']='XPF'; $map['NE']='XOF'; $map['NF']='AUD'; $map['NG']='NGN'; $map['NI']='NIO'; $map['NL']='EUR'; $map['NO']='NOK'; $map['NP']='NPR'; $map['NR']='AUD'; $map['NU']='AUD'; $map['NZ']='NZD'; $map['OM']='OMR'; $map['PA']='PAB'; $map['PE']='PEN'; $map['PF']='XPF'; $map['PG']='PGK'; $map['PH']='PHP'; $map['PK']='PKR'; $map['PL']='PLN'; $map['PM']='EUR'; $map['PN']='NZD'; $map['PR']='USD'; $map['PS']=''; $map['PT']='EUR'; $map['PW']='USD'; $map['PY']='PYG'; $map['QA']='QAR'; $map['RE']='EUR'; $map['RO']='ROL'; $map['RU']='RUR'; $map['RW']='RWF'; $map['SA']='SAR'; $map['SB']='SBD'; $map['SC']='SCR'; $map['SD']='SDD'; $map['SE']='SEK'; $map['SG']='SGD'; $map['SH']='SHP'; $map['SI']='SIT'; $map['SJ']='NOK'; $map['SK']='SKK'; $map['SL']='SLL'; $map['SM']='EUR'; $map['SN']='XOF'; $map['SO']='SOS'; $map['SR']='SRG'; $map['ST']='STD'; $map['SV']='SVC'; $map['SY']='SYP'; $map['SZ']='SZL'; $map['TC']='USD'; $map['TD']='XAF'; $map['TF']='EUR'; $map['TG']='XOF'; $map['TH']='THB'; $map['TJ']='TJS'; $map['TK']='NZD'; $map['TL']=''; $map['TM']='TMM'; $map['TN']='TND'; $map['TO']='TOP'; $map['TR']='TRL'; $map['TT']='TTD'; $map['TV']='AUD'; $map['TW']='TWD'; $map['TZ']='TZS'; $map['UA']='UAH'; $map['UG']='UGS'; $map['UM']='USD'; $map['US']='USD'; $map['UY']='UYU'; $map['UZ']='UZS'; $map['VA']='EUR'; $map['VC']='XCD'; $map['VE']='VEB'; $map['VG']='USD'; $map['VI']='USD'; $map['VN']='VND'; $map['VU']='VUV'; $map['WF']='XPF'; $map['WS']='WST'; $map['YE']='YER'; $map['YT']='EUR'; $map['ZA']='ZAR'; $map['ZM']='ZMK'; $map['ZW']='ZWD'; return $map; } function getCodeMapCountry2Language($countrycode,$defaultlanguagecode=false) { switch ($countrycode) { case 'JP': return 'ja'; case 'CN': return 'zh'; } return $defaultlanguagecode?$defaultlanguagecode:'en'; } function mapCurrencyLocalName($namemap,$currencycode,$lang=false) { if (!$lang) $lang=language_requested(); $lclname=$namemap[$lang.'.'.$currencycode]; return $lclname?$lclname:$currencycode; } ?>