开发者 | SteveMulligan |
---|---|
更新时间 | 2013年10月16日 00:28 |
捐献地址: | 去捐款 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 3.6.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
plugin-name.php
to the /wp-content/plugins/
directory.Nothing!
In order to make the lookup process more robust the LocalMoney plugin uses a main and a fallback mechanism to lookup a visitor's location. The main system is the IP2C (IP to country) lookup service which is included with the plugin. If the user is accessing your site via a proxy the 'Forwarded-for' header will be used, allowing users from AOL to benefit from this plugin. The fallback system looks at the visitor's language preference. If it is in the form 'en-GB' it will use the appropriate currency for GB which is Pound Sterling. If the language preference is in the form 'en' it will check the timezone offset of the user and guess the appropriate country from that, i.e. in the case of 'en' the following data will be used: 0 - 24-> gb gb gb gb gb in in ch au au au au nz nz us us us us us us gb gb gb gb Under the fallback system, because the currency is determined by the settings on the user's machine, a visitor who happens to be in a foreign country still gets their own currency not the local one (unless they have changed their timezone settings).