all files

This commit is contained in:
gandhimathi Bharathirajan 2017-09-11 14:38:03 +05:30
parent f81d071c90
commit c940cb1a2c
471 changed files with 71675 additions and 1 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.gitignore
CONTRIBUTING.md
Dockerfile
license.txt
README.md

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
# Configuration stuff
/application/config/development
/application/sessions
/ipconfig.php
# Dependencies
/node_modules
/vendor
# Other files
/.htaccess
.idea
.sass-cache
adminer.php
/nbproject
/.php_cs.cache
/doc

62
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,62 @@
# Contribution Guide
## Contribution to InvoicePlane
Every help is welcome, you don't have to be a professional PHP developer or SQL database engineer.
If you are not familiar with PHP or coding in general you could also help us in other ways.
You may also join our [Slack Chat](https://invoiceplane-slack.herokuapp.com/) to discuss certain
topics with other developers or get some help.
## Contents
* Get familiar with our Development Guidelines
* Tools for development
* Contributing Code
---
## Get familiar with our Development Guidelines
We are following some strict development guidelines while developing.
### PHP
Coding Standard: PSR-2
### JavaScript
Use JShint / JSlint to check your JavaScript code and try to resolve all code issues
### CSS
We use SASS only.
---
## Contributing Code
:warning: **Read this carefully to prevent your pull request to be closed!**
1. Before you submit any code to the repository please take a look at the [development tracker](https://development.invoiceplane.com) and search for your issue!
* If an issue exists and someone is working on it, please contact this person.
* If an issue exists and no one is working on it, assign it to yourself or write a comment.
2. Always reference the issue ID (e.g. IP-317) in all commits you make for this issue.
3. Before you create a pull request, rebase from the development branch.
* Add the development branch as a remote: `git remote add ip git@github.com:InvoicePlane/InvoicePlane.git`
* Do a rebase with the following command: `git pull --rebase ip development`
Where `ip` is the name of the remote and `development` the branch.
* Solve all conflicts and check if your code is still working.
4. Submit the pull request, reference the issue ID in the title and add a meaningful description.
Please ask questions related to this process if you are unclear. Asking before doing anything may save you and us time.
---
## Tools for development
We received some licenses for commercial development tools you can use if you want. Please contact use at mail@invoiceplane.com to get the license / access as we can't publish them here.
* JetBrains PhpStorm (PHP IDE)
* Mailtrap.io eMail Testing Solution
---
> _The name 'InvoicePlane' and the InvoicePlane logo are both copyright by Kovah.de and InvoicePlane.com
and their usage is restricted! For more information visit invoiceplane.com/license-copyright_

66
DEVELOPMENT.md Normal file
View File

@ -0,0 +1,66 @@
# InvoicePlane v1 Development Guide
If you want to help developing InvoicePlane you need to prepare InvoicePlane for working with it as huge parts of the application are missing in the source code and need to be downloaded and compiled.
If you have any questions, feel free to join the `#development` channel in our [Slack Chat](https://invoiceplane-slack.herokuapp.com/).
Please read the [Contribution Guide](CONTRIBUTING.md) before starting to work on the app.
[![Issue Tracker](https://img.shields.io/badge/Development%3A-Issue%20Tracker-429ae1.svg)](https://development.invoiceplane.com/) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/InvoicePlane/InvoicePlane/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/InvoicePlane/InvoicePlane/?branch=master)
---
## Contents
* Prepare your machine for InvoicePlane
* Setup InvoicePlane
* Developing with Vagrant
## Prepare your machine for InvoicePlane
The following tasks need to be accomplished before starting to work on and with InvoicePlane:
* Composer is installed
* Node.js and NPM are installed (Stable version is recommended)
* The `grunt-cli` package is installed globally via NPM
## Setup InvoicePlane
The following steps are required to make InvoicePlane runnable:
* Make a copy of the `ipconfig.php.example` file and rename the copy to `ipconfig.php`.
* Run `composer install`.
* Run `npm install`.
* Run `grunt build`.
Then point your webserver to the InvoicePlane directory. That's it.
## Developing with Vagrant
### Prerequisites
Download the following to setup the InvoicePlane VM. Please note: the VM is for development purposes only.
* http://www.ansible.com/home
* https://www.vagrantup.com/
* https://github.com/cogitatio/vagrant-hostsupdater
* https://www.virtualbox.org/wiki/Downloads
* On the virtualbox.org page you will also need to download the appropriate VirtualBox Extension Pack
* Clone the repo to your local machine with `git clone`
* Run `vagrant up` from the cloned directory
* If provisioning fails just run `vagrant provision` from the terminal
You should be able to navigate to your local though by doing www.invoiceplane.local
On the setup screen specify localhost, root, *blank password*, invoiceplane as the database configuration.
*Note:* When the VM is booted you can change the `php.ini` file to setup xdebug or other preferences.
__Ask questions!__ Please ask questions related to this process if you are unclear.
---
> _The name 'InvoicePlane' and the InvoicePlane logo are both copyright by Kovah.de and InvoicePlane.com
and their usage is restricted! For more information visit invoiceplane.com/license-copyright_

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM php:5.6-apache
# Install and enable PHP extensions
# https://wiki.invoiceplane.com/en/1.0/getting-started/requirements
RUN \
apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
librecode-dev \
libxml2-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd mcrypt mysqli recode xmlrpc
# Copy InvoicePlane into public directory
COPY . /var/www/html
# Enable .htaccess, set permissions, and enable Apache mod_rewrite
RUN mv /var/www/html/htaccess /var/www/html/.htaccess \
&& chown -R www-data:www-data /var/www/html \
&& a2enmod rewrite

194
Gruntfile.js Normal file
View File

@ -0,0 +1,194 @@
'use strict';
module.exports = function (grunt) {
// Load grunt tasks automatically
require('load-grunt-tasks')(grunt);
// MODULES
grunt.config('clean', {
basic: [
'assets/**/*.css', 'assets/**/*.css.map', '!assets/core/css/custom.css', '!assets/core/css/custom-pdf.css', // CSS
'assets/core/js/*.js', '!assets/core/js/scripts.js', '!assets/core/js/jquery-ui.js', // JS
'assets/core/fonts/*', '!assets/core/fonts/.gitignore' // Fonts
],
build: ['assets/default/js/dependencies.js', 'assets/default/js/legacy.js']
});
grunt.config('sass', {
dev: {
options: {
outputStyle: 'extended',
sourceMap: true
},
files: grunt.file.expandMapping(['assets/**/sass/*.scss'], 'css', {
rename: function (dest, matched) {
return matched.replace(/\/sass\//, '/' + dest + '/').replace(/\.scss$/, '.css');
}
})
},
build: {
options: {
outputStyle: 'compressed'
},
files: grunt.file.expandMapping(['assets/**/sass/*.scss'], 'css', {
rename: function (dest, matched) {
return matched.replace(/\/sass\//, '/' + dest + '/').replace(/\.scss$/, '.css');
}
})
}
});
grunt.config('postcss', {
dev: {
options: {
map: true,
processors: [
require('autoprefixer')({
browsers: 'last 3 version'
})
]
},
src: [
'assets/**/css/*.css',
'!assets/core/css/custom.css',
'!assets/core/css/custom-pdf.css'
]
},
build: {
options: {
map: false,
processors: [
require('autoprefixer')({
browsers: 'last 3 version'
})
]
},
src: [
'assets/**/css/*.css',
'!assets/core/css/custom.css',
'!assets/core/css/custom-pdf.css'
]
}
});
grunt.config('concat', {
legacy: {
src: [
'node_modules/html5shiv/dist/html5shiv.js'
],
dest: 'assets/core/js/legacy.js'
},
dependencies: {
src: [
'node_modules/jquery/dist/jquery.js',
'node_modules/js-cookie/src/js.cookie.js',
'assets/core/js/jquery-ui.js',
'node_modules/bootstrap-sass/assets/javascripts/bootstrap.js',
'node_modules/bootstrap-datepicker/js/bootstrap-datepicker.js',
'node_modules/select2/dist/js/select2.full.js',
'node_modules/dropzone/dist/dropzone.js',
'node_modules/clipboard/dist/clipboard.js'
],
dest: 'assets/core/js/dependencies.js'
},
zxcvbn: {
src: [
'node_modules/zxcvbn/dist/zxcvbn.js'
],
dest: 'assets/core/js/zxcvbn.js'
}
});
grunt.config('uglify', {
build: {
files: {
'assets/core/js/legacy.min.js': ['assets/core/js/legacy.js'],
'assets/core/js/dependencies.min.js': ['assets/core/js/dependencies.js'],
'assets/core/js/scripts.min.js': ['assets/core/js/scripts.js']
}
}
});
grunt.config('copy', {
datepickerlocale: {
expand: true,
flatten: true,
src: ['node_modules/bootstrap-datepicker/js/locales/**'],
dest: 'assets/core/js/locales/',
filter: 'isFile'
},
fontawesome: {
expand: true,
flatten: true,
src: ['node_modules/font-awesome/fonts/*'],
dest: 'assets/core/fonts'
},
devjs: {
files: [{
cwd: 'assets/core/js/',
src: [
'*.js', '!jquery-ui.js'
],
dest: 'assets/core/js/',
expand: true,
rename: function(dest, src) {
return (dest + src).replace('.js', '.min.js');
}
}]
}
});
grunt.config('watch', {
sass: {
files: "assets/**/*.scss",
tasks: ['sass:dev', 'postcss:dev']
},
js: {
files: "assets/core/js/scripts.js",
tasks: ['uglify']
}
});
// TASKS
grunt.registerTask('default', 'build');
grunt.registerTask('dev-build', [
'clean:basic',
'sass:dev',
'postcss:dev',
'concat:legacy',
'concat:dependencies',
'concat:zxcvbn',
'copy:datepickerlocale',
'copy:fontawesome',
'copy:devjs'
]);
grunt.registerTask('dev', [
'clean:basic',
'sass:dev',
'postcss:dev',
'concat:legacy',
'concat:dependencies',
'concat:zxcvbn',
'copy:datepickerlocale',
'copy:fontawesome',
'copy:devjs',
'watch'
]);
grunt.registerTask('build', [
'clean:basic',
'sass:build',
'postcss:build',
'concat:legacy',
'concat:dependencies',
'concat:zxcvbn',
'uglify:build',
'clean:build',
'copy:datepickerlocale',
'copy:fontawesome'
]);
};

100
LICENSE.txt Normal file
View File

@ -0,0 +1,100 @@
================================================================================
Copyright Notice for the InvoicePlane trademark
================================================================================
The name 'InvoicePlane' and the InvoicePlane logo are original copyright
of InvoicePlane.com / Kovah.de and the following restrictions apply to
both of them:
You are allowed to:
- use the name 'InvoicePlane' or the InvoicePlane logo in any context directly
related to the application or the project. This includes the application
itself, local communities and news or blog posts about InvoicePlane or
- use the name 'InvoicePlane' or the InvoicePlane logo to provide professional
support or hosting for the InvoicePlane application.
You are NOT allowed to:
- use the name 'InvoicePlane' or the InvoicePlane logo in any context that is
NOT related to the project,
- alter the name 'InvoicePlane' or the InvoicePlane logo in any way or
- sell or redistribute the application under the name 'InvoicePlane' and the
InvoicePlane logo.
Please contact us for more information or permission for exceptional cases.
================================================================================
License for InvoicePlane
================================================================================
Copyright (c) 2012-2014 InvoicePlane.com
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
================================================================================
License for CodeIgniter
================================================================================
Copyright (c) 2008 - 2011, EllisLab, Inc.
All rights reserved.
This license is a legal agreement between you and EllisLab Inc. for the use
of CodeIgniter Software (the "Software"). By obtaining the Software you
agree to comply with the terms and conditions of this license.
PERMITTED USE
You are permitted to use, copy, modify, and distribute the Software and its
documentation, with or without modification, for any purpose, provided that
the following conditions are met:
1. A copy of this license agreement must be included with the distribution.
2. Redistributions of source code must retain the above copyright notice in
all source code files.
3. Redistributions in binary form must reproduce the above copyright notice
in the documentation and/or other materials provided with the distribution.
4. Any files that have been modified must carry notices stating the nature
of the change and the names of those who changed them.
5. Products derived from the Software must include an acknowledgment that
they are derived from CodeIgniter in their documentation and/or other
materials provided with the distribution.
6. Products derived from the Software may not be called "CodeIgniter",
nor may "CodeIgniter" appear in their name, without prior written
permission from EllisLab, Inc.
INDEMNITY
You agree to indemnify and hold harmless the authors of the Software and
any contributors for any direct, indirect, incidental, or consequential
third-party claims, actions or suits, as well as any related expenses,
liabilities, damages, settlements or fees arising from your use or misuse
of the Software, or a violation of any terms of this license.
DISCLAIMER OF WARRANTY
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE,
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
LIMITATIONS OF LIABILITY
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE
FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION
WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE
APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING
BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF
DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS.

View File

@ -51,4 +51,3 @@ All security vulnerabilities will be promptly addressed.
> _The name 'InvoicePlane' and the InvoicePlane logo are both copyright by Kovah.de and InvoicePlane.com
and their usage is restricted! For more information visit invoiceplane.com/license-copyright_
"# My project's README"

1
application/.htaccess Normal file
View File

@ -0,0 +1 @@
Deny from all

1
application/cache/.htaccess vendored Normal file
View File

@ -0,0 +1 @@
deny from all

10
application/cache/index.html vendored Normal file
View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

1
application/config/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
config.php merge=ours

View File

@ -0,0 +1,135 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| AUTO-LOADER
| -------------------------------------------------------------------
| This file specifies which systems should be loaded by default.
|
| In order to keep the framework as light-weight as possible only the
| absolute minimal resources are loaded by default. For example,
| the database is not connected to automatically since no assumption
| is made regarding whether you intend to use it. This file lets
| you globally define which systems you would like loaded with every
| request.
|
| -------------------------------------------------------------------
| Instructions
| -------------------------------------------------------------------
|
| These are the things you can load automatically:
|
| 1. Packages
| 2. Libraries
| 3. Drivers
| 4. Helper files
| 5. Custom config files
| 6. Language files
| 7. Models
|
*/
/*
| -------------------------------------------------------------------
| Auto-load Packages
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
|
*/
$autoload['packages'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Libraries
| -------------------------------------------------------------------
| These are the classes located in system/libraries/ or your
| application/libraries/ directory, with the addition of the
| 'database' library, which is somewhat of a special case.
|
| Prototype:
|
| $autoload['libraries'] = array('database', 'email', 'session');
|
| You can also supply an alternative library name to be assigned
| in the controller:
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload['libraries'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Drivers
| -------------------------------------------------------------------
| These classes are located in system/libraries/ or in your
| application/libraries/ directory, but are also placed inside their
| own subdirectory and they extend the CI_Driver_Library class. They
| offer multiple interchangeable driver options.
|
| Prototype:
|
| $autoload['drivers'] = array('cache');
|
| You can also supply an alternative property name to be assigned in
| the controller:
|
| $autoload['drivers'] = array('cache' => 'cch');
|
*/
$autoload['drivers'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Helper Files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['helper'] = array('url', 'file');
*/
$autoload['helper'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Config files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['config'] = array('config1', 'config2');
|
| NOTE: This item is intended for use ONLY if you have created custom
| config files. Otherwise, leave it blank.
|
*/
$autoload['config'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Language files
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['language'] = array('lang1', 'lang2');
|
| NOTE: Do not include the "_lang" part of your file. For example
| "codeigniter_lang.php" would be referenced as array('codeigniter');
|
*/
$autoload['language'] = array();
/*
| -------------------------------------------------------------------
| Auto-load Models
| -------------------------------------------------------------------
| Prototype:
|
| $autoload['model'] = array('first_model', 'second_model');
|
| You can also supply an alternative model name to be assigned
| in the controller:
|
| $autoload['model'] = array('first_model' => 'first');
*/
$autoload['model'] = array();

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,569 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| DO NOT EDIT THIS FILE!
|--------------------------------------------------------------------------
*/
/*
|--------------------------------------------------------------------------
| Allow deletion of invoices after they have been sent
|--------------------------------------------------------------------------
|
| As it is forbidden in many countries to delete invoices that have been
| sent to a customer the deletion is disabled by default. If you need
| this function anyway you can enable invoice deletion by setting the
| value to true
|
*/
$config['enable_invoice_deletion'] = env_bool('ENABLE_INVOICE_DELETION');
/*
|--------------------------------------------------------------------------
| Disable the read-only mode
|--------------------------------------------------------------------------
|
| As it is forbidden in many countries to alter invoices that have been
| sent to a customer the ability to alter invoices is disabled by default.
| If you need this function anyway you can enable invoice deletion by
| setting the value to true
|
*/
$config['disable_read_only'] = env_bool('DISABLE_READ_ONLY');
/*
|--------------------------------------------------------------------------
| Base Site URL
|--------------------------------------------------------------------------
|
| URL to your CodeIgniter root. Typically this will be your base URL,
| WITH a trailing slash:
|
| http://example.com/
|
| WARNING: You MUST set this value!
|
| If it is not set, then CodeIgniter will try guess the protocol and path
| your installation, but due to security concerns the hostname will be set
| to $_SERVER['SERVER_ADDR'] if available, or localhost otherwise.
| The auto-detection mechanism exists only for convenience during
| development and MUST NOT be used in production!
|
| If you need to allow multiple domains, remember that this file is still
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = env('IP_URL');
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = env_bool('REMOVE_INDEXPHP') ? '' : 'index.php';
/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string. The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI' Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING' Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO' Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';
/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';
/*
|--------------------------------------------------------------------------
| Default Language
|--------------------------------------------------------------------------
|
| This determines which set of language files should be used. Make sure
| there is an available translation if you intend to use something other
| than english.
|
*/
$config['language'] = 'english';
/*
|--------------------------------------------------------------------------
| Default Character Set
|--------------------------------------------------------------------------
|
| This determines which character set is used by default in various methods
| that require a character set to be provided.
|
| See http://php.net/htmlspecialchars for a list of supported charsets.
|
*/
$config['charset'] = 'UTF-8';
/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the 'hooks' feature you must enable it by
| setting this variable to TRUE (boolean). See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
|--------------------------------------------------------------------------
|
| This item allows you to set the filename/classname prefix when extending
| native libraries. For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/core_classes.html
| https://codeigniter.com/user_guide/general/creating_libraries.html
|
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Composer auto-loading
|--------------------------------------------------------------------------
|
| Enabling this setting will tell CodeIgniter to look for a Composer
| package auto-loader script in application/vendor/autoload.php.
|
| $config['composer_autoload'] = TRUE;
|
| Or if you have your vendor/ directory located somewhere else, you
| can opt to set a specific path as well:
|
| $config['composer_autoload'] = '/path/to/vendor/autoload.php';
|
| For more information about Composer, please visit http://getcomposer.org/
|
| Note: This will NOT disable or override the CodeIgniter-specific
| autoloading (application/config/autoload.php)
*/
$config['composer_autoload'] = FALSE;
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| The configured value is actually a regular expression character group
| and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\(\)';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
|--------------------------------------------------------------------------
|
| By default CodeIgniter uses search-engine friendly segment based URLs:
| example.com/who/what/where/
|
| You can optionally enable standard query string based URLs:
| example.com?who=me&what=something&where=here
|
| Options are: TRUE or FALSE (boolean)
|
| The other items let you set the query string 'words' that will
| invoke your controllers and its functions:
| example.com/index.php?c=controller&m=function
|
| Please note that some of the helpers won't work as expected when
| this feature is enabled, since CodeIgniter is designed primarily to
| use segment based URLs.
|
*/
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger'] = 'm';
$config['directory_trigger'] = 'd';
/*
|--------------------------------------------------------------------------
| Allow $_GET array
|--------------------------------------------------------------------------
|
| By default CodeIgniter enables access to the $_GET array. If for some
| reason you would like to disable it, set 'allow_get_array' to FALSE.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['allow_get_array'] = TRUE;
/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = IP_DEBUG ? 2 : 1;
/*
|--------------------------------------------------------------------------
| Error Logging Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/logs/ directory. Use a full server path with trailing slash.
|
*/
$config['log_path'] = '';
/*
|--------------------------------------------------------------------------
| Log File Extension
|--------------------------------------------------------------------------
|
| The default filename extension for log files. The default 'php' allows for
| protecting the log files via basic scripting, when they are to be stored
| under a publicly accessible directory.
|
| Note: Leaving it blank will default to 'php'.
|
*/
$config['log_file_extension'] = '';
/*
|--------------------------------------------------------------------------
| Log File Permissions
|--------------------------------------------------------------------------
|
| The file system permissions to be applied on newly created log files.
|
| IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
| integer notation (i.e. 0700, 0644, etc.)
*/
$config['log_file_permissions'] = 0644;
/*
|--------------------------------------------------------------------------
| Date Format for Logs
|--------------------------------------------------------------------------
|
| Each item that is logged has an associated date. You can use PHP date
| codes to set your own date formatting
|
*/
$config['log_date_format'] = 'Y-m-d H:i:s';
/*
|--------------------------------------------------------------------------
| Error Views Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/views/errors/ directory. Use a full server path with trailing slash.
|
*/
$config['error_views_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Directory Path
|--------------------------------------------------------------------------
|
| Leave this BLANK unless you would like to set something other than the default
| application/cache/ directory. Use a full server path with trailing slash.
|
*/
$config['cache_path'] = '';
/*
|--------------------------------------------------------------------------
| Cache Include Query String
|--------------------------------------------------------------------------
|
| Whether to take the URL query string into consideration when generating
| output cache files. Valid options are:
|
| FALSE = Disabled
| TRUE = Enabled, take all query parameters into account.
| Please be aware that this may result in numerous cache
| files generated for the same page over and over again.
| array('q') = Enabled, but only take into account the specified list
| of query parameters.
|
*/
$config['cache_query_string'] = FALSE;
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class, you must set an encryption key.
| See the user guide for more info.
|
| https://codeigniter.com/user_guide/libraries/encryption.html
|
| Example usage:
|
| $this->encryption->initialize(
| array(
| 'cipher' => 'aes-256',
| 'key' => $key,
| )
| );
| $plain_text = 'This is a plain-text message!';
| $ciphertext = $this->encryption->encrypt($plain_text);
| $decrypted_text = $this->encryption->decrypt($ciphertext);
|
*/
$config['encryption_cipher'] = env('ENCRYPTION_CIPHER');
$config['encryption_key'] = env('ENCRYPTION_KEY');
/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'sess_driver'
|
| The storage driver to use: files, database, redis, memcached
|
| 'sess_cookie_name'
|
| The session cookie name, must contain only [0-9a-z_-] characters
|
| 'sess_expiration'
|
| The number of SECONDS you want the session to last.
| Setting to 0 (zero) means expire when the browser is closed.
|
| 'sess_save_path'
|
| The location to save sessions to, driver dependent.
|
| For the 'files' driver, it's a path to a writable directory.
| WARNING: Only absolute paths are supported!
|
| For the 'database' driver, it's a table name.
| Please read up the manual for the format with other session drivers.
|
| IMPORTANT: You are REQUIRED to set a valid save path!
|
| 'sess_match_ip'
|
| Whether to match the user's IP address when reading the session data.
|
| WARNING: If you're using the database driver, don't forget to update
| your session table's PRIMARY KEY when changing this setting.
|
| 'sess_time_to_update'
|
| How many seconds between CI regenerating the session ID.
|
| 'sess_regenerate_destroy'
|
| Whether to destroy session data associated with the old session ID
| when auto-regenerating the session ID. When set to FALSE, the data
| will be later deleted by the garbage collector.
|
| Other session cookie settings are shared with the rest of the application,
| except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
|
*/
$config['sess_driver'] = env('SESS_DRIVER', 'files');
$config['sess_table_name'] = env('SESS_DRIVER', 'ip_sessions');
$config['sess_cookie_name'] = env('SESS_DRIVER', 'ip_session');
$config['sess_expiration'] = env('SESS_EXPIRATION', 864000);
$config['sess_save_path'] = sys_get_temp_dir();
$config['sess_match_ip'] = env('SESS_MATCH_IP', true);
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
|
| 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path' = Typically will be a forward slash
| 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists.
| 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
|
| Note: These settings (with the exception of 'cookie_prefix' and
| 'cookie_httponly') will also affect sessions.
|
*/
$config['cookie_prefix'] = '';
$config['cookie_domain'] = '';
$config['cookie_path'] = '/';
$config['cookie_secure'] = env('COOKIE_SECURE', false);
$config['cookie_httponly'] = FALSE;
/*
|--------------------------------------------------------------------------
| Standardize newlines
|--------------------------------------------------------------------------
|
| Determines whether to standardize newline characters in input data,
| meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value.
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['standardize_newlines'] = FALSE;
/*
|--------------------------------------------------------------------------
| Global XSS Filtering
|--------------------------------------------------------------------------
|
| Determines whether the XSS filter is always active when GET, POST or
| COOKIE data is encountered
|
| WARNING: This feature is DEPRECATED and currently available only
| for backwards compatibility purposes!
|
*/
$config['global_xss_filtering'] = FALSE;
/*
|--------------------------------------------------------------------------
| Cross Site Request Forgery
|--------------------------------------------------------------------------
| Enables a CSRF cookie token to be set. When set to TRUE, token will be
| checked on a submitted form. If you are accepting user data, it is strongly
| recommended CSRF protection be enabled.
|
| 'csrf_token_name' = The token name
| 'csrf_cookie_name' = The cookie name
| 'csrf_expire' = The number in seconds the token should expire.
| 'csrf_regenerate' = Regenerate token on every submission
| 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
*/
$config['csrf_protection'] = env('CSRF_PROTECTION', true);
$config['csrf_token_name'] = '_ip_csrf';
$config['csrf_cookie_name'] = 'ip_csrf_cookie';
$config['csrf_expire'] = 3600;
$config['csrf_regenerate'] = true;
$config['csrf_exclude_uris'] = array();
/*
|--------------------------------------------------------------------------
| Output Compression
|--------------------------------------------------------------------------
|
| Enables Gzip output compression for faster page loads. When enabled,
| the output class will test whether your server supports Gzip.
| Even if it does, however, not all browsers support compression
| so enable only if you are reasonably sure your visitors can handle it.
|
| Only used if zlib.output_compression is turned off in your php.ini.
| Please do not use it together with httpd-level output compression.
|
| VERY IMPORTANT: If you are getting a blank page when compression is enabled it
| means you are prematurely outputting something to your browser. It could
| even be a line of whitespace at the end of one of your scripts. For
| compression to work, nothing can be sent before the output buffer is called
| by the output class. Do not 'echo' any values with compression enabled.
|
*/
$config['compress_output'] = FALSE;
/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are 'local' or any PHP supported timezone. This preference tells
| the system whether to use your server's local time as the master 'now'
| reference, or convert it to the configured one timezone. See the 'date
| helper' page of the user guide for information regarding date handling.
|
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
|--------------------------------------------------------------------------
|
| If your PHP installation does not have short tag support enabled CI
| can rewrite the tags on-the-fly, enabling you to utilize that syntax
| in your view files. Options are TRUE or FALSE (boolean)
|
| Note: You need to have eval() enabled for this to work.
|
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
|--------------------------------------------------------------------------
|
| If your server is behind a reverse proxy, you must whitelist the proxy
| IP addresses from which CodeIgniter should trust headers such as
| HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
| the visitor's IP address.
|
| You can use both an array or a comma-separated list of proxy addresses,
| as well as specifying whole subnets. Here are a few examples:
|
| Comma-separated: '10.0.1.200,192.168.5.0/24'
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config['proxy_ips'] = '';

View File

@ -0,0 +1,85 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code

View File

@ -0,0 +1,97 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| DATABASE CONNECTIVITY SETTINGS
| -------------------------------------------------------------------
| This file will contain the settings needed to access your database.
|
| For complete instructions please consult the 'Database Connection'
| page of the User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['dsn'] The full DSN string describe a connection to the database.
| ['hostname'] The hostname of your database server.
| ['username'] The username used to connect to the database
| ['password'] The password used to connect to the database
| ['database'] The name of the database you want to connect to
| ['dbdriver'] The database driver. e.g.: mysqli.
| Currently supported:
| cubrid, ibase, mssql, mysql, mysqli, oci8,
| odbc, pdo, postgre, sqlite, sqlite3, sqlsrv
| ['dbprefix'] You can add an optional prefix, which will be added
| to the table name when using the Query Builder class
| ['pconnect'] TRUE/FALSE - Whether to use a persistent connection
| ['db_debug'] TRUE/FALSE - Whether database errors should be displayed.
| ['cache_on'] TRUE/FALSE - Enables/disables query caching
| ['cachedir'] The path to the folder where cache files should be stored
| ['char_set'] The character set used in communicating with the database
| ['dbcollat'] The character collation used in communicating with the database
| NOTE: For MySQL and MySQLi databases, this setting is only used
| as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7
| (and in table creation queries made with DB Forge).
| There is an incompatibility in PHP with mysql_real_escape_string() which
| can make your site vulnerable to SQL injection if you are using a
| multi-byte character set and are running versions lower than these.
| Sites using Latin-1 or UTF-8 database character set and collation are unaffected.
| ['swap_pre'] A default table prefix that should be swapped with the dbprefix
| ['encrypt'] Whether or not to use an encrypted connection.
|
| 'mysql' (deprecated), 'sqlsrv' and 'pdo/sqlsrv' drivers accept TRUE/FALSE
| 'mysqli' and 'pdo/mysql' drivers accept an array with the following options:
|
| 'ssl_key' - Path to the private key file
| 'ssl_cert' - Path to the public key certificate file
| 'ssl_ca' - Path to the certificate authority file
| 'ssl_capath' - Path to a directory containing trusted CA certificats in PEM format
| 'ssl_cipher' - List of *allowed* ciphers to be used for the encryption, separated by colons (':')
| 'ssl_verify' - TRUE/FALSE; Whether verify the server certificate or not ('mysqli' only)
|
| ['compress'] Whether or not to use client compression (MySQL only)
| ['stricton'] TRUE/FALSE - forces 'Strict Mode' connections
| - good for ensuring strict SQL while developing
| ['ssl_options'] Used to set various SSL options that can be used when making SSL connections.
| ['failover'] array - A array with 0 or more data for connections if the main should fail.
| ['save_queries'] TRUE/FALSE - Whether to "save" all executed queries.
| NOTE: Disabling this will also effectively disable both
| $this->db->last_query() and profiling of DB queries.
| When you run a query, with this setting set to TRUE (default),
| CodeIgniter will store the SQL statement for debugging purposes.
| However, this may cause high memory usage, especially if you run
| a lot of SQL queries ... disable this to avoid that problem.
|
| The $active_group variable lets you choose which connection group to
| make active. By default there is only one group (the 'default' group).
|
| The $query_builder variables lets you determine whether or not to load
| the query builder class.
*/
$active_group = 'default';
$query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
'hostname' => getenv('DB_HOSTNAME'),
'port' => getenv('DB_PORT'),
'username' => getenv('DB_USERNAME'),
'password' => getenv('DB_PASSWORD'),
'database' => getenv('DB_DATABASE'),
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);

View File

@ -0,0 +1,24 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$_doctypes = array(
'xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',
'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">',
'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">',
'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">',
'xhtml-basic11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">',
'html5' => '<!DOCTYPE html>',
'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">',
'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',
'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">',
'mathml1' => '<!DOCTYPE math SYSTEM "http://www.w3.org/Math/DTD/mathml1/mathml.dtd">',
'mathml2' => '<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">',
'svg10' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">',
'svg11' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',
'svg11-basic' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">',
'svg11-tiny' => '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">',
'xhtml-math-svg-xh' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-math-svg-sh' => '<!DOCTYPE svg:svg PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">',
'xhtml-rdfa-1' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">',
'xhtml-rdfa-2' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.1//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd">'
);

View File

@ -0,0 +1,103 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Foreign Characters
| -------------------------------------------------------------------
| This file contains an array of foreign characters for transliteration
| conversion used by the Text helper
|
*/
$foreign_characters = array(
'/ä|æ|ǽ/' => 'ae',
'/ö|œ/' => 'oe',
'/ü/' => 'ue',
'/Ä/' => 'Ae',
'/Ü/' => 'Ue',
'/Ö/' => 'Oe',
'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
'/Б/' => 'B',
'/б/' => 'b',
'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
'/ç|ć|ĉ|ċ|č/' => 'c',
'/Д/' => 'D',
'/д/' => 'd',
'/Ð|Ď|Đ|Δ/' => 'Dj',
'/ð|ď|đ|δ/' => 'dj',
'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
'/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
'/Ф/' => 'F',
'/ф/' => 'f',
'/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
'/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
'/Ĥ|Ħ/' => 'H',
'/ĥ|ħ/' => 'h',
'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
'/Ĵ/' => 'J',
'/ĵ/' => 'j',
'/Ķ|Κ|К/' => 'K',
'/ķ|κ|к/' => 'k',
'/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
'/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
'/М/' => 'M',
'/м/' => 'm',
'/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
'/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
'/П/' => 'P',
'/п/' => 'p',
'/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
'/ŕ|ŗ|ř|ρ|р/' => 'r',
'/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
'/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
'/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
'/ț|ţ|ť|ŧ|т/' => 't',
'/Þ|þ/' => 'th',
'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
'/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
'/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
'/В/' => 'V',
'/в/' => 'v',
'/Ŵ/' => 'W',
'/ŵ/' => 'w',
'/Ź|Ż|Ž|Ζ|З/' => 'Z',
'/ź|ż|ž|ζ|з/' => 'z',
'/Æ|Ǽ/' => 'AE',
'/ß/' => 'ss',
'/IJ/' => 'IJ',
'/ij/' => 'ij',
'/Œ/' => 'OE',
'/ƒ/' => 'f',
'/ξ/' => 'ks',
'/π/' => 'p',
'/β/' => 'v',
'/μ/' => 'm',
'/ψ/' => 'ps',
'/Ё/' => 'Yo',
'/ё/' => 'yo',
'/Є/' => 'Ye',
'/є/' => 'ye',
'/Ї/' => 'Yi',
'/Ж/' => 'Zh',
'/ж/' => 'zh',
'/Х/' => 'Kh',
'/х/' => 'kh',
'/Ц/' => 'Ts',
'/ц/' => 'ts',
'/Ч/' => 'Ch',
'/ч/' => 'ch',
'/Ш/' => 'Sh',
'/ш/' => 'sh',
'/Щ/' => 'Shch',
'/щ/' => 'shch',
'/Ъ|ъ|Ь|ь/' => '',
'/Ю/' => 'Yu',
'/ю/' => 'yu',
'/Я/' => 'Ya',
'/я/' => 'ya'
);

View File

@ -0,0 +1,20 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/hooks.html
|
*/
$hook['pre_controller'] = array(
'class' => 'SetTimezoneClass',
'function' => 'setTimezone',
'filename' => 'SetTimezoneClass.php',
'filepath' => 'hooks'
);

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,25 @@
<?php
$config = array(
// Works in conjunction with MY_Model to provide pagination style
'pagination_style' => array(
'first_link' => '&lsaquo;&lsaquo;',
'next_link' => '&rsaquo;',
'prev_link' => '&lsaquo;',
'last_link' => '&rsaquo;&rsaquo;',
'full_tag_open' => '<ul class="pagination">',
'full_tag_close' => '</ul>',
'first_tag_open' => '<li>',
'first_tag_close' => '</li>',
'last_tag_open' => '<li>',
'last_tag_close' => '</li>',
'cur_tag_open' => '<li class="active"><a href="#">',
'cur_tag_close' => '</a></li>',
'next_tag_open' => '<li>',
'next_tag_close' => '</li>',
'prev_tag_open' => '<li>',
'prev_tag_close' => '</li>',
'num_links' => '10'
),
);

View File

@ -0,0 +1,19 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Memcached settings
| -------------------------------------------------------------------------
| Your Memcached servers can be specified below.
|
| See: https://codeigniter.com/user_guide/libraries/caching.html#memcached
|
*/
$config = array(
'default' => array(
'hostname' => '127.0.0.1',
'port' => '11211',
'weight' => '1',
),
);

View File

@ -0,0 +1,84 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Enable/Disable Migrations
|--------------------------------------------------------------------------
|
| Migrations are disabled by default for security reasons.
| You should enable migrations whenever you intend to do a schema migration
| and disable it back when you're done.
|
*/
$config['migration_enabled'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migration Type
|--------------------------------------------------------------------------
|
| Migration file names may be based on a sequential identifier or on
| a timestamp. Options are:
|
| 'sequential' = Sequential migration naming (001_add_blog.php)
| 'timestamp' = Timestamp migration naming (20121031104401_add_blog.php)
| Use timestamp format YYYYMMDDHHIISS.
|
| Note: If this configuration value is missing the Migration library
| defaults to 'sequential' for backward compatibility with CI2.
|
*/
$config['migration_type'] = 'timestamp';
/*
|--------------------------------------------------------------------------
| Migrations table
|--------------------------------------------------------------------------
|
| This is the name of the table that will store the current migrations state.
| When migrations runs it will store in a database table which migration
| level the system is at. It then compares the migration level in this
| table to the $config['migration_version'] if they are not the same it
| will migrate up. This must be set.
|
*/
$config['migration_table'] = 'migrations';
/*
|--------------------------------------------------------------------------
| Auto Migrate To Latest
|--------------------------------------------------------------------------
|
| If this is set to TRUE when you load the migrations class and have
| $config['migration_enabled'] set to TRUE the system will auto migrate
| to your latest migration (whatever $config['migration_version'] is
| set to). This way you do not have to call migrations anywhere else
| in your code to have the latest migration.
|
*/
$config['migration_auto_latest'] = FALSE;
/*
|--------------------------------------------------------------------------
| Migrations version
|--------------------------------------------------------------------------
|
| This is used to set migration version that the file system should be on.
| If you run $this->migration->current() this is the version that schema will
| be upgraded / downgraded to.
|
*/
$config['migration_version'] = 0;
/*
|--------------------------------------------------------------------------
| Migrations Path
|--------------------------------------------------------------------------
|
| Path to your migrations folder.
| Typically, it will be within your application path.
| Also, writing permission is required within the migrations path.
|
*/
$config['migration_path'] = APPPATH . 'migrations/';

View File

@ -0,0 +1,183 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| MIME TYPES
| -------------------------------------------------------------------
| This file contains an array of mime types. It is used by the
| Upload class to help identify allowed file types.
|
*/
return array(
'hqx' => array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'),
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'),
'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'),
'dms' => 'application/octet-stream',
'lha' => 'application/octet-stream',
'lzh' => 'application/octet-stream',
'exe' => array('application/octet-stream', 'application/x-msdownload'),
'class' => 'application/octet-stream',
'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'),
'so' => 'application/octet-stream',
'sea' => 'application/octet-stream',
'dll' => 'application/octet-stream',
'oda' => 'application/oda',
'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'),
'ai' => array('application/pdf', 'application/postscript'),
'eps' => 'application/postscript',
'ps' => 'application/postscript',
'smi' => 'application/smil',
'smil' => 'application/smil',
'mif' => 'application/vnd.mif',
'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'),
'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'),
'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'),
'wbxml' => 'application/wbxml',
'wmlc' => 'application/wmlc',
'dcr' => 'application/x-director',
'dir' => 'application/x-director',
'dxr' => 'application/x-director',
'dvi' => 'application/x-dvi',
'gtar' => 'application/x-gtar',
'gz' => 'application/x-gzip',
'gzip' => 'application/x-gzip',
'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'),
'php4' => 'application/x-httpd-php',
'php3' => 'application/x-httpd-php',
'phtml' => 'application/x-httpd-php',
'phps' => 'application/x-httpd-php-source',
'js' => array('application/x-javascript', 'text/plain'),
'swf' => 'application/x-shockwave-flash',
'sit' => 'application/x-stuffit',
'tar' => 'application/x-tar',
'tgz' => array('application/x-tar', 'application/x-gzip-compressed'),
'z' => 'application/x-compress',
'xhtml' => 'application/xhtml+xml',
'xht' => 'application/xhtml+xml',
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'),
'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'),
'mid' => 'audio/midi',
'midi' => 'audio/midi',
'mpga' => 'audio/mpeg',
'mp2' => 'audio/mpeg',
'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),
'aif' => array('audio/x-aiff', 'audio/aiff'),
'aiff' => array('audio/x-aiff', 'audio/aiff'),
'aifc' => 'audio/x-aiff',
'ram' => 'audio/x-pn-realaudio',
'rm' => 'audio/x-pn-realaudio',
'rpm' => 'audio/x-pn-realaudio-plugin',
'ra' => 'audio/x-realaudio',
'rv' => 'video/vnd.rn-realvideo',
'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'),
'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'),
'gif' => 'image/gif',
'jpeg' => array('image/jpeg', 'image/pjpeg'),
'jpg' => array('image/jpeg', 'image/pjpeg'),
'jpe' => array('image/jpeg', 'image/pjpeg'),
'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'),
'png' => array('image/png', 'image/x-png'),
'tiff' => 'image/tiff',
'tif' => 'image/tiff',
'css' => array('text/css', 'text/plain'),
'html' => array('text/html', 'text/plain'),
'htm' => array('text/html', 'text/plain'),
'shtml' => array('text/html', 'text/plain'),
'txt' => 'text/plain',
'text' => 'text/plain',
'log' => array('text/plain', 'text/x-log'),
'rtx' => 'text/richtext',
'rtf' => 'text/rtf',
'xml' => array('application/xml', 'text/xml', 'text/plain'),
'xsl' => array('application/xml', 'text/xsl', 'text/xml'),
'mpeg' => 'video/mpeg',
'mpg' => 'video/mpeg',
'mpe' => 'video/mpeg',
'qt' => 'video/quicktime',
'mov' => 'video/quicktime',
'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'),
'movie' => 'video/x-sgi-movie',
'doc' => array('application/msword', 'application/vnd.ms-office'),
'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'),
'dot' => array('application/msword', 'application/vnd.ms-office'),
'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'),
'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'),
'word' => array('application/msword', 'application/octet-stream'),
'xl' => 'application/excel',
'eml' => 'message/rfc822',
'json' => array('application/json', 'text/json'),
'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'),
'p10' => array('application/x-pkcs10', 'application/pkcs10'),
'p12' => 'application/x-pkcs12',
'p7a' => 'application/x-pkcs7-signature',
'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'),
'p7r' => 'application/x-pkcs7-certreqresp',
'p7s' => 'application/pkcs7-signature',
'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'),
'crl' => array('application/pkix-crl', 'application/pkcs-crl'),
'der' => 'application/x-x509-ca-cert',
'kdb' => 'application/octet-stream',
'pgp' => 'application/pgp',
'gpg' => 'application/gpg-keys',
'sst' => 'application/octet-stream',
'csr' => 'application/octet-stream',
'rsa' => 'application/x-pkcs7',
'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'),
'3g2' => 'video/3gpp2',
'3gp' => array('video/3gp', 'video/3gpp'),
'mp4' => 'video/mp4',
'm4a' => 'audio/x-m4a',
'f4v' => array('video/mp4', 'video/x-f4v'),
'flv' => 'video/x-flv',
'webm' => 'video/webm',
'aac' => 'audio/x-acc',
'm4u' => 'application/vnd.mpegurl',
'm3u' => 'text/plain',
'xspf' => 'application/xspf+xml',
'vlc' => 'application/videolan',
'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'),
'au' => 'audio/x-au',
'ac3' => 'audio/ac3',
'flac' => 'audio/x-flac',
'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'),
'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'),
'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'),
'ics' => 'text/calendar',
'ical' => 'text/calendar',
'zsh' => 'text/x-scriptzsh',
'7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'),
'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'),
'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'),
'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'),
'svg' => array('image/svg+xml', 'application/xml', 'text/xml'),
'vcf' => 'text/x-vcard',
'srt' => array('text/srt', 'text/plain'),
'vtt' => array('text/vtt', 'text/plain'),
'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon'),
'odc' => 'application/vnd.oasis.opendocument.chart',
'otc' => 'application/vnd.oasis.opendocument.chart-template',
'odf' => 'application/vnd.oasis.opendocument.formula',
'otf' => 'application/vnd.oasis.opendocument.formula-template',
'odg' => 'application/vnd.oasis.opendocument.graphics',
'otg' => 'application/vnd.oasis.opendocument.graphics-template',
'odi' => 'application/vnd.oasis.opendocument.image',
'oti' => 'application/vnd.oasis.opendocument.image-template',
'odp' => 'application/vnd.oasis.opendocument.presentation',
'otp' => 'application/vnd.oasis.opendocument.presentation-template',
'ods' => 'application/vnd.oasis.opendocument.spreadsheet',
'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template',
'odt' => 'application/vnd.oasis.opendocument.text',
'odm' => 'application/vnd.oasis.opendocument.text-master',
'ott' => 'application/vnd.oasis.opendocument.text-template',
'oth' => 'application/vnd.oasis.opendocument.text-web'
);

View File

@ -0,0 +1,504 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| Online Payment Providers
| -------------------------------------------------------------------
| This is a list of available online payment providers that are
| used by the settings.
|
*/
$config['payment_gateways'] = array(
'AuthorizeNet_AIM' => array(
'apiLoginId' => array(
'type' => 'text',
'label' => 'Api Login Id',
),
'transactionKey' => array(
'type' => 'text',
'label' => 'Transaction Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
'developerMode' => array(
'type' => 'checkbox',
'label' => 'Developer Mode',
),
//'liveEndpoint' => array(
// 'type' => 'text',
// 'label' => 'Live Endpoint',
//),
//'developerEndpoint' => array(
// 'type' => 'text',
// 'label' => 'Developer Endpoint',
//),
),
'AuthorizeNet_SIM' => array(
'apiLoginId' => array(
'type' => 'text',
'label' => 'Api Login Id',
),
'transactionKey' => array(
'type' => 'text',
'label' => 'Transaction Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
'developerMode' => array(
'type' => 'checkbox',
'label' => 'Developer Mode',
),
//'liveEndpoint' => array(
// 'type' => 'text',
// 'label' => 'Live Endpoint',
//),
//'developerEndpoint' => array(
// 'type' => 'text',
// 'label' => 'Developer Endpoint',
//),
//'hashSecret' => array(
// 'type' => 'text',
// 'label' => 'Hash Secret',
//),
),
'Buckaroo_Ideal' => array(
'websiteKey' => array(
'type' => 'text',
'label' => 'Website Key',
),
'secretKey' => array(
'type' => 'password',
'label' => 'Secret Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Buckaroo_PayPal' => array(
'websiteKey' => array(
'type' => 'text',
'label' => 'Website Key',
),
'secretKey' => array(
'type' => 'password',
'label' => 'Secret Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'CardSave' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
),
'Coinbase' => array(
'apiKey' => array(
'type' => 'text',
'label' => 'Api Key',
),
'secret' => array(
'type' => 'password',
'label' => 'Secret',
),
'accountId' => array(
'type' => 'text',
'label' => 'Account Id',
),
),
'Eway_Rapid' => array(
'apiKey' => array(
'type' => 'text',
'label' => 'Api Key',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'FirstData_Connect' => array(
'storeId' => array(
'type' => 'text',
'label' => 'Store Id',
),
'sharedSecret' => array(
'type' => 'password',
'label' => 'Shared Secret',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'GoCardless' => array(
'appId' => array(
'type' => 'text',
'label' => 'App Id',
),
'appSecret' => array(
'type' => 'password',
'label' => 'App Secret',
),
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'accessToken' => array(
'type' => 'text',
'label' => 'Access Token',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Migs_ThreeParty' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'merchantAccessCode' => array(
'type' => 'text',
'label' => 'Merchant Access Code',
),
'secureHash' => array(
'type' => 'text',
'label' => 'Secure Hash',
),
),
'Migs_TwoParty' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'merchantAccessCode' => array(
'type' => 'text',
'label' => 'Merchant Access Code',
),
'secureHash' => array(
'type' => 'text',
'label' => 'Secure Hash',
),
),
'Mollie' => array(
'apiKey' => array(
'type' => 'text',
'label' => 'Api Key',
),
),
'MultiSafepay' => array(
'accountId' => array(
'type' => 'text',
'label' => 'Account Id',
),
'siteId' => array(
'type' => 'text',
'label' => 'Site Id',
),
'siteCode' => array(
'type' => 'text',
'label' => 'Site Code',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Netaxept' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'NetBanx' => array(
'accountNumber' => array(
'type' => 'text',
'label' => 'Account Number',
),
'storeId' => array(
'type' => 'text',
'label' => 'Store Id',
),
'storePassword' => array(
'type' => 'password',
'label' => 'Store Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'PayFast' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'merchantKey' => array(
'type' => 'text',
'label' => 'Merchant Key',
),
'pdtKey' => array(
'type' => 'text',
'label' => 'Pdt Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Payflow_Pro' => array(
'username' => array(
'type' => 'text',
'label' => 'Username',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'vendor' => array(
'type' => 'text',
'label' => 'Vendor',
),
'partner' => array(
'type' => 'text',
'label' => 'Partner',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'PaymentExpress_PxPay' => array(
'username' => array(
'type' => 'text',
'label' => 'Username',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'pxPostUsername' => array(
'type' => 'text',
'label' => 'Px Post Username',
),
'pxPostPassword' => array(
'type' => 'password',
'label' => 'Px Post Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'PaymentExpress_PxPost' => array(
'username' => array(
'type' => 'text',
'label' => 'Username',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'PayPal_Express' => array(
'username' => array(
'type' => 'text',
'label' => 'Username',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'signature' => array(
'type' => 'password',
'label' => 'Signature',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
//'solutionType' => array(
// 'type' => 'text',
// 'label' => 'Solution Type',
//),
//'landingPage' => array(
// 'type' => 'text',
// 'label' => 'Landing Page',
//),
//'brandName' => array(
// 'type' => 'text',
// 'label' => 'Brand Name',
//),
//'headerImageUrl' => array(
// 'type' => 'text',
// 'label' => 'Header Image Url',
//),
//'logoImageUrl' => array(
// 'type' => 'text',
// 'label' => 'Logo Image Url',
//),
//'borderColor' => array(
// 'type' => 'text',
// 'label' => 'Border Color',
//),
),
'PayPal_Pro' => array(
'username' => array(
'type' => 'text',
'label' => 'Username',
),
'password' => array(
'type' => 'password',
'label' => 'Password',
),
'signature' => array(
'type' => 'text',
'label' => 'Signature',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Pin' => array(
'secretKey' => array(
'type' => 'password',
'label' => 'Secret Key',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'SagePay_Direct' => array(
'vendor' => array(
'type' => 'text',
'label' => 'Vendor',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
'referrerId' => array(
'type' => 'text',
'label' => 'Referrer Id',
),
),
'SagePay_Server' => array(
'vendor' => array(
'type' => 'text',
'label' => 'Vendor',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
'referrerId' => array(
'type' => 'text',
'label' => 'Referrer Id',
),
),
'SecurePay_DirectPost' => array(
'merchantId' => array(
'type' => 'text',
'label' => 'Merchant Id',
),
'transactionPassword' => array(
'type' => 'password',
'label' => 'Transaction Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'Stripe' => array(
'apiKey' => array(
'type' => 'password',
'label' => 'Api Key',
),
),
'TargetPay_Directebanking' => array(
'subAccountId' => array(
'type' => 'text',
'label' => 'Sub Account Id',
),
),
'TargetPay_Ideal' => array(
'subAccountId' => array(
'type' => 'text',
'label' => 'Sub Account Id',
),
),
'TargetPay_Mrcash' => array(
'subAccountId' => array(
'type' => 'text',
'label' => 'Sub Account Id',
),
),
'TwoCheckout' => array(
'accountNumber' => array(
'type' => 'text',
'label' => 'Account Number',
),
'secretWord' => array(
'type' => 'password',
'label' => 'Secret Word',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
'WorldPay' => array(
'installationId' => array(
'type' => 'text',
'label' => 'Installation Id',
),
'accountId' => array(
'type' => 'text',
'label' => 'Account Id',
),
'secretWord' => array(
'type' => 'password',
'label' => 'Secret Word',
),
'callbackPassword' => array(
'type' => 'password',
'label' => 'Callback Password',
),
'testMode' => array(
'type' => 'checkbox',
'label' => 'Test Mode',
),
),
);

View File

@ -0,0 +1,14 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| Profiler Sections
| -------------------------------------------------------------------------
| This file lets you determine whether or not various sections of Profiler
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/profiling.html
|
*/

View File

@ -0,0 +1,54 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
| example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
| https://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are three reserved routes:
|
| $route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
| $route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router which controller/method to use if those
| provided in the URL cannot be matched to a valid route.
|
| $route['translate_uri_dashes'] = FALSE;
|
| This is not exactly a route, but allows you to automatically route
| controller and method names that contain dashes. '-' isn't a valid
| class or method name character, so it requires translation.
| When you set this option to TRUE, it will replace ALL dashes in the
| controller and method URI segments.
|
| Examples: my-controller/index -> my_controller/index
| my-controller/my-method -> my_controller/my_method
*/
$route['default_controller'] = 'dashboard';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;

View File

@ -0,0 +1,63 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| SMILEYS
| -------------------------------------------------------------------
| This file contains an array of smileys for use with the emoticon helper.
| Individual images can be used to replace multiple smileys. For example:
| :-) and :) use the same image replacement.
|
| Please see user guide for more info:
| https://codeigniter.com/user_guide/helpers/smiley_helper.html
|
*/
$smileys = array(
// smiley image name width height alt
':-)' => array('grin.gif', '19', '19', 'grin'),
':lol:' => array('lol.gif', '19', '19', 'LOL'),
':cheese:' => array('cheese.gif', '19', '19', 'cheese'),
':)' => array('smile.gif', '19', '19', 'smile'),
';-)' => array('wink.gif', '19', '19', 'wink'),
';)' => array('wink.gif', '19', '19', 'wink'),
':smirk:' => array('smirk.gif', '19', '19', 'smirk'),
':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'),
':-S' => array('confused.gif', '19', '19', 'confused'),
':wow:' => array('surprise.gif', '19', '19', 'surprised'),
':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'),
':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'),
'%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'),
';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'),
':P' => array('raspberry.gif', '19', '19', 'raspberry'),
':blank:' => array('blank.gif', '19', '19', 'blank stare'),
':long:' => array('longface.gif', '19', '19', 'long face'),
':ohh:' => array('ohh.gif', '19', '19', 'ohh'),
':grrr:' => array('grrr.gif', '19', '19', 'grrr'),
':gulp:' => array('gulp.gif', '19', '19', 'gulp'),
'8-/' => array('ohoh.gif', '19', '19', 'oh oh'),
':down:' => array('downer.gif', '19', '19', 'downer'),
':red:' => array('embarrassed.gif', '19', '19', 'red face'),
':sick:' => array('sick.gif', '19', '19', 'sick'),
':shut:' => array('shuteye.gif', '19', '19', 'shut eye'),
':-/' => array('hmm.gif', '19', '19', 'hmmm'),
'>:(' => array('mad.gif', '19', '19', 'mad'),
':mad:' => array('mad.gif', '19', '19', 'mad'),
'>:-(' => array('angry.gif', '19', '19', 'angry'),
':angry:' => array('angry.gif', '19', '19', 'angry'),
':zip:' => array('zip.gif', '19', '19', 'zipper'),
':kiss:' => array('kiss.gif', '19', '19', 'kiss'),
':ahhh:' => array('shock.gif', '19', '19', 'shock'),
':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'),
':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'),
':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'),
':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'),
':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'),
':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'),
':vampire:' => array('vampire.gif', '19', '19', 'vampire'),
':snake:' => array('snake.gif', '19', '19', 'snake'),
':exclaim:' => array('exclaim.gif', '19', '19', 'exclaim'),
':question:' => array('question.gif', '19', '19', 'question')
);

View File

@ -0,0 +1,214 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| USER AGENT TYPES
| -------------------------------------------------------------------
| This file contains four arrays of user agent data. It is used by the
| User Agent Class to help identify browser, platform, robot, and
| mobile device data. The array keys are used to identify the device
| and the array values are used to set the actual name of the item.
*/
$platforms = array(
'windows nt 10.0' => 'Windows 10',
'windows nt 6.3' => 'Windows 8.1',
'windows nt 6.2' => 'Windows 8',
'windows nt 6.1' => 'Windows 7',
'windows nt 6.0' => 'Windows Vista',
'windows nt 5.2' => 'Windows 2003',
'windows nt 5.1' => 'Windows XP',
'windows nt 5.0' => 'Windows 2000',
'windows nt 4.0' => 'Windows NT 4.0',
'winnt4.0' => 'Windows NT 4.0',
'winnt 4.0' => 'Windows NT',
'winnt' => 'Windows NT',
'windows 98' => 'Windows 98',
'win98' => 'Windows 98',
'windows 95' => 'Windows 95',
'win95' => 'Windows 95',
'windows phone' => 'Windows Phone',
'windows' => 'Unknown Windows OS',
'android' => 'Android',
'blackberry' => 'BlackBerry',
'iphone' => 'iOS',
'ipad' => 'iOS',
'ipod' => 'iOS',
'os x' => 'Mac OS X',
'ppc mac' => 'Power PC Mac',
'freebsd' => 'FreeBSD',
'ppc' => 'Macintosh',
'linux' => 'Linux',
'debian' => 'Debian',
'sunos' => 'Sun Solaris',
'beos' => 'BeOS',
'apachebench' => 'ApacheBench',
'aix' => 'AIX',
'irix' => 'Irix',
'osf' => 'DEC OSF',
'hp-ux' => 'HP-UX',
'netbsd' => 'NetBSD',
'bsdi' => 'BSDi',
'openbsd' => 'OpenBSD',
'gnu' => 'GNU/Linux',
'unix' => 'Unknown Unix OS',
'symbian' => 'Symbian OS'
);
// The order of this array should NOT be changed. Many browsers return
// multiple browser types so we want to identify the sub-type first.
$browsers = array(
'OPR' => 'Opera',
'Flock' => 'Flock',
'Edge' => 'Spartan',
'Chrome' => 'Chrome',
// Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
'Opera.*?Version' => 'Opera',
'Opera' => 'Opera',
'MSIE' => 'Internet Explorer',
'Internet Explorer' => 'Internet Explorer',
'Trident.* rv' => 'Internet Explorer',
'Shiira' => 'Shiira',
'Firefox' => 'Firefox',
'Chimera' => 'Chimera',
'Phoenix' => 'Phoenix',
'Firebird' => 'Firebird',
'Camino' => 'Camino',
'Netscape' => 'Netscape',
'OmniWeb' => 'OmniWeb',
'Safari' => 'Safari',
'Mozilla' => 'Mozilla',
'Konqueror' => 'Konqueror',
'icab' => 'iCab',
'Lynx' => 'Lynx',
'Links' => 'Links',
'hotjava' => 'HotJava',
'amaya' => 'Amaya',
'IBrowse' => 'IBrowse',
'Maxthon' => 'Maxthon',
'Ubuntu' => 'Ubuntu Web Browser'
);
$mobiles = array(
// legacy array, old values commented out
'mobileexplorer' => 'Mobile Explorer',
// 'openwave' => 'Open Wave',
// 'opera mini' => 'Opera Mini',
// 'operamini' => 'Opera Mini',
// 'elaine' => 'Palm',
'palmsource' => 'Palm',
// 'digital paths' => 'Palm',
// 'avantgo' => 'Avantgo',
// 'xiino' => 'Xiino',
'palmscape' => 'Palmscape',
// 'nokia' => 'Nokia',
// 'ericsson' => 'Ericsson',
// 'blackberry' => 'BlackBerry',
// 'motorola' => 'Motorola'
// Phones and Manufacturers
'motorola' => 'Motorola',
'nokia' => 'Nokia',
'palm' => 'Palm',
'iphone' => 'Apple iPhone',
'ipad' => 'iPad',
'ipod' => 'Apple iPod Touch',
'sony' => 'Sony Ericsson',
'ericsson' => 'Sony Ericsson',
'blackberry' => 'BlackBerry',
'cocoon' => 'O2 Cocoon',
'blazer' => 'Treo',
'lg' => 'LG',
'amoi' => 'Amoi',
'xda' => 'XDA',
'mda' => 'MDA',
'vario' => 'Vario',
'htc' => 'HTC',
'samsung' => 'Samsung',
'sharp' => 'Sharp',
'sie-' => 'Siemens',
'alcatel' => 'Alcatel',
'benq' => 'BenQ',
'ipaq' => 'HP iPaq',
'mot-' => 'Motorola',
'playstation portable' => 'PlayStation Portable',
'playstation 3' => 'PlayStation 3',
'playstation vita' => 'PlayStation Vita',
'hiptop' => 'Danger Hiptop',
'nec-' => 'NEC',
'panasonic' => 'Panasonic',
'philips' => 'Philips',
'sagem' => 'Sagem',
'sanyo' => 'Sanyo',
'spv' => 'SPV',
'zte' => 'ZTE',
'sendo' => 'Sendo',
'nintendo dsi' => 'Nintendo DSi',
'nintendo ds' => 'Nintendo DS',
'nintendo 3ds' => 'Nintendo 3DS',
'wii' => 'Nintendo Wii',
'open web' => 'Open Web',
'openweb' => 'OpenWeb',
// Operating Systems
'android' => 'Android',
'symbian' => 'Symbian',
'SymbianOS' => 'SymbianOS',
'elaine' => 'Palm',
'series60' => 'Symbian S60',
'windows ce' => 'Windows CE',
// Browsers
'obigo' => 'Obigo',
'netfront' => 'Netfront Browser',
'openwave' => 'Openwave Browser',
'mobilexplorer' => 'Mobile Explorer',
'operamini' => 'Opera Mini',
'opera mini' => 'Opera Mini',
'opera mobi' => 'Opera Mobile',
'fennec' => 'Firefox Mobile',
// Other
'digital paths' => 'Digital Paths',
'avantgo' => 'AvantGo',
'xiino' => 'Xiino',
'novarra' => 'Novarra Transcoder',
'vodafone' => 'Vodafone',
'docomo' => 'NTT DoCoMo',
'o2' => 'O2',
// Fallback
'mobile' => 'Generic Mobile',
'wireless' => 'Generic Mobile',
'j2me' => 'Generic Mobile',
'midp' => 'Generic Mobile',
'cldc' => 'Generic Mobile',
'up.link' => 'Generic Mobile',
'up.browser' => 'Generic Mobile',
'smartphone' => 'Generic Mobile',
'cellphone' => 'Generic Mobile'
);
// There are hundreds of bots but these are the most common.
$robots = array(
'googlebot' => 'Googlebot',
'msnbot' => 'MSNBot',
'baiduspider' => 'Baiduspider',
'bingbot' => 'Bing',
'slurp' => 'Inktomi Slurp',
'yahoo' => 'Yahoo',
'ask jeeves' => 'Ask Jeeves',
'fastcrawler' => 'FastCrawler',
'infoseek' => 'InfoSeek Robot 1.0',
'lycos' => 'Lycos',
'yandex' => 'YandexBot',
'mediapartners-google' => 'MediaPartners Google',
'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
'adsbot-google' => 'AdsBot Google',
'feedfetcher-google' => 'Feedfetcher Google',
'curious george' => 'Curious George',
'ia_archiver' => 'Alexa Crawler',
'MJ12bot' => 'Majestic-12',
'Uptimebot' => 'Uptimebot'
);

View File

@ -0,0 +1,25 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Welcome extends CI_Controller
{
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see https://codeigniter.com/user_guide/general/urls.html
*/
public function index()
{
$this->load->view('welcome_message');
}
}

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,22 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Admin_Controller
*/
class Admin_Controller extends User_Controller
{
public function __construct()
{
parent::__construct('user_type', 1);
}
}

View File

@ -0,0 +1,76 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Base_Controller
*/
class Base_Controller extends MX_Controller
{
public $ajax_controller = false;
public function __construct()
{
parent::__construct();
$this->config->load('invoice_plane');
// Don't allow non-ajax requests to ajax controllers
if ($this->ajax_controller && !$this->input->is_ajax_request()) {
exit;
}
// Load basic stuff
$this->load->library('session');
$this->load->helper('redirect');
$this->load->helper('url');
// Check if database has been configured
if (!env_bool('SETUP_COMPLETED')) {
redirect('/welcome');
} else {
$this->load->library('encryption');
$this->load->library('form_validation');
$this->load->library('session');
$this->load->database();
$this->load->helper('trans');
$this->load->helper('number');
$this->load->helper('pager');
$this->load->helper('invoice');
$this->load->helper('date');
$this->load->helper('form');
$this->load->helper('echo');
$this->load->helper('client');
// Load setting model and load settings
$this->load->model('settings/mdl_settings');
$this->mdl_settings->load_settings();
$this->load->helper('settings');
// Load the language based on user config, fall back to system if needed
$user_lang = $this->session->userdata('user_language');
if (empty($user_lang) || $user_lang == 'system') {
set_language(get_setting('default_language'));
} else {
set_language($user_lang);
}
$this->load->helper('language');
// Load the layout module to start building the app
$this->load->module('layout');
}
}
}

View File

@ -0,0 +1,25 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Form_Validation_Model
*/
class Form_Validation_Model extends MY_Model
{
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->form_validation->CI =& $this;
}
}

View File

@ -0,0 +1,44 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Guest_Controller
*/
class Guest_Controller extends User_Controller
{
public $user_clients = array();
public function __construct()
{
parent::__construct('user_type', 2);
$this->load->model('user_clients/mdl_user_clients');
$user_clients = $this->mdl_user_clients->assigned_to($this->session->userdata('user_id'))->get()->result();
if (!$user_clients) {
?>
<html style="display:table;width:100%;">
<body style="font-family:sans-serif;background:#B94A48;color:#fff;height:100vh;display:table-cell;vertical-align:middle;">
<p style="font-size:20px;text-align:center;width:100%;"><?php echo trans('guest_account_denied'); ?></p>
</body>
</html>
<?php
exit;
}
foreach ($user_clients as $user_client) {
$this->user_clients[$user_client->client_id] = $user_client->client_id;
}
}
}

View File

@ -0,0 +1,9 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/* load the MX_Loader class */
require APPPATH . "third_party/MX/Loader.php";
class MY_Loader extends MX_Loader
{
}

View File

@ -0,0 +1,416 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter CRUD Model 2
* A base model providing CRUD, pagination and validation.
*
* Install this file as application/core/MY_Model.php
*
* @package CodeIgniter
* @author Jesse Terry
* @copyright Copyright (c) 2012-2013, Jesse Terry
* @link http://developer13.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
*/
class MY_Model extends CI_Model
{
public $table;
public $primary_key;
public $default_limit = 15;
public $page_links;
public $query;
public $form_values = array();
public $validation_errors;
public $total_rows;
public $date_created_field;
public $date_modified_field;
public $native_methods = array(
'select', 'select_max', 'select_min', 'select_avg', 'select_sum', 'join',
'where', 'or_where', 'where_in', 'or_where_in', 'where_not_in', 'or_where_not_in',
'like', 'or_like', 'not_like', 'or_not_like', 'group_by', 'distinct', 'having',
'or_having', 'order_by', 'limit'
);
public $total_pages = 0;
public $current_page;
public $next_page;
public $previous_page;
public $offset;
public $next_offset;
public $previous_offset;
public $last_offset;
public $id;
public $filter = array();
protected $default_validation_rules = 'validation_rules';
protected $validation_rules;
public function __call($name, $arguments)
{
if (substr($name, 0, 7) == 'filter_') {
$this->filter[] = array(substr($name, 7), $arguments);
} else {
call_user_func_array(array($this->db, $name), $arguments);
}
return $this;
}
/**
* Sets CI query object and automatically creates active record query
* based on methods in child model.
* $this->model_name->get()
*/
public function get($include_defaults = true)
{
if ($include_defaults) {
$this->set_defaults();
}
$this->run_filters();
$this->query = $this->db->get($this->table);
$this->filter = array();
return $this;
}
/**
* Query builder which listens to methods in child model
*
* @param array $exclude
*/
private function set_defaults($exclude = array())
{
$native_methods = $this->native_methods;
foreach ($exclude as $unset_method) {
unset($native_methods[array_search($unset_method, $native_methods)]);
}
foreach ($native_methods as $native_method) {
$native_method = 'default_' . $native_method;
if (method_exists($this, $native_method)) {
$this->$native_method();
}
}
}
private function run_filters()
{
foreach ($this->filter as $filter) {
call_user_func_array(array($this->db, $filter[0]), $filter[1]);
}
/**
* Clear the filter array since this should only be run once per model
* execution
*/
$this->filter = array();
}
/**
* Call when paginating results
* $this->model_name->paginate()
*
* @param $base_url
* @param int $offset
* @param int $uri_segment
*/
public function paginate($base_url, $offset = 0, $uri_segment = 3)
{
$this->load->helper('url');
$this->load->library('pagination');
$this->offset = $offset;
$default_list_limit = $this->mdl_settings->setting('default_list_limit');
$per_page = (empty($default_list_limit) ? $this->default_limit : $default_list_limit);
$this->set_defaults();
$this->run_filters();
$this->db->limit($per_page, $this->offset);
$this->query = $this->db->get($this->table);
$this->total_rows = $this->db->query('SELECT FOUND_ROWS() AS num_rows')->row()->num_rows;
$this->total_pages = ceil($this->total_rows / $per_page);
$this->previous_offset = $this->offset - $per_page;
$this->next_offset = $this->offset + $per_page;
$config = array(
'base_url' => $base_url,
'total_rows' => $this->total_rows,
'per_page' => $per_page
);
$this->last_offset = ($this->total_pages * $per_page) - $per_page;
if ($this->config->item('pagination_style')) {
$config = array_merge($config, $this->config->item('pagination_style'));
}
$this->pagination->initialize($config);
$this->page_links = $this->pagination->create_links();
}
/**
* Function to save an entry to the database
*
* @param null $id
* @param null $db_array
* @return null
*/
public function save($id = null, $db_array = null)
{
if (!$db_array) {
$db_array = $this->db_array();
}
$datetime = date('Y-m-d H:i:s');
if (!$id) {
if ($this->date_created_field) {
if (is_array($db_array)) {
$db_array[$this->date_created_field] = $datetime;
if ($this->date_modified_field) {
$db_array[$this->date_modified_field] = $datetime;
}
} else {
$db_array->{$this->date_created_field} = $datetime;
if ($this->date_modified_field) {
$db_array->{$this->date_modified_field} = $datetime;
}
}
} elseif ($this->date_modified_field) {
if (is_array($db_array)) {
$db_array[$this->date_modified_field] = $datetime;
} else {
$db_array->{$this->date_modified_field} = $datetime;
}
}
$this->db->insert($this->table, $db_array);
return $this->db->insert_id();
} else {
if ($this->date_modified_field) {
if (is_array($db_array)) {
$db_array[$this->date_modified_field] = $datetime;
} else {
$db_array->{$this->date_modified_field} = $datetime;
}
}
$this->db->where($this->primary_key, $id);
$this->db->update($this->table, $db_array);
return $id;
}
}
/**
* Returns an array based on $_POST input matching the ruleset used to
* validate the form submission.
*
* @return array
*/
public function db_array()
{
$db_array = array();
$validation_rules = $this->{$this->validation_rules}();
foreach ($this->input->post() as $key => $value) {
if (array_key_exists($key, $validation_rules)) {
$db_array[$key] = $value;
}
}
return $db_array;
}
/**
* Deletes a record based on primary key value
* $this->model_name->delete(5);
*
* @param $id
*/
public function delete($id)
{
$this->db->where($this->primary_key, $id);
$this->db->delete($this->table);
}
/**
* Returns the CI query result object
* $this->model_name->get()->result();
*
* @return mixed
*/
public function result()
{
return $this->query->result();
}
/**
* Returns the CI query row object
* $this->model_name->get()->row();
*
* @return mixed
*/
public function row()
{
return $this->query->row();
}
/**
* Returns CI query result array
* $this->model_name->get()->result_array();
*
* @return mixed
*/
public function result_array()
{
return $this->query->result_array();
}
/**
* Returns CI query row array
* $this->model_name->get()->row_array();
*
* @return mixed
*/
public function row_array()
{
return $this->query->row_array();
}
/**
* Returns CI query num_rows()
* $this->model_name->get()->num_rows();
*
* @return mixed
*/
public function num_rows()
{
return $this->query->num_rows();
}
/**
* Used to retrieve record by ID and populate $this->form_values
*
* @param int $id
* @return boolean|null
*/
public function prep_form($id = null)
{
if (!$_POST and ($id)) {
$row = $this->get_by_id($id);
if ($row) {
foreach ($row as $key => $value) {
$this->form_values[$key] = $value;
}
return true;
}
return false;
} elseif (!$id) {
return true;
}
}
/**
* Retrieves a single record based on primary key value
*
* @param $id
* @return mixed
*/
public function get_by_id($id)
{
return $this->where($this->primary_key, $id)->get()->row();
}
/**
* Performs validation on submitted form. By default, looks for method in
* child model called validation_rules, but can be forced to run validation
* on any method in child model which returns array of validation rules.
*
* @param null|string $validation_rules
* @return mixed
*/
public function run_validation($validation_rules = null)
{
if (!$validation_rules) {
$validation_rules = $this->default_validation_rules;
}
foreach (array_keys($_POST) as $key) {
$this->form_values[$key] = $this->input->post($key);
}
if (method_exists($this, $validation_rules)) {
$this->validation_rules = $validation_rules;
$this->load->library('form_validation');
$this->form_validation->set_rules($this->$validation_rules());
$run = $this->form_validation->run();
$this->validation_errors = validation_errors();
return $run;
}
}
/**
* Returns the assigned form value to a form input element
*
* @param string $key
* @param bool $escape
* @return mixed|string
*/
public function form_value($key, $escape = false)
{
$value = isset($this->form_values[$key]) ? $this->form_values[$key] : '';
return $escape ? htmlspecialchars($value) : $value;
}
/**
* @param string $key
* @param $value
*/
public function set_form_value($key, $value)
{
$this->form_values[$key] = $value;
}
/**
* @param $id
*/
public function set_id($id)
{
$this->id = $id;
}
}

View File

@ -0,0 +1,8 @@
<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
/* load the MX_Router class */
require APPPATH . "third_party/MX/Router.php";
class MY_Router extends MX_Router
{
}

View File

@ -0,0 +1,45 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Response_Model
*/
class Response_Model extends Form_Validation_Model
{
/**
* @param null|int $id
* @param null|array $db_array
* @return null|int
*/
public function save($id = null, $db_array = null)
{
if ($id) {
$this->session->set_flashdata('alert_success', trans('record_successfully_updated'));
parent::save($id, $db_array);
} else {
$this->session->set_flashdata('alert_success', trans('record_successfully_created'));
$id = parent::save(null, $db_array);
}
return $id;
}
/**
* @param int $id
*/
public function delete($id)
{
parent::delete($id);
$this->session->set_flashdata('alert_success', trans('record_successfully_deleted'));
}
}

View File

@ -0,0 +1,31 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class User_Controller
*/
class User_Controller extends Base_Controller
{
/**
* User_Controller constructor.
* @param string $required_key
* @param integer $required_val
*/
public function __construct($required_key, $required_val)
{
parent::__construct();
if ($this->session->userdata($required_key) <> $required_val) {
redirect('sessions/login');
}
}
}

View File

@ -0,0 +1,252 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Class Validator
*/
class Validator extends MY_Model
{
public function validate_text()
{
return true;
}
/**
* @param $value
* @return bool|null
*/
public function validate_date($value)
{
if ($value == "") {
return null;
}
if (!is_date($value)) {
$this->form_validation->set_message('validate_date', 'Invalid date');
return false;
}
return true;
}
/**
* @param $value
* @return bool|null
*/
public function validate_boolean($value)
{
if ($value == "0" || $value == "1") {
return true;
}
if ($value == "") {
return null;
}
return false;
}
/**
* @param $value
* @param $key
* @return null
*/
public function validate_singlechoice($value, $key)
{
if ($value == "") {
return null;
}
$this->load->model('custom_values/mdl_custom_values', 'custom_value');
$result = $this->custom_value->column_has_value($key, $value);
return $result;
}
/**
* @param $value
* @param $key
* @return bool|null
*/
public function validate_multiplechoice($value, $id)
{
if ($value == "") {
return null;
}
$this->load->model('custom_values/mdl_custom_values', 'custom_value');
$this->custom_value->where('custom_field_id', $id);
$dbvals = $this->custom_value->where_in('custom_values_id', $value)->get();
if ($dbvals->num_rows() == sizeof($value)) {
return true;
}
return false;
}
/**
* @return array
*/
public function validation_rules()
{
return array(
'custom_field_table' => array(
'field' => 'custom_field_table',
'label' => trans('table'),
'rules' => 'required'
),
'custom_field_label' => array(
'field' => 'custom_field_label',
'label' => trans('label'),
'rules' => 'required|max_length[50]'
),
'custom_field_type' => array(
'field' => 'custom_field_type',
'label' => trans('type'),
'rules' => 'required'
)
);
}
/**
* @param $column
* @return null
*/
public function get_field_type($column)
{
$this->load->model('custom_values/mdl_custom_fields', 'cf');
$el = $this->cf->get_by_column($column)->row();
if ($el == null) {
return null;
}
return $el->custom_field_type;
}
/**
* @param $array
* @return bool|string
*/
public function validate($array)
{
$this->load->model('custom_fields/mdl_custom_fields');
$this->load->model('custom_values/mdl_custom_values');
$db_array = $array;
$errors = [];
if (empty($db_array)) {
// Return true if no fields need to be validated
return true;
}
foreach ($db_array as $key => $value) {
$model = $this->mdl_custom_fields->where('custom_field_id', $key)->get();
if ($model->num_rows()) {
$model = $model->row();
if (@$model->custom_field_required == "1") {
if ($value == "") {
$errors[] = array(
"field" => $model->custom_field_id,
"label" => $model->custom_field_label,
"error_msg" => "missing field required"
);
continue;
}
}
$result = $this->validate_type($model->custom_field_type, $value, $key);
if ($result === false) {
$errors[] = array(
"field" => $model->custom_field_id,
"label" => $model->custom_field_label,
"error_msg" => "invalid input"
);
}
}
}
if (sizeof($errors) == 0) {
$this->_formdata = $db_array;
$this->fixinput();
return true;
}
return $this->create_error_text($errors);
}
/**
* @param $type
* @param $value
* @param $key
* @return mixed
*/
public function validate_type($type, $value, $key)
{
$nicename = $this->mdl_custom_fields->get_nicename(
$type
);
$validation_rule = 'validate_' . $nicename;
return $this->{$validation_rule}($value, $key);
}
public function fixinput()
{
foreach ($this->_formdata as $key => $value) {
$model = $this->mdl_custom_fields->where('custom_field_id', $key)->get();
if ($model->num_rows()) {
$model = $model->row();
$ftype = $model->custom_field_type;
switch ($ftype) {
case "DATE":
if ($value == "") {
$this->_formdata[$key] = null;
} else {
$this->_formdata[$key] = date_to_mysql($value);
}
break;
case "MULTIPLE-CHOICE":
$this->_formdata[$key] = implode(",", $value);
break;
case "TEXT":
if ($value == "") {
$this->_formdata[$key] = null;
}
break;
}
}
}
}
/**
* @param $errors
* @return string
*/
public function create_error_text($errors)
{
$string = [];
foreach ($errors as $error) {
$string[] = sprintf(lang('validator_fail'), $error['label'], $error['error_msg']);
}
return nl2br(implode("\n", $string));
}
}

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $heading; ?> - InvoicePlane</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
line-height: 1.2;
margin: 0;
}
html {
color: #777;
display: table;
font-family: sans-serif;
height: 100%;
text-align: center;
width: 100%;
}
body {
display: table-cell;
vertical-align: middle;
margin: 2em auto;
}
h1 {
color: #333;
font-size: 2em;
font-weight: 400;
}
p {
margin: 0 auto;
width: 280px;
}
@media only screen and (max-width: 280px) {
body, p {
width: 95%;
}
h1 {
font-size: 1.5em;
margin: 0 0 0.3em;
}
}
</style>
</head>
<body>
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $heading; ?> - InvoicePlane</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
line-height: 1.2;
margin: 0;
}
html {
color: #777;
display: table;
font-family: sans-serif;
height: 100%;
text-align: center;
width: 100%;
}
body {
display: table-cell;
vertical-align: middle;
margin: 2em auto;
}
h1 {
color: #333;
font-size: 2em;
font-weight: 400;
}
p {
margin: 1em auto;
width: 95%;
}
@media only screen and (max-width: 280px) {
body {
width: 95%;
}
h1 {
font-size: 1.5em;
margin: 0 0 0.3em;
}
}
</style>
</head>
<body>
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</body>
</html>

View File

@ -0,0 +1,59 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php echo $heading; ?> - InvoicePlane</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
* {
line-height: 1.2;
margin: 0;
}
html {
color: #777;
display: table;
font-family: sans-serif;
height: 100%;
text-align: center;
width: 100%;
}
body {
display: table-cell;
vertical-align: middle;
margin: 2em auto;
}
h1 {
color: #333;
font-size: 2em;
font-weight: 400;
}
p {
margin: 1em auto;
width: 95%;
}
@media only screen and (max-width: 280px) {
body {
width: 95%;
}
h1 {
font-size: 1.5em;
margin: 0 0 0.3em;
}
}
</style>
</head>
<body>
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</body>
</html>

View File

@ -0,0 +1,42 @@
<style>
.php-error-box {
margin: 0 0 1em 0;
}
.php-error-box--title {
background: #900;
color: #fff;
text-align: center;
padding: 0.5em;
border-radius: 4px 4px 0 0;
font-size: 1.25em;
}
.php-error-box--list {
border: 1px solid #900;
border-top: 0;
padding: 0.5em 1em;
border-radius: 0 0 4px 4px;
margin: 0;
list-style: none;
}
.php-error-box--item {
padding: 0.5em 0;
}
.php-error-box--item + .php-error-box--item {
border-top: 1px solid #f9f9f9;
}
</style>
<div class="php-error-box">
<div class="php-error-box--title">A PHP Error was encountered</div>
<ul class="php-error-box--list">
<li class="php-error-box--item">Severity: <?php echo $severity; ?></li>
<li class="php-error-box--item">Message: <?php echo $message; ?></li>
<li class="php-error-box--item">Filename: <?php echo $filepath; ?></li>
<li class="php-error-box--item">Line Number: <?php echo $line; ?></li>
</ul>
</div>

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,41 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* @param object $client
* @return string
*/
function format_client($client)
{
if ($client->client_surname != "") {
return $client->client_name . " " . $client->client_surname;
}
return $client->client_name;
}
/**
* @param string $gender
* @return string
*/
function format_gender($gender)
{
if ($gender == 0) {
return trans('gender_male');
}
if ($gender == 1) {
return trans('gender_female');
}
return trans('gender_other');
}

View File

@ -0,0 +1,248 @@
<?php return array(
'AW' => 'آروبا',
'AZ' => 'أذربيجان',
'AM' => 'أرمينيا',
'ES' => 'أسبانيا',
'AU' => 'أستراليا',
'AF' => 'أفغانستان',
'AL' => 'ألبانيا',
'DE' => 'ألمانيا',
'AG' => 'أنتيجوا وبربودا',
'AO' => 'أنجولا',
'AI' => 'أنجويلا',
'AD' => 'أندورا',
'UY' => 'أورجواي',
'UZ' => 'أوزبكستان',
'UG' => 'أوغندا',
'UA' => 'أوكرانيا',
'IE' => 'أيرلندا',
'IS' => 'أيسلندا',
'ET' => 'اثيوبيا',
'ER' => 'اريتريا',
'EE' => 'استونيا',
'IL' => 'اسرائيل',
'AR' => 'الأرجنتين',
'JO' => 'الأردن',
'EC' => 'الاكوادور',
'AE' => 'الامارات العربية المتحدة',
'BS' => 'الباهاما',
'BH' => 'البحرين',
'BR' => 'البرازيل',
'PT' => 'البرتغال',
'BA' => 'البوسنة والهرسك',
'GA' => 'الجابون',
'ME' => 'الجبل الأسود',
'DZ' => 'الجزائر',
'DK' => 'الدانمرك',
'CV' => 'الرأس الأخضر',
'SV' => 'السلفادور',
'SN' => 'السنغال',
'SD' => 'السودان',
'SE' => 'السويد',
'EH' => 'الصحراء الغربية',
'SO' => 'الصومال',
'CN' => 'الصين',
'IQ' => 'العراق',
'VA' => 'الفاتيكان',
'PH' => 'الفيلبين',
'AQ' => 'القطب الجنوبي',
'CM' => 'الكاميرون',
'CG' => 'الكونغو - برازافيل',
'KW' => 'الكويت',
'HU' => 'المجر',
'IO' => 'المحيط الهندي البريطاني',
'MA' => 'المغرب',
'TF' => 'المقاطعات الجنوبية الفرنسية',
'MX' => 'المكسيك',
'SA' => 'المملكة العربية السعودية',
'GB' => 'المملكة المتحدة',
'NO' => 'النرويج',
'AT' => 'النمسا',
'NE' => 'النيجر',
'IN' => 'الهند',
'US' => 'الولايات المتحدة الأمريكية',
'JP' => 'اليابان',
'YE' => 'اليمن',
'GR' => 'اليونان',
'ID' => 'اندونيسيا',
'IR' => 'ايران',
'IT' => 'ايطاليا',
'PG' => 'بابوا غينيا الجديدة',
'PY' => 'باراجواي',
'PK' => 'باكستان',
'PW' => 'بالاو',
'BW' => 'بتسوانا',
'PN' => 'بتكايرن',
'BB' => 'بربادوس',
'BM' => 'برمودا',
'BN' => 'بروناي',
'BE' => 'بلجيكا',
'BG' => 'بلغاريا',
'BZ' => 'بليز',
'BD' => 'بنجلاديش',
'PA' => 'بنما',
'BJ' => 'بنين',
'BT' => 'بوتان',
'PR' => 'بورتوريكو',
'BF' => 'بوركينا فاسو',
'BI' => 'بوروندي',
'PL' => 'بولندا',
'BO' => 'بوليفيا',
'PF' => 'بولينيزيا الفرنسية',
'PE' => 'بيرو',
'TZ' => 'تانزانيا',
'TH' => 'تايلند',
'TW' => 'تايوان',
'TM' => 'تركمانستان',
'TR' => 'تركيا',
'TT' => 'ترينيداد وتوباغو',
'TD' => 'تشاد',
'TG' => 'توجو',
'TV' => 'توفالو',
'TK' => 'توكيلو',
'TO' => 'تونجا',
'TN' => 'تونس',
'TL' => 'تيمور الشرقية',
'JM' => 'جامايكا',
'GI' => 'جبل طارق',
'GD' => 'جرينادا',
'GL' => 'جرينلاند',
'AX' => 'جزر أولان',
'AN' => 'جزر الأنتيل الهولندية',
'TC' => 'جزر الترك وجايكوس',
'KM' => 'جزر القمر',
'KY' => 'جزر الكايمن',
'MH' => 'جزر المارشال',
'MV' => 'جزر الملديف',
'UM' => 'جزر الولايات المتحدة البعيدة الصغيرة',
'SB' => 'جزر سليمان',
'FO' => 'جزر فارو',
'VI' => 'جزر فرجين الأمريكية',
'VG' => 'جزر فرجين البريطانية',
'FK' => 'جزر فوكلاند',
'CK' => 'جزر كوك',
'CC' => 'جزر كوكوس',
'MP' => 'جزر ماريانا الشمالية',
'WF' => 'جزر والس وفوتونا',
'CX' => 'جزيرة الكريسماس',
'BV' => 'جزيرة بوفيه',
'IM' => 'جزيرة مان',
'NF' => 'جزيرة نورفوك',
'HM' => 'جزيرة هيرد وماكدونالد',
'CF' => 'جمهورية افريقيا الوسطى',
'CZ' => 'جمهورية التشيك',
'DO' => 'جمهورية الدومينيك',
'CD' => 'جمهورية الكونغو الديمقراطية',
'ZA' => 'جمهورية جنوب افريقيا',
'GT' => 'جواتيمالا',
'GP' => 'جوادلوب',
'GU' => 'جوام',
'GE' => 'جورجيا',
'GS' => 'جورجيا الجنوبية وجزر ساندويتش الجنوبية',
'DJ' => 'جيبوتي',
'JE' => 'جيرسي',
'DM' => 'دومينيكا',
'RW' => 'رواندا',
'RU' => 'روسيا',
'BY' => 'روسيا البيضاء',
'RO' => 'رومانيا',
'RE' => 'روينيون',
'ZM' => 'زامبيا',
'ZW' => 'زيمبابوي',
'CI' => 'ساحل العاج',
'WS' => 'ساموا',
'AS' => 'ساموا الأمريكية',
'SM' => 'سان مارينو',
'PM' => 'سانت بيير وميكولون',
'VC' => 'سانت فنسنت وغرنادين',
'KN' => 'سانت كيتس ونيفيس',
'LC' => 'سانت لوسيا',
'MF' => 'سانت مارتين',
'SH' => 'سانت هيلنا',
'ST' => 'ساو تومي وبرينسيبي',
'LK' => 'سريلانكا',
'SJ' => 'سفالبارد وجان مايان',
'SK' => 'سلوفاكيا',
'SI' => 'سلوفينيا',
'SG' => 'سنغافورة',
'SZ' => 'سوازيلاند',
'SY' => 'سوريا',
'SR' => 'سورينام',
'CH' => 'سويسرا',
'SL' => 'سيراليون',
'SC' => 'سيشل',
'CL' => 'شيلي',
'RS' => 'صربيا',
'CS' => 'صربيا والجبل الأسود',
'TJ' => 'طاجكستان',
'OM' => 'عمان',
'GM' => 'غامبيا',
'GH' => 'غانا',
'GF' => 'غويانا',
'GY' => 'غيانا',
'GN' => 'غينيا',
'GQ' => 'غينيا الاستوائية',
'GW' => 'غينيا بيساو',
'VU' => 'فانواتو',
'FR' => 'فرنسا',
'PS' => 'فلسطين',
'VE' => 'فنزويلا',
'FI' => 'فنلندا',
'VN' => 'فيتنام',
'FJ' => 'فيجي',
'CY' => 'قبرص',
'KG' => 'قرغيزستان',
'QA' => 'قطر',
'KZ' => 'كازاخستان',
'NC' => 'كاليدونيا الجديدة',
'HR' => 'كرواتيا',
'KH' => 'كمبوديا',
'CA' => 'كندا',
'CU' => 'كوبا',
'KR' => 'كوريا الجنوبية',
'KP' => 'كوريا الشمالية',
'CR' => 'كوستاريكا',
'CO' => 'كولومبيا',
'KI' => 'كيريباتي',
'KE' => 'كينيا',
'LV' => 'لاتفيا',
'LA' => 'لاوس',
'LB' => 'لبنان',
'LU' => 'لوكسمبورج',
'LY' => 'ليبيا',
'LR' => 'ليبيريا',
'LT' => 'ليتوانيا',
'LI' => 'ليختنشتاين',
'LS' => 'ليسوتو',
'MQ' => 'مارتينيك',
'MO' => 'ماكاو الصينية',
'MT' => 'مالطا',
'ML' => 'مالي',
'MY' => 'ماليزيا',
'YT' => 'مايوت',
'MG' => 'مدغشقر',
'EG' => 'مصر',
'MK' => 'مقدونيا',
'MW' => 'ملاوي',
'ZZ' => 'منطقة غير معرفة',
'MN' => 'منغوليا',
'MR' => 'موريتانيا',
'MU' => 'موريشيوس',
'MZ' => 'موزمبيق',
'MD' => 'مولدافيا',
'MC' => 'موناكو',
'MS' => 'مونتسرات',
'MM' => 'ميانمار',
'FM' => 'ميكرونيزيا',
'NA' => 'ناميبيا',
'NR' => 'نورو',
'NP' => 'نيبال',
'NG' => 'نيجيريا',
'NI' => 'نيكاراجوا',
'NZ' => 'نيوزيلاندا',
'NU' => 'نيوي',
'HT' => 'هايتي',
'HN' => 'هندوراس',
'NL' => 'هولندا',
'HK' => 'هونج كونج الصينية',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AU' => 'Австралия',
'AT' => 'Австрия',
'AZ' => 'Азербайджан',
'AX' => 'Аландски о-ви',
'AL' => 'Албания',
'DZ' => 'Алжир',
'AS' => 'Американско Самоа',
'AO' => 'Ангола',
'AI' => 'Ангуила',
'AD' => 'Андора',
'AQ' => 'Антарктика',
'AG' => 'Антигуа и Барбуда',
'AR' => 'Аржентина',
'AM' => 'Армения',
'AW' => 'Аруба',
'AF' => 'Афганистан',
'BD' => 'Бангладеш',
'BB' => 'Барбадос',
'BS' => 'Бахами',
'BH' => 'Бахрейн',
'BY' => 'Беларус',
'BE' => 'Белгия',
'BZ' => 'Белиз',
'BJ' => 'Бенин',
'BM' => 'Бермуда',
'BO' => 'Боливия',
'BA' => 'Босна и Херцеговина',
'BW' => 'Ботсуана',
'BR' => 'Бразилия',
'VG' => 'Британски Вирджински острони',
'IO' => 'Британски територии в Индийския океан',
'BN' => 'Бруней Дарусалам',
'CI' => 'Бряг на слоновата кост',
'BF' => 'Буркина Фасо',
'BI' => 'Бурунди',
'BT' => 'Бутан',
'BG' => 'България',
'VU' => 'Вануату',
'VE' => 'Венецуела',
'VN' => 'Виетнам',
'GA' => 'Габон',
'GM' => 'Гамбия',
'GH' => 'Гана',
'GP' => 'Гваделупа',
'GT' => 'Гватемала',
'GY' => 'Гвиана',
'GN' => 'Гвинея',
'GW' => 'Гвинея-Бисау',
'DE' => 'Германия',
'GI' => 'Гибралтар',
'GD' => 'Гренада',
'GL' => 'Гренландия',
'GE' => 'Грузия',
'GU' => 'Гуам',
'GR' => 'Гърция',
'DK' => 'Дания',
'CD' => 'Демократична република Конго',
'DJ' => 'Джибути',
'DM' => 'Доминика',
'DO' => 'Доминиканска република',
'EG' => 'Египет',
'EC' => 'Еквадор',
'GQ' => 'Екваториална Гвинея',
'SV' => 'Ел Салвадор',
'ER' => 'Еритрея',
'EE' => 'Естония',
'ET' => 'Етиопия',
'ZM' => 'Замбия',
'EH' => 'Западна Сахара',
'ZW' => 'Зимбабве',
'IL' => 'Израел',
'TL' => 'Източен Тимор',
'IN' => 'Индия',
'ID' => 'Индонезия',
'IQ' => 'Ирак',
'IR' => 'Иран, Ислямска република',
'IE' => 'Ирландия',
'IS' => 'Исландия',
'ES' => 'Испания',
'IT' => 'Италия',
'YE' => 'Йемен',
'JO' => 'Йордания',
'CV' => 'Кабо Верде',
'KZ' => 'Казахстан',
'KY' => 'Кайманови острови',
'KH' => 'Камбоджа',
'CM' => 'Камерун',
'CA' => 'Канада',
'QA' => 'Катар',
'KE' => 'Кения',
'CY' => 'Кипър',
'KG' => 'Киргизстан',
'KI' => 'Кирибати',
'CN' => 'Китай',
'CC' => 'Кокосови (Кийлинг) острови',
'CO' => 'Колумбия',
'KM' => 'Комори',
'CG' => 'Конго',
'KP' => 'Корея, Северна',
'KR' => 'Корея, Южна',
'CR' => 'Коста Рика',
'CU' => 'Куба',
'KW' => 'Кувейт',
'LV' => 'Латвия',
'LS' => 'Лесото',
'LR' => 'Либерия',
'LY' => 'Либийска арабска джамахирия',
'LB' => 'Ливан',
'LT' => 'Литва',
'LI' => 'Лихтенщайн',
'LU' => 'Люксембург',
'MR' => 'Мавритания',
'MU' => 'Мавриций',
'MG' => 'Мадагаскар',
'MO' => 'Макао О.А.Р. на Китай',
'MK' => 'Македония, Република',
'MW' => 'Малави',
'MY' => 'Малайзия',
'MV' => 'Малдиви',
'ML' => 'Мали',
'MT' => 'Малта',
'MA' => 'Мароко',
'MQ' => 'Мартиника',
'MH' => 'Маршалови острови',
'YT' => 'Мейот',
'MX' => 'Мексико',
'MM' => 'Мианмар',
'FM' => 'Микронезия, Обединени Щати',
'MZ' => 'Мозамбик',
'MD' => 'Молдова, Република',
'MC' => 'Монако',
'MN' => 'Монголия',
'MS' => 'Монсерат',
'NA' => 'Намибия',
'LA' => 'Народна демократична република Лаос',
'NR' => 'Науру',
'NP' => 'Непал',
'ZZ' => 'Непозната или несъществуваща област',
'NE' => 'Нигер',
'NG' => 'Нигерия',
'NI' => 'Никарагуа',
'NU' => 'Ниуе',
'NZ' => 'Нова Зеландия',
'NC' => 'Нова Каледония',
'NO' => 'Норвегия',
'AE' => 'Обединени арабски емирства',
'GB' => 'Обединено кралство',
'OM' => 'Оман',
'BV' => 'Остров Буве',
'CX' => 'Остров Кристмас',
'NF' => 'Остров Норфолк',
'HM' => 'Остров Хърд и Острови Макдоналд',
'CK' => 'Острови Кук',
'IM' => 'Острови Ман',
'TC' => 'Острови Туркс и Кайкос',
'PK' => 'Пакистан',
'PW' => 'Палау',
'PS' => 'Палестински територии',
'PA' => 'Панама',
'PG' => 'Папуа Нова Гвинея',
'PY' => 'Парагвай',
'PE' => 'Перу',
'PN' => 'Питкайрн',
'PL' => 'Полша',
'PT' => 'Португалия',
'PR' => 'Пуерто Рико',
'RE' => 'Реюниън',
'RW' => 'Руанда',
'RO' => 'Румъния',
'RU' => 'Руска федерация',
'US' => 'САЩ',
'UM' => 'САЩ - външни острови',
'VI' => 'САЩ, Вирджински острови',
'WS' => 'Самоа',
'SM' => 'Сан Марино',
'ST' => 'Сао Томе и Принципе',
'SA' => 'Саудитска Арабия',
'SJ' => 'Свалбард и Ян Майен',
'SH' => 'Света Елена',
'VA' => 'Свещено море (Ватиканска държава)',
'MP' => 'Северни Мариански Острови',
'BL' => 'Сейнт Бартоломей',
'VC' => 'Сейнт Винсънт и Гренадини',
'KN' => 'Сейнт Китс и Невис',
'LC' => 'Сейнт Лусия',
'MF' => 'Сейнт Мартин',
'SC' => 'Сейшели',
'PM' => 'Сен Пиер и Мигелон',
'SN' => 'Сенегал',
'SL' => 'Сиера Леоне',
'SG' => 'Сингапур',
'SY' => 'Сирийска арабска република',
'SK' => 'Словакия',
'SI' => 'Словения',
'SB' => 'Соломонови острови',
'SO' => 'Сомалия',
'SZ' => 'Суазиленд',
'SD' => 'Судан',
'SR' => 'Суринам',
'RS' => 'Сърбия',
'CS' => 'Сърбия и Черна гора',
'TJ' => 'Таджикистан',
'TW' => 'Тайван',
'TH' => 'Тайланд',
'TZ' => 'Танзания',
'TG' => 'Того',
'TK' => 'Токелау',
'TO' => 'Тонга',
'TT' => 'Тринидад и Тобаго',
'TV' => 'Тувалу',
'TN' => 'Тунис',
'TM' => 'Туркменистан',
'TR' => 'Турция',
'UG' => 'Уганда',
'UZ' => 'Узбекистан',
'UA' => 'Украйна',
'HU' => 'Унгария',
'WF' => 'Уолис и Футуна',
'UY' => 'Уругвай',
'FO' => 'Фарьорски острови',
'FJ' => 'Фиджи',
'PH' => 'Филипини',
'FI' => 'Финландия',
'FK' => 'Фолклендски острови',
'FR' => 'Франция',
'GF' => 'Френска Гвиана',
'PF' => 'Френска Полинезия',
'TF' => 'Френски южни територии',
'HT' => 'Хаити',
'NL' => 'Холандия',
'AN' => 'Холандски Антили',
'HK' => 'Хонг-Конг О.А.Р. на Китай',
'HN' => 'Хондурас',
'HR' => 'Хърватска',
'CF' => 'Централноафриканска Република',
'TD' => 'Чад',
'ME' => 'Черна гора',
'CZ' => 'Чешка република',
'CL' => 'Чили',
'CH' => 'Швейцария',
'SE' => 'Швеция',
'LK' => 'Шри Ланка',
'ZA' => 'Южна Африка',
'GS' => 'Южна Джорджия и Южни Сандвичеви Острови',
'JM' => 'Ямайка',
'JP' => 'Япония',
'GG' => 'о. Гърнзи',
'JE' => 'о. Джързи',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AL' => 'Albània',
'DE' => 'Alemanya',
'DZ' => 'Algèria',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AG' => 'Antigua i Barbuda',
'AN' => 'Antilles Neerlandeses',
'AQ' => 'Antàrtida',
'AR' => 'Argentina',
'AM' => 'Armènia',
'AW' => 'Aruba',
'SA' => 'Aràbia Saudita',
'AU' => 'Austràlia',
'AZ' => 'Azerbaidjan',
'BS' => 'Bahames',
'BH' => 'Bahrain',
'BD' => 'Bangla Desh',
'BB' => 'Barbados',
'BZ' => 'Belize',
'BJ' => 'Benín',
'BM' => 'Bermudes',
'BT' => 'Bhutan',
'BY' => 'Bielorússia',
'BO' => 'Bolívia',
'BW' => 'Botswana',
'BR' => 'Brasil',
'BN' => 'Brunei',
'BG' => 'Bulgària',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BE' => 'Bèlgica',
'BA' => 'Bòsnia i Hercegovina',
'KH' => 'Cambodja',
'CM' => 'Camerun',
'CA' => 'Canadà',
'CV' => 'Cap Verd',
'CO' => 'Colòmbia',
'KM' => 'Comores',
'CG' => 'Congo',
'KP' => 'Corea del Nord',
'KR' => 'Corea del Sud',
'CR' => 'Costa Rica',
'CI' => 'Costa dIvori',
'HR' => 'Croàcia',
'CU' => 'Cuba',
'DK' => 'Dinamarca',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'EG' => 'Egipte',
'SV' => 'El Salvador',
'EC' => 'Equador',
'ER' => 'Eritrea',
'SK' => 'Eslovàquia',
'SI' => 'Eslovènia',
'ES' => 'Espanya',
'US' => 'Estats Units',
'EE' => 'Estònia',
'ET' => 'Etiòpia',
'FJ' => 'Fiji',
'PH' => 'Filipines',
'FI' => 'Finlàndia',
'FR' => 'França',
'GA' => 'Gabon',
'GE' => 'Geòrgia',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GL' => 'Grenlàndia',
'GR' => 'Grècia',
'GP' => 'Guadeloupe',
'GF' => 'Guaiana Francesa',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea Bissau',
'GQ' => 'Guinea Equatorial',
'GY' => 'Guyana',
'GM' => 'Gàmbia',
'HT' => 'Haití',
'HN' => 'Hondures',
'HU' => 'Hongria',
'YE' => 'Iemen',
'BV' => 'Illa Bouvet',
'CX' => 'Illa Christmas',
'HM' => 'Illa Heard i Illes McDonald',
'NF' => 'Illa Norfolk',
'IM' => 'Illa de Man',
'RE' => 'Illa de la Reunió',
'KY' => 'Illes Caiman',
'CC' => 'Illes Cocos',
'CK' => 'Illes Cook',
'FO' => 'Illes Fèroe',
'GS' => 'Illes Geòrgia del Sud i Sandwich del Sud',
'FK' => 'Illes Malvines',
'MP' => 'Illes Mariannes del Nord',
'MH' => 'Illes Marshall',
'UM' => 'Illes Perifèriques Menors dels EUA',
'PN' => 'Illes Pitcairn',
'SB' => 'Illes Salomó',
'TC' => 'Illes Turks i Caicos',
'VG' => 'Illes Verges Britàniques',
'VI' => 'Illes Verges Nord-americanes',
'AX' => 'Illes Åland',
'ID' => 'Indonèsia',
'IR' => 'Iran',
'IQ' => 'Iraq',
'IE' => 'Irlanda',
'IS' => 'Islàndia',
'IL' => 'Israel',
'IT' => 'Itàlia',
'JM' => 'Jamaica',
'JP' => 'Japó',
'JE' => 'Jersey',
'JO' => 'Jordània',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'KG' => 'Kirguizistan',
'KI' => 'Kiribati',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Letònia',
'LR' => 'Libèria',
'LI' => 'Liechtenstein',
'LT' => 'Lituània',
'LU' => 'Luxemburg',
'LB' => 'Líban',
'LY' => 'Líbia',
'MK' => 'Macedònia',
'MG' => 'Madagascar',
'MW' => 'Malawi',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malta',
'MY' => 'Malàisia',
'MA' => 'Marroc',
'MQ' => 'Martinica',
'MU' => 'Maurici',
'MR' => 'Mauritània',
'YT' => 'Mayotte',
'FM' => 'Micronèsia',
'MD' => 'Moldàvia',
'MN' => 'Mongòlia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Moçambic',
'MM' => 'Myanmar',
'MX' => 'Mèxic',
'MC' => 'Mònaco',
'NA' => 'Namíbia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NG' => 'Nigèria',
'NU' => 'Niue',
'NO' => 'Noruega',
'NC' => 'Nova Caledònia',
'NZ' => 'Nova Zelanda',
'NE' => 'Níger',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestina',
'PA' => 'Panamà',
'PG' => 'Papua Nova Guinea',
'PY' => 'Paraguai',
'NL' => 'Països Baixos',
'PE' => 'Perú',
'PF' => 'Polinèsia Francesa',
'PL' => 'Polònia',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'HK' => 'Regió administrativa especial xinesa de Hong Kong',
'MO' => 'Regió administrativa especial xinesa de Macau',
'ZZ' => 'Regió desconeguda o no vàlida',
'GB' => 'Regne Unit',
'CF' => 'República Centreafricana',
'CD' => 'República Democràtica del Congo',
'DO' => 'República Dominicana',
'CZ' => 'República Txeca',
'ZA' => 'República de Sud-àfrica',
'RO' => 'Romania',
'RW' => 'Rwanda',
'RU' => 'Rússia',
'BL' => 'Saint Barthélemy',
'KN' => 'Saint Christopher i Nevis',
'SH' => 'Saint Helena',
'LC' => 'Saint Lucia',
'MF' => 'Saint Martin',
'PM' => 'Saint Pierre i Miquelon',
'VC' => 'Saint Vincent i les Grenadines',
'WS' => 'Samoa',
'AS' => 'Samoa Americana',
'SM' => 'San Marino',
'SN' => 'Senegal',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SO' => 'Somàlia',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SE' => 'Suècia',
'CH' => 'Suïssa',
'SJ' => 'Svalbard i Jan Mayen',
'SZ' => 'Swazilàndia',
'EH' => 'Sàhara Occidental',
'ST' => 'São Tomé i Príncipe',
'RS' => 'Sèrbia',
'CS' => 'Sèrbia i Montenegro',
'SY' => 'Síria',
'TJ' => 'Tadjikistan',
'TH' => 'Tailàndia',
'TW' => 'Taiwan',
'TZ' => 'Tanzània',
'IO' => 'Territori Britànic de l\'Oceà Índic',
'TF' => 'Territoris Francesos del Sud',
'TL' => 'Timor Oriental',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinitat i Tobago',
'TN' => 'Tunísia',
'TM' => 'Turkmenistan',
'TR' => 'Turquia',
'TV' => 'Tuvalu',
'TD' => 'Txad',
'UA' => 'Ucraïna',
'UG' => 'Uganda',
'AE' => 'Unió dels Emirats Àrabs',
'UY' => 'Uruguai',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vaticà',
'VE' => 'Veneçuela',
'VN' => 'Vietnam',
'WF' => 'Wallis i Futuna',
'CL' => 'Xile',
'CN' => 'Xina',
'CY' => 'Xipre',
'ZW' => 'Zimbabwe',
'ZM' => 'Zàmbia',
'AT' => 'Àustria',
'IN' => 'Índia',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghánistán',
'AX' => 'Alandy',
'AL' => 'Albánie',
'DZ' => 'Alžírsko',
'AS' => 'Americká Samoa',
'VI' => 'Americké Panenské ostrovy',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguila',
'AQ' => 'Antarktida',
'AG' => 'Antigua a Barbuda',
'AR' => 'Argentina',
'AM' => 'Arménie',
'AW' => 'Aruba',
'AU' => 'Austrálie',
'BS' => 'Bahamy',
'BH' => 'Bahrajn',
'BD' => 'Bangladéš',
'BB' => 'Barbados',
'BE' => 'Belgie',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermudy',
'BT' => 'Bhútán',
'BO' => 'Bolívie',
'BA' => 'Bosna a Hercegovina',
'BW' => 'Botswana',
'BR' => 'Brazílie',
'VG' => 'Britské Panenské ostrovy',
'IO' => 'Britské území v Indickém oceánu',
'BN' => 'Brunej Darussalam',
'BG' => 'Bulharsko',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BY' => 'Bělorusko',
'CL' => 'Chile',
'HR' => 'Chorvatsko',
'CK' => 'Cookovy ostrovy',
'CD' => 'Demokratická republika Kongo',
'DM' => 'Dominika',
'DO' => 'Dominikánská republika',
'DK' => 'Dánsko',
'DJ' => 'Džibuti',
'EG' => 'Egypt',
'EC' => 'Ekvádor',
'SV' => 'El Salvador',
'ER' => 'Eritrea',
'EE' => 'Estonsko',
'ET' => 'Etiopie',
'FO' => 'Faerské ostrovy',
'FK' => 'Falklandské ostrovy',
'FJ' => 'Fidži',
'PH' => 'Filipíny',
'FI' => 'Finsko',
'FR' => 'Francie',
'GF' => 'Francouzská Guyana',
'PF' => 'Francouzská Polynésie',
'TF' => 'Francouzská jižní teritoria',
'GA' => 'Gabon',
'GM' => 'Gambie',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GE' => 'Gruzie',
'GL' => 'Grónsko',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HN' => 'Honduras',
'HK' => 'Hongkong, zvláštní administrativní oblast Číny',
'IN' => 'Indie',
'ID' => 'Indonésie',
'IE' => 'Irsko',
'IQ' => 'Irák',
'IS' => 'Island',
'IT' => 'Itálie',
'IL' => 'Izrael',
'JM' => 'Jamajka',
'JP' => 'Japonsko',
'YE' => 'Jemen',
'JE' => 'Jersey',
'ZA' => 'Jihoafrická republika',
'GS' => 'Jižní Georgie a Jižní Sandwichovy ostrovy',
'KR' => 'Jižní Korea',
'JO' => 'Jordánsko',
'KY' => 'Kajmanské ostrovy',
'KH' => 'Kambodža',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kapverdy',
'QA' => 'Katar',
'KZ' => 'Kazachstán',
'KE' => 'Keňa',
'KI' => 'Kiribati',
'CC' => 'Kokosové ostrovy',
'CO' => 'Kolumbie',
'KM' => 'Komory',
'CG' => 'Kongo',
'CR' => 'Kostarika',
'CU' => 'Kuba',
'KW' => 'Kuvajt',
'CY' => 'Kypr',
'KG' => 'Kyrgyzstán',
'LS' => 'Lesotho',
'LB' => 'Libanon',
'LY' => 'Libye',
'LR' => 'Libérie',
'LI' => 'Lichtenštejnsko',
'LA' => 'Lidově demokratická republika Laos',
'LT' => 'Litva',
'LV' => 'Lotyšsko',
'LU' => 'Lucembursko',
'MK' => 'Macedonia',
'MG' => 'Madagaskar',
'MV' => 'Maladivy',
'MY' => 'Malajsie',
'MW' => 'Malawi',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Maroko',
'MH' => 'Marshallovy ostrovy',
'MQ' => 'Martinik',
'MU' => 'Mauricius',
'MR' => 'Mauritánie',
'YT' => 'Mayotte',
'HU' => 'Maďarsko',
'UM' => 'Menší odlehlé ostrovy USA',
'MX' => 'Mexiko',
'FM' => 'Mikronézie',
'MD' => 'Moldavsko, republika',
'MC' => 'Monako',
'MN' => 'Mongolsko',
'MS' => 'Montserrat',
'MZ' => 'Mosambik',
'MM' => 'Myanmar',
'NA' => 'Namibie',
'NR' => 'Nauru',
'NP' => 'Nepál',
'ZZ' => 'Neznámá nebo neplatná oblast',
'NE' => 'Niger',
'NG' => 'Nigérie',
'NI' => 'Nikaragua',
'NU' => 'Niue',
'NL' => 'Nizozemsko',
'AN' => 'Nizozemské Antily',
'NF' => 'Norfolk',
'NO' => 'Norsko',
'NC' => 'Nová Kaledonie',
'NZ' => 'Nový Zéland',
'DE' => 'Německo',
'OM' => 'Omán',
'BV' => 'Ostrov Bouvet',
'IM' => 'Ostrov Man',
'TC' => 'Ostrovy Caicos a Turks',
'HM' => 'Ostrovy Heard a McDonald',
'PW' => 'Palau',
'PS' => 'Palestinian Territory',
'PA' => 'Panama',
'PG' => 'Papua-Nová Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'CI' => 'Pobřeží slonoviny',
'PL' => 'Polsko',
'PR' => 'Portoriko',
'PT' => 'Portugalsko',
'PK' => 'Pákistán',
'AT' => 'Rakousko',
'GQ' => 'Rovníková Guinea',
'RO' => 'Rumunsko',
'RU' => 'Rusko',
'RW' => 'Rwanda',
'RE' => 'Réunion',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saúdská Arábie',
'SN' => 'Senegal',
'KP' => 'Severní Korea',
'MP' => 'Severní Mariany',
'SC' => 'Seychely',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SK' => 'Slovensko',
'SI' => 'Slovinsko',
'SO' => 'Somálsko',
'AE' => 'Spojené arabské emiráty',
'US' => 'Spojené státy',
'RS' => 'Srbsko',
'CS' => 'Srbsko a Černá Hora',
'LK' => 'Srí Lanka',
'CF' => 'Středoafrická republika',
'SR' => 'Surinam',
'SJ' => 'Svalbard a Jan Mayen',
'SH' => 'Svatá Helena',
'LC' => 'Svatá Lucie',
'BL' => 'Svatý Bartoloměj',
'KN' => 'Svatý Kitts a Nevis',
'MF' => 'Svatý Martin',
'PM' => 'Svatý Pierre a Miquelon',
'ST' => 'Svatý Tomáš',
'VC' => 'Svatý Vincent a Grenadiny',
'VA' => 'Svatý stolec',
'SZ' => 'Svazijsko',
'SD' => 'Súdán',
'SY' => 'Sýrie',
'TZ' => 'Tanzanie',
'TW' => 'Tchaj-wan',
'TH' => 'Thajsko',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad a Tobago',
'TN' => 'Tunisko',
'TR' => 'Turecko',
'TM' => 'Turkmenistán',
'TV' => 'Tuvalu',
'TJ' => 'Tádžikistán',
'UG' => 'Uganda',
'UA' => 'Ukrajina',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistán',
'VU' => 'Vanuatu',
'GB' => 'Velká Británie',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'CX' => 'Vánoční ostrovy',
'TL' => 'Východní Timor',
'WF' => 'Wallis a Futuna',
'ZM' => 'Zambie',
'ZW' => 'Zimbabwe',
'MO' => 'Zvláštní administrativní oblast Číny Macao',
'EH' => 'Západní Sahara',
'AZ' => 'Ázerbájdžán',
'IR' => 'Írán',
'TD' => 'Čad',
'ME' => 'Černá Hora',
'CZ' => 'Česká republika',
'CN' => 'Čína',
'GR' => 'Řecko',
'SB' => 'Šalamounovy ostrovy',
'ES' => 'Španělsko',
'SE' => 'Švédsko',
'CH' => 'Švýcarsko',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AL' => 'Albanien',
'DZ' => 'Algeriet',
'AS' => 'Amerikansk Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua og Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenien',
'AW' => 'Aruba',
'AZ' => 'Aserbajdsjan',
'AU' => 'Australien',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgien',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnien-Hercegovina',
'BW' => 'Botswana',
'BV' => 'Bouvetø',
'BR' => 'Brasilien',
'BN' => 'Brunei Darussalam',
'BG' => 'Bulgarien',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambodja',
'CM' => 'Cameroun',
'CA' => 'Canada',
'KY' => 'Caymanøerne',
'CF' => 'Centralafrikanske Republik',
'CL' => 'Chile',
'CC' => 'Cocosøerne',
'CO' => 'Colombia',
'KM' => 'Comorerne',
'CG' => 'Congo',
'CD' => 'Congo-Kinshasa',
'CK' => 'Cook-øerne',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'CY' => 'Cypern',
'DK' => 'Danmark',
'UM' => 'De Mindre Amerikanske Oversøiske Øer',
'VI' => 'De amerikanske jomfruøer',
'VG' => 'De britiske jomfruøer',
'PS' => 'De palæstinensiske områder',
'DO' => 'Den Dominikanske Republik',
'IO' => 'Det Britiske Territorium i Det Indiske Ocean',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'EC' => 'Ecuador',
'EG' => 'Egypten',
'SV' => 'El Salvador',
'CI' => 'Elfenbenskysten',
'ER' => 'Eritrea',
'EE' => 'Estland',
'ET' => 'Etiopien',
'FK' => 'Falklandsøerne',
'FJ' => 'Fiji-øerne',
'PH' => 'Filippinerne',
'FI' => 'Finland',
'AE' => 'Forenede Arabiske Emirater',
'FR' => 'Frankrig',
'GF' => 'Fransk Guyana',
'PF' => 'Fransk Polynesien',
'TF' => 'Franske Besiddelser i Det Sydlige Indiske Ocean',
'FO' => 'Færøerne',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgien',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GR' => 'Grækenland',
'GL' => 'Grønland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard- og McDonald-øerne',
'NL' => 'Holland',
'AN' => 'Hollandske Antiller',
'HN' => 'Honduras',
'BY' => 'Hviderusland',
'IN' => 'Indien',
'ID' => 'Indonesien',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irland',
'IS' => 'Island',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italien',
'JM' => 'Jamaica',
'JP' => 'Japan',
'JE' => 'Jersey',
'JO' => 'Jordan',
'CX' => 'Juleøen',
'CV' => 'Kap Verde',
'KZ' => 'Kasakhstan',
'KE' => 'Kenya',
'CN' => 'Kina',
'KG' => 'Kirgisistan',
'KI' => 'Kiribati',
'HR' => 'Kroatien',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Letland',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libyen',
'LI' => 'Liechtenstein',
'LT' => 'Litauen',
'LU' => 'Luxembourg',
'MG' => 'Madagaskar',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldiverne',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marokko',
'MH' => 'Marshalløerne',
'MQ' => 'Martinique',
'MR' => 'Mauretanien',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexico',
'FM' => 'Mikronesiens Forenede Stater',
'MC' => 'Monaco',
'MN' => 'Mongoliet',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NZ' => 'New Zealand',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'KP' => 'Nordkorea',
'MP' => 'Nordmarianerne',
'NF' => 'Norfolk Island',
'NO' => 'Norge',
'NC' => 'Ny Caledonien',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PA' => 'Panama',
'PG' => 'Papua Ny Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'MK' => 'Republikken Makedonien',
'MD' => 'Republikken Moldova',
'RE' => 'Reunion',
'RO' => 'Rumænien',
'RU' => 'Rusland',
'RW' => 'Rwanda',
'HK' => 'SAR Hongkong',
'MO' => 'SAR Macao',
'BL' => 'Saint Barthélemy',
'KN' => 'Saint Kitts og Nevis',
'LC' => 'Saint Lucia',
'MF' => 'Saint Martin',
'PM' => 'Saint Pierre og Miquelon',
'SB' => 'Salomonøerne',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tome og Principe',
'SA' => 'Saudi-Arabien',
'CH' => 'Schweiz',
'SN' => 'Senegal',
'RS' => 'Serbien',
'CS' => 'Serbien og Montenegro',
'SC' => 'Seychellerne',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakiet',
'SI' => 'Slovenien',
'SO' => 'Somalia',
'GS' => 'South Georgia og De Sydlige Sandwichøer',
'ES' => 'Spanien',
'LK' => 'Sri Lanka',
'SH' => 'St. Helena',
'VC' => 'St. Vincent og Grenadinerne',
'GB' => 'Storbritannien',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard og Jan Mayen',
'SE' => 'Sverige',
'SZ' => 'Swaziland',
'ZA' => 'Sydafrika',
'KR' => 'Sydkorea',
'SY' => 'Syrien',
'TJ' => 'Tadsjikistan',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TD' => 'Tchad',
'TH' => 'Thailand',
'TL' => 'Timor-Leste',
'CZ' => 'Tjekkiet',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad og Tobago',
'TN' => 'Tunesien',
'TM' => 'Turkmenistan',
'TC' => 'Turks- og Caicosøerne',
'TV' => 'Tuvalu',
'TR' => 'Tyrkiet',
'DE' => 'Tyskland',
'US' => 'USA',
'UG' => 'Uganda',
'ZZ' => 'Ukendt eller ugyldigt område',
'UA' => 'Ukraine',
'HU' => 'Ungarn',
'UY' => 'Uruguay',
'UZ' => 'Usbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikanstaten',
'VE' => 'Venezuela',
'EH' => 'Vestsahara',
'VN' => 'Vietnam',
'WF' => 'Wallis og Futunaøerne',
'YE' => 'Yemen',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'AX' => 'Åland',
'GQ' => 'Ækvatorialguinea',
'AT' => 'Østrig',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AX' => 'Alandinseln',
'AL' => 'Albanien',
'DZ' => 'Algerien',
'UM' => 'Amerikanisch-Ozeanien',
'AS' => 'Amerikanisch-Samoa',
'VI' => 'Amerikanische Jungferninseln',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua und Barbuda',
'AR' => 'Argentinien',
'AM' => 'Armenien',
'AW' => 'Aruba',
'AZ' => 'Aserbaidschan',
'AU' => 'Australien',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesch',
'BB' => 'Barbados',
'BY' => 'Belarus',
'BE' => 'Belgien',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivien',
'BA' => 'Bosnien und Herzegowina',
'BW' => 'Botsuana',
'BV' => 'Bouvetinsel',
'BR' => 'Brasilien',
'VG' => 'Britische Jungferninseln',
'IO' => 'Britisches Territorium im Indischen Ozean',
'BN' => 'Brunei Darussalam',
'BG' => 'Bulgarien',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'CL' => 'Chile',
'CN' => 'China',
'CK' => 'Cookinseln',
'CR' => 'Costa Rica',
'CI' => 'Côte dIvoire',
'CD' => 'Demokratische Republik Kongo',
'KP' => 'Demokratische Volksrepublik Korea',
'DE' => 'Deutschland',
'DM' => 'Dominica',
'DO' => 'Dominikanische Republik',
'DJ' => 'Dschibuti',
'DK' => 'Dänemark',
'EC' => 'Ecuador',
'SV' => 'El Salvador',
'ER' => 'Eritrea',
'EE' => 'Estland',
'FK' => 'Falklandinseln',
'FJ' => 'Fidschi',
'FI' => 'Finnland',
'FR' => 'Frankreich',
'GF' => 'Französisch-Guayana',
'PF' => 'Französisch-Polynesien',
'TF' => 'Französische Süd- und Antarktisgebiete',
'FO' => 'Färöer',
'GA' => 'Gabun',
'GM' => 'Gambia',
'GE' => 'Georgien',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GR' => 'Griechenland',
'GL' => 'Grönland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard- und McDonald-Inseln',
'HN' => 'Honduras',
'IN' => 'Indien',
'ID' => 'Indonesien',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irland',
'IS' => 'Island',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italien',
'JM' => 'Jamaika',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordanien',
'KY' => 'Kaimaninseln',
'KH' => 'Kambodscha',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kap Verde',
'KZ' => 'Kasachstan',
'QA' => 'Katar',
'KE' => 'Kenia',
'KG' => 'Kirgisistan',
'KI' => 'Kiribati',
'CC' => 'Kokosinseln',
'CO' => 'Kolumbien',
'KM' => 'Komoren',
'CG' => 'Kongo',
'HR' => 'Kroatien',
'CU' => 'Kuba',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettland',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libyen',
'LI' => 'Liechtenstein',
'LT' => 'Litauen',
'LU' => 'Luxemburg',
'MG' => 'Madagaskar',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Malediven',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marokko',
'MH' => 'Marshallinseln',
'MQ' => 'Martinique',
'MR' => 'Mauretanien',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MK' => 'Mazedonien',
'MX' => 'Mexiko',
'FM' => 'Mikronesien',
'MC' => 'Monaco',
'MN' => 'Mongolei',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mosambik',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NC' => 'Neukaledonien',
'NZ' => 'Neuseeland',
'NI' => 'Nicaragua',
'NL' => 'Niederlande',
'AN' => 'Niederländische Antillen',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NF' => 'Norfolkinsel',
'NO' => 'Norwegen',
'MP' => 'Nördliche Marianen',
'OM' => 'Oman',
'TL' => 'Osttimor',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palästinensische Gebiete',
'PA' => 'Panama',
'PG' => 'Papua-Neuguinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PH' => 'Philippinen',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'KR' => 'Republik Korea',
'MD' => 'Republik Moldau',
'RW' => 'Ruanda',
'RO' => 'Rumänien',
'RU' => 'Russische Föderation',
'RE' => 'Réunion',
'SB' => 'Salomonen',
'ZM' => 'Sambia',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudi-Arabien',
'SE' => 'Schweden',
'CH' => 'Schweiz',
'SN' => 'Senegal',
'RS' => 'Serbien',
'CS' => 'Serbien und Montenegro',
'SC' => 'Seychellen',
'SL' => 'Sierra Leone',
'ZW' => 'Simbabwe',
'SG' => 'Singapur',
'SK' => 'Slowakei',
'SI' => 'Slowenien',
'SO' => 'Somalia',
'HK' => 'Sonderverwaltungszone Hongkong',
'MO' => 'Sonderverwaltungszone Macao',
'ES' => 'Spanien',
'LK' => 'Sri Lanka',
'BL' => 'St. Barthélemy',
'SH' => 'St. Helena',
'KN' => 'St. Kitts und Nevis',
'LC' => 'St. Lucia',
'MF' => 'St. Martin',
'PM' => 'St. Pierre und Miquelon',
'VC' => 'St. Vincent und die Grenadinen',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard und Jan Mayen',
'SZ' => 'Swasiland',
'SY' => 'Syrien',
'ST' => 'São Tomé und Príncipe',
'ZA' => 'Südafrika',
'GS' => 'Südgeorgien und die Südlichen Sandwichinseln',
'TJ' => 'Tadschikistan',
'TW' => 'Taiwan',
'TZ' => 'Tansania',
'TH' => 'Thailand',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad und Tobago',
'TD' => 'Tschad',
'CZ' => 'Tschechische Republik',
'TN' => 'Tunesien',
'TM' => 'Turkmenistan',
'TC' => 'Turks- und Caicosinseln',
'TV' => 'Tuvalu',
'TR' => 'Türkei',
'UG' => 'Uganda',
'UA' => 'Ukraine',
'ZZ' => 'Unbekannte oder ungültige Region',
'HU' => 'Ungarn',
'UY' => 'Uruguay',
'UZ' => 'Usbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikanstadt',
'VE' => 'Venezuela',
'AE' => 'Vereinigte Arabische Emirate',
'US' => 'Vereinigte Staaten',
'GB' => 'Vereinigtes Königreich',
'VN' => 'Vietnam',
'WF' => 'Wallis und Futuna',
'CX' => 'Weihnachtsinsel',
'EH' => 'Westsahara',
'CF' => 'Zentralafrikanische Republik',
'CY' => 'Zypern',
'EG' => 'Ägypten',
'GQ' => 'Äquatorialguinea',
'ET' => 'Äthiopien',
'AT' => 'Österreich',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AX' => 'Alandinseln',
'AL' => 'Albanien',
'DZ' => 'Algerien',
'UM' => 'Amerikanisch-Ozeanien',
'AS' => 'Amerikanisch-Samoa',
'VI' => 'Amerikanische Jungferninseln',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua und Barbuda',
'AR' => 'Argentinien',
'AM' => 'Armenien',
'AW' => 'Aruba',
'AZ' => 'Aserbaidschan',
'AU' => 'Australien',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgien',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivien',
'BA' => 'Bosnien und Herzegowina',
'BW' => 'Botswana',
'BV' => 'Bouvetinsel',
'BR' => 'Brasilien',
'VG' => 'Britische Jungferninseln',
'IO' => 'Britisches Territorium im Indischen Ozean',
'BN' => 'Brunei',
'BG' => 'Bulgarien',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'CL' => 'Chile',
'CN' => 'China',
'CK' => 'Cookinseln',
'CR' => 'Costa Rica',
'CI' => 'Côte dIvoire',
'CD' => 'Demokratische Republik Kongo',
'KP' => 'Demokratische Volksrepublik Korea',
'DE' => 'Deutschland',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominikanische Republik',
'DK' => 'Dänemark',
'EC' => 'Ecuador',
'SV' => 'El Salvador',
'ER' => 'Eritrea',
'EE' => 'Estland',
'FK' => 'Falklandinseln',
'FJ' => 'Fidschi',
'FI' => 'Finnland',
'FR' => 'Frankreich',
'GF' => 'Französisch-Guayana',
'PF' => 'Französisch-Polynesien',
'TF' => 'Französische Süd- und Antarktisgebiete',
'FO' => 'Färöer',
'GA' => 'Gabun',
'GM' => 'Gambia',
'GE' => 'Georgien',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GR' => 'Griechenland',
'GB' => 'Grossbritannien',
'GL' => 'Grönland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard- und McDonald-Inseln',
'HN' => 'Honduras',
'IN' => 'Indien',
'ID' => 'Indonesien',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irland',
'IS' => 'Island',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italien',
'JM' => 'Jamaika',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordanien',
'KY' => 'Kaimaninseln',
'KH' => 'Kambodscha',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kapverden',
'KZ' => 'Kasachstan',
'QA' => 'Katar',
'KE' => 'Kenia',
'KG' => 'Kirgisistan',
'KI' => 'Kiribati',
'CC' => 'Kokosinseln',
'CO' => 'Kolumbien',
'KM' => 'Komoren',
'CG' => 'Kongo',
'HR' => 'Kroatien',
'CU' => 'Kuba',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettland',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libyen',
'LI' => 'Liechtenstein',
'LT' => 'Litauen',
'LU' => 'Luxemburg',
'MG' => 'Madagaskar',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Malediven',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marokko',
'MH' => 'Marshall-Inseln',
'MQ' => 'Martinique',
'MR' => 'Mauretanien',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MK' => 'Mazedonien',
'MX' => 'Mexiko',
'FM' => 'Mikronesien',
'MC' => 'Monaco',
'MN' => 'Mongolei',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mosambik',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NC' => 'Neukaledonien',
'NZ' => 'Neuseeland',
'NI' => 'Nicaragua',
'NL' => 'Niederlande',
'AN' => 'Niederländische Antillen',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NF' => 'Norfolkinsel',
'NO' => 'Norwegen',
'MP' => 'Nördliche Marianen',
'OM' => 'Oman',
'TL' => 'Osttimor',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palästinensische Gebiete',
'PA' => 'Panama',
'PG' => 'Papua-Neuguinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PH' => 'Philippinen',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'KR' => 'Republik Korea',
'MD' => 'Republik Moldau',
'RO' => 'Rumänien',
'RU' => 'Russische Föderation',
'RW' => 'Rwanda',
'RE' => 'Réunion',
'SB' => 'Salomon-Inseln',
'ZM' => 'Sambia',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tomé und Principe',
'SA' => 'Saudi-Arabien',
'SE' => 'Schweden',
'CH' => 'Schweiz',
'SN' => 'Senegal',
'RS' => 'Serbien',
'CS' => 'Serbien und Montenegro',
'SC' => 'Seychellen',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SK' => 'Slowakei',
'SI' => 'Slowenien',
'SO' => 'Somalia',
'HK' => 'Sonderverwaltungszone Hongkong',
'MO' => 'Sonderverwaltungszone Macao',
'ES' => 'Spanien',
'LK' => 'Sri Lanka',
'BL' => 'St. Barthélemy',
'SH' => 'St. Helena',
'KN' => 'St. Kitts und Nevis',
'LC' => 'St. Lucia',
'MF' => 'St. Martin',
'PM' => 'St. Pierre und Miquelon',
'VC' => 'St. Vincent und die Grenadinen',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard und Jan Mayen',
'SZ' => 'Swasiland',
'SY' => 'Syrien',
'ZA' => 'Südafrika',
'GS' => 'Südgeorgien und die Südlichen Sandwichinseln',
'TJ' => 'Tadschikistan',
'TW' => 'Taiwan',
'TZ' => 'Tansania',
'TH' => 'Thailand',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad und Tobago',
'TD' => 'Tschad',
'CZ' => 'Tschechische Republik',
'TN' => 'Tunesien',
'TM' => 'Turkmenistan',
'TC' => 'Turks- und Caicosinseln',
'TV' => 'Tuvalu',
'TR' => 'Türkei',
'UG' => 'Uganda',
'UA' => 'Ukraine',
'ZZ' => 'Unbekannte oder ungültige Region',
'HU' => 'Ungarn',
'UY' => 'Uruguay',
'UZ' => 'Usbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikanstadt',
'VE' => 'Venezuela',
'AE' => 'Vereinigte Arabische Emirate',
'US' => 'Vereinigte Staaten',
'VN' => 'Vietnam',
'WF' => 'Wallis und Futuna',
'CX' => 'Weihnachtsinsel',
'BY' => 'Weissrussland',
'EH' => 'Westsahara',
'CF' => 'Zentralafrikanische Republik',
'ZW' => 'Zimbabwe',
'CY' => 'Zypern',
'EG' => 'Ägypten',
'GQ' => 'Äquatorialguinea',
'ET' => 'Äthiopien',
'AT' => 'Österreich',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'BL' => 'Άγιος Βαρθολομαίος',
'VC' => 'Άγιος Βικέντιος και Γρεναδίνες',
'SM' => 'Άγιος Μαρίνος',
'MF' => 'Άγιος Μαρτίνος',
'ZZ' => 'Άγνωστη ή μη έγκυρη περιοχή',
'EG' => 'Αίγυπτος',
'SH' => 'Αγία Ελένη',
'LC' => 'Αγία Λουκία',
'AZ' => 'Αζερμπαϊτζάν',
'ET' => 'Αιθιοπία',
'CI' => 'Ακτή Ελεφαντοστού',
'AL' => 'Αλβανία',
'DZ' => 'Αλγερία',
'VI' => 'Αμερικανικές Παρθένοι Νήσοι',
'AS' => 'Αμερικανική Σαμόα',
'TL' => 'Ανατολικό Τιμόρ',
'AI' => 'Ανγκουίλα',
'AO' => 'Ανγκόλα',
'AD' => 'Ανδόρα',
'AG' => 'Αντίγκουα και Μπαρμπούντα',
'AQ' => 'Ανταρκτική',
'UM' => 'Απομακρυσμένες Νησίδες Η.Π.Α.',
'AR' => 'Αργεντινή',
'AM' => 'Αρμενία',
'AW' => 'Αρούμπα',
'AT' => 'Αυστρία',
'AU' => 'Αυστραλία',
'AF' => 'Αφγανιστάν',
'HT' => 'Αϊτή',
'BE' => 'Βέλγιο',
'VU' => 'Βανουάτου',
'VA' => 'Βατικανό',
'VE' => 'Βενεζουέλα',
'BM' => 'Βερμούδες',
'VN' => 'Βιετνάμ',
'BO' => 'Βολιβία',
'BA' => 'Βοσνία - Ερζεγοβίνη',
'BG' => 'Βουλγαρία',
'BR' => 'Βραζιλία',
'IO' => 'Βρετανικά Εδάφη Ινδικού Ωκεανού',
'VG' => 'Βρετανικές Παρθένοι Νήσοι',
'KP' => 'Βόρεια Κορέα',
'MP' => 'Βόρειες Μαριάνες Νήσοι',
'FR' => 'Γαλλία',
'TF' => 'Γαλλικά Νότια Εδάφη',
'GF' => 'Γαλλική Γουιάνα',
'PF' => 'Γαλλική Πολυνησία',
'DE' => 'Γερμανία',
'GE' => 'Γεωργία',
'GI' => 'Γιβραλτάρ',
'GM' => 'Γκάμπια',
'GH' => 'Γκάνα',
'GA' => 'Γκαμπόν',
'GG' => 'Γκερνσέι',
'GU' => 'Γκουάμ',
'GP' => 'Γουαδελούπη',
'GT' => 'Γουατεμάλα',
'GY' => 'Γουιάνα',
'GN' => 'Γουινέα',
'GW' => 'Γουινέα-Μπισάου',
'GD' => 'Γρενάδα',
'GL' => 'Γροιλανδία',
'DK' => 'Δανία',
'DO' => 'Δομινικανή Δημοκρατία',
'EH' => 'Δυτική Σαχάρα',
'SV' => 'Ελ Σαλβαδόρ',
'CH' => 'Ελβετία',
'GR' => 'Ελλάδα',
'ER' => 'Ερυθραία',
'EE' => 'Εσθονία',
'ZM' => 'Ζάμπια',
'ZW' => 'Ζιμπάμπουε',
'SZ' => 'Ζουαζηλάνδη',
'AE' => 'Ηνωμένα Αραβικά Εμιράτα',
'US' => 'Ηνωμένες Πολιτείες της Αμερικής',
'GB' => 'Ηνωμένο Βασίλειο',
'JP' => 'Ιαπωνία',
'IN' => 'Ινδία',
'ID' => 'Ινδονησία',
'JO' => 'Ιορδανία',
'IQ' => 'Ιράκ',
'IR' => 'Ιράν',
'IE' => 'Ιρλανδία',
'GQ' => 'Ισημερινή Γουινέα',
'EC' => 'Ισημερινός',
'IS' => 'Ισλανδία',
'ES' => 'Ισπανία',
'IL' => 'Ισραήλ',
'IT' => 'Ιταλία',
'KE' => 'Κένυα',
'CN' => 'Κίνα',
'KZ' => 'Καζακστάν',
'CM' => 'Καμερούν',
'KH' => 'Καμπότζη',
'CA' => 'Καναδάς',
'QA' => 'Κατάρ',
'CF' => 'Κεντροαφρικανική Δημοκρατία',
'KG' => 'Κιργιζία',
'KI' => 'Κιριμπάτι',
'CO' => 'Κολομβία',
'KM' => 'Κομόρος',
'CD' => 'Κονγκό - Κινσάσα',
'CG' => 'Κονγκό - Μπραζαβίλ',
'KW' => 'Κουβέιτ',
'CU' => 'Κούβα',
'HR' => 'Κροατία',
'CR' => 'Κόστα Ρίκα',
'CY' => 'Κύπρος',
'LA' => 'Λάος',
'LB' => 'Λίβανος',
'LS' => 'Λεσότο',
'LV' => 'Λετονία',
'BY' => 'Λευκορωσία',
'LR' => 'Λιβερία',
'LY' => 'Λιβύη',
'LT' => 'Λιθουανία',
'LI' => 'Λιχτενστάιν',
'LU' => 'Λουξεμβούργο',
'ML' => 'Μάλι',
'MT' => 'Μάλτα',
'YT' => 'Μαγιότ',
'MG' => 'Μαδαγασκάρη',
'MO' => 'Μακάο ΕΔΠ Κίνας',
'MW' => 'Μαλάουι',
'MY' => 'Μαλαισία',
'MV' => 'Μαλδίβες',
'MQ' => 'Μαρτινίκα',
'MA' => 'Μαρόκο',
'MU' => 'Μαυρίκιος',
'MR' => 'Μαυριτανία',
'ME' => 'Μαυροβούνιο',
'MX' => 'Μεξικό',
'MM' => 'Μιανμάρ',
'FM' => 'Μικρονησία',
'MN' => 'Μογγολία',
'MZ' => 'Μοζαμβίκη',
'MD' => 'Μολδαβία',
'MC' => 'Μονακό',
'MS' => 'Μονσεράτ',
'BD' => 'Μπανγκλαντές',
'BB' => 'Μπαρμπάντος',
'BS' => 'Μπαχάμες',
'BH' => 'Μπαχρέιν',
'BZ' => 'Μπελίσε',
'BJ' => 'Μπενίν',
'BW' => 'Μποτσουάνα',
'BF' => 'Μπουρκίνα Φάσο',
'BI' => 'Μπουρούντι',
'BT' => 'Μπουτάν',
'BN' => 'Μπρουνέι',
'NZ' => 'Νέα Ζηλανδία',
'NC' => 'Νέα Καληδονία',
'AX' => 'Νήσοι Άλαντ',
'KY' => 'Νήσοι Κέιμαν',
'CK' => 'Νήσοι Κουκ',
'CC' => 'Νήσοι Κόκος',
'MH' => 'Νήσοι Μάρσαλ',
'WF' => 'Νήσοι Ουαλλίς και Φουτουνά',
'SB' => 'Νήσοι Σολομώντος',
'TC' => 'Νήσοι Τερκς και Κάικος',
'FO' => 'Νήσοι Φερόε',
'FK' => 'Νήσοι Φώκλαντ',
'HM' => 'Νήσοι Χερντ και Μακντόναλντ',
'IM' => 'Νήσος Μαν',
'BV' => 'Νήσος Μπουβέ',
'NF' => 'Νήσος Νόρφολκ',
'CX' => 'Νήσος Χριστουγέννων',
'NE' => 'Νίγηρας',
'NA' => 'Ναμίμπια',
'NR' => 'Ναούρου',
'NP' => 'Νεπάλ',
'NG' => 'Νιγηρία',
'NI' => 'Νικαράγουα',
'NU' => 'Νιούε',
'NO' => 'Νορβηγία',
'DM' => 'Ντομίνικα',
'ZA' => 'Νότια Αφρική',
'GS' => 'Νότια Γεωργία και Νότιες Νήσοι Σάντουιτς',
'KR' => 'Νότια Κορέα',
'NL' => 'Ολλανδία',
'AN' => 'Ολλανδικές Αντίλλες',
'OM' => 'Ομάν',
'HN' => 'Ονδούρα',
'HU' => 'Ουγγαρία',
'UG' => 'Ουγκάντα',
'UZ' => 'Ουζμπεκιστάν',
'UA' => 'Ουκρανία',
'UY' => 'Ουρουγουάη',
'MK' => 'ΠΓΔ Μακεδονίας',
'PN' => 'Πίτκερν',
'PK' => 'Πακιστάν',
'PW' => 'Παλάου',
'PS' => 'Παλαιστινιακά Εδάφη',
'PA' => 'Παναμάς',
'PG' => 'Παπούα Νέα Γουινέα',
'PY' => 'Παραγουάη',
'PE' => 'Περού',
'PL' => 'Πολωνία',
'PT' => 'Πορτογαλία',
'PR' => 'Πουέρτο Ρίκο',
'CV' => 'Πράσινο Ακρωτήριο',
'RE' => 'Ρεϋνιόν',
'RW' => 'Ρουάντα',
'RO' => 'Ρουμανία',
'RU' => 'Ρωσία',
'ST' => 'Σάο Τομέ και Πρίνσιπε',
'KN' => 'Σαιντ Κιτς και Νέβις',
'PM' => 'Σαιντ Πιέρ και Μικελόν',
'WS' => 'Σαμόα',
'SA' => 'Σαουδική Αραβία',
'SJ' => 'Σβαλμπάρντ και Γιαν Μαγιέν',
'SN' => 'Σενεγάλη',
'RS' => 'Σερβία',
'CS' => 'Σερβία και Μαυροβούνιο',
'SC' => 'Σεϋχέλλες',
'SL' => 'Σιέρα Λεόνε',
'SG' => 'Σιγκαπούρη',
'SK' => 'Σλοβακία',
'SI' => 'Σλοβενία',
'SO' => 'Σομαλία',
'SD' => 'Σουδάν',
'SE' => 'Σουηδία',
'SR' => 'Σουρινάμ',
'LK' => 'Σρι Λάνκα',
'SY' => 'Συρία',
'TZ' => 'Τανζανία',
'TJ' => 'Τατζικιστάν',
'TW' => 'Ταϊβάν',
'TH' => 'Ταϊλάνδη',
'JM' => 'Τζαμάικα',
'DJ' => 'Τζιμπουτί',
'TK' => 'Τοκελάου',
'TV' => 'Τουβαλού',
'TR' => 'Τουρκία',
'TM' => 'Τουρκμενιστάν',
'TT' => 'Τρινιντάντ και Τομπάγκο',
'TD' => 'Τσαντ',
'CZ' => 'Τσεχία',
'TN' => 'Τυνησία',
'TG' => 'Τόγκο',
'TO' => 'Τόνγκα',
'YE' => 'Υεμένη',
'JE' => 'Υερσέη',
'FJ' => 'Φίτζι',
'PH' => 'Φιλιππίνες',
'FI' => 'Φινλανδία',
'CL' => 'Χιλή',
'HK' => 'Χονγκ Κονγκ ΕΔΠ Κίνας',
);

View File

@ -0,0 +1,265 @@
<?php return array(
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
'AG' => 'Antigua and Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaijan',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BY' => 'Belarus',
'BE' => 'Belgium',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnia and Herzegovina',
'BW' => 'Botswana',
'BV' => 'Bouvet Island',
'BR' => 'Brazil',
'BQ' => 'British Antarctic Territory',
'IO' => 'British Indian Ocean Territory',
'VG' => 'British Virgin Islands',
'BN' => 'Brunei',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambodia',
'CM' => 'Cameroon',
'CA' => 'Canada',
'CT' => 'Canton and Enderbury Islands',
'CV' => 'Cape Verde',
'KY' => 'Cayman Islands',
'CF' => 'Central African Republic',
'TD' => 'Chad',
'CL' => 'Chile',
'CN' => 'China',
'CX' => 'Christmas Island',
'CC' => 'Cocos [Keeling] Islands',
'CO' => 'Colombia',
'KM' => 'Comoros',
'CG' => 'Congo - Brazzaville',
'CD' => 'Congo - Kinshasa',
'CK' => 'Cook Islands',
'CR' => 'Costa Rica',
'HR' => 'Croatia',
'CU' => 'Cuba',
'CY' => 'Cyprus',
'CZ' => 'Czech Republic',
'CI' => 'Côte dIvoire',
'DK' => 'Denmark',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominican Republic',
'NQ' => 'Dronning Maud Land',
'EC' => 'Ecuador',
'EG' => 'Egypt',
'SV' => 'El Salvador',
'GQ' => 'Equatorial Guinea',
'ER' => 'Eritrea',
'EE' => 'Estonia',
'ET' => 'Ethiopia',
'FK' => 'Falkland Islands',
'FO' => 'Faroe Islands',
'FJ' => 'Fiji',
'FI' => 'Finland',
'FR' => 'France',
'GF' => 'French Guiana',
'PF' => 'French Polynesia',
'TF' => 'French Southern Territories',
'FQ' => 'French Southern and Antarctic Territories',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'DE' => 'Germany',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GR' => 'Greece',
'GL' => 'Greenland',
'GD' => 'Grenada',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard Island and McDonald Islands',
'HN' => 'Honduras',
'HK' => 'Hong Kong SAR China',
'HU' => 'Hungary',
'IS' => 'Iceland',
'IN' => 'India',
'ID' => 'Indonesia',
'IR' => 'Iran',
'IQ' => 'Iraq',
'IE' => 'Ireland',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italy',
'JM' => 'Jamaica',
'JP' => 'Japan',
'JE' => 'Jersey',
'JT' => 'Johnston Island',
'JO' => 'Jordan',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'KI' => 'Kiribati',
'KW' => 'Kuwait',
'KG' => 'Kyrgyzstan',
'LA' => 'Laos',
'LV' => 'Latvia',
'LB' => 'Lebanon',
'LS' => 'Lesotho',
'LR' => 'Liberia',
'LY' => 'Libya',
'LI' => 'Liechtenstein',
'LT' => 'Lithuania',
'LU' => 'Luxembourg',
'MO' => 'Macau SAR China',
'MK' => 'Macedonia',
'MG' => 'Madagascar',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malta',
'MH' => 'Marshall Islands',
'MQ' => 'Martinique',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'FX' => 'Metropolitan France',
'MX' => 'Mexico',
'FM' => 'Micronesia',
'MI' => 'Midway Islands',
'MD' => 'Moldova',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MA' => 'Morocco',
'MZ' => 'Mozambique',
'MM' => 'Myanmar [Burma]',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NL' => 'The Netherlands',
'AN' => 'Netherlands Antilles',
'NT' => 'Neutral Zone',
'NC' => 'New Caledonia',
'NZ' => 'New Zealand',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NF' => 'Norfolk Island',
'KP' => 'North Korea',
'VD' => 'North Vietnam',
'MP' => 'Northern Mariana Islands',
'NO' => 'Norway',
'OM' => 'Oman',
'PC' => 'Pacific Islands Trust Territory',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinian Territories',
'PA' => 'Panama',
'PZ' => 'Panama Canal Zone',
'PG' => 'Papua New Guinea',
'PY' => 'Paraguay',
'YD' => 'People\'s Democratic Republic of Yemen',
'PE' => 'Peru',
'PH' => 'Philippines',
'PN' => 'Pitcairn Islands',
'PL' => 'Poland',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'RO' => 'Romania',
'RU' => 'Russia',
'RW' => 'Rwanda',
'RE' => 'Réunion',
'BL' => 'Saint Barthélemy',
'SH' => 'Saint Helena',
'KN' => 'Saint Kitts and Nevis',
'LC' => 'Saint Lucia',
'MF' => 'Saint Martin',
'PM' => 'Saint Pierre and Miquelon',
'VC' => 'Saint Vincent and the Grenadines',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudi Arabia',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia and Montenegro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakia',
'SI' => 'Slovenia',
'SB' => 'Solomon Islands',
'SO' => 'Somalia',
'ZA' => 'South Africa',
'GS' => 'South Georgia and the South Sandwich Islands',
'KR' => 'South Korea',
'ES' => 'Spain',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard and Jan Mayen',
'SZ' => 'Swaziland',
'SE' => 'Sweden',
'CH' => 'Switzerland',
'SY' => 'Syria',
'ST' => 'São Tomé and Príncipe',
'TW' => 'Taiwan',
'TJ' => 'Tajikistan',
'TZ' => 'Tanzania',
'TH' => 'Thailand',
'TL' => 'Timor-Leste',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad and Tobago',
'TN' => 'Tunisia',
'TR' => 'Turkey',
'TM' => 'Turkmenistan',
'TC' => 'Turks and Caicos Islands',
'TV' => 'Tuvalu',
'UM' => 'U.S. Minor Outlying Islands',
'PU' => 'U.S. Miscellaneous Pacific Islands',
'VI' => 'U.S. Virgin Islands',
'UG' => 'Uganda',
'UA' => 'Ukraine',
'SU' => 'Union of Soviet Socialist Republics',
'AE' => 'United Arab Emirates',
'GB' => 'United Kingdom',
'US' => 'United States',
'ZZ' => 'Unknown or Invalid Region',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatican City',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WK' => 'Wake Island',
'WF' => 'Wallis and Futuna',
'EH' => 'Western Sahara',
'YE' => 'Yemen',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'AX' => 'Åland Islands',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistán',
'AL' => 'Albania',
'DE' => 'Alemania',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguila',
'AG' => 'Antigua y Barbuda',
'AN' => 'Antillas Neerlandesas',
'AQ' => 'Antártida',
'SA' => 'Arabia Saudí',
'DZ' => 'Argelia',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaiyán',
'BS' => 'Bahamas',
'BH' => 'Bahréin',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BZ' => 'Belice',
'BJ' => 'Benín',
'BM' => 'Bermudas',
'BY' => 'Bielorrusia',
'BO' => 'Bolivia',
'BA' => 'Bosnia-Herzegovina',
'BW' => 'Botsuana',
'BR' => 'Brasil',
'BN' => 'Brunéi',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BT' => 'Bután',
'BE' => 'Bélgica',
'CV' => 'Cabo Verde',
'KH' => 'Camboya',
'CM' => 'Camerún',
'CA' => 'Canadá',
'TD' => 'Chad',
'CL' => 'Chile',
'CN' => 'China',
'CY' => 'Chipre',
'VA' => 'Ciudad del Vaticano',
'CO' => 'Colombia',
'KM' => 'Comoras',
'CG' => 'Congo',
'KP' => 'Corea del Norte',
'KR' => 'Corea del Sur',
'CR' => 'Costa Rica',
'CI' => 'Costa de Marfil',
'HR' => 'Croacia',
'CU' => 'Cuba',
'DK' => 'Dinamarca',
'DM' => 'Dominica',
'EC' => 'Ecuador',
'EG' => 'Egipto',
'SV' => 'El Salvador',
'AE' => 'Emiratos Árabes Unidos',
'ER' => 'Eritrea',
'SK' => 'Eslovaquia',
'SI' => 'Eslovenia',
'ES' => 'España',
'US' => 'Estados Unidos',
'EE' => 'Estonia',
'ET' => 'Etiopía',
'PH' => 'Filipinas',
'FI' => 'Finlandia',
'FJ' => 'Fiyi',
'FR' => 'Francia',
'GA' => 'Gabón',
'GM' => 'Gambia',
'GE' => 'Georgia',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Granada',
'GR' => 'Grecia',
'GL' => 'Groenlandia',
'GP' => 'Guadalupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GF' => 'Guayana Francesa',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GQ' => 'Guinea Ecuatorial',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haití',
'HN' => 'Honduras',
'HU' => 'Hungría',
'IN' => 'India',
'ID' => 'Indonesia',
'IQ' => 'Iraq',
'IE' => 'Irlanda',
'IR' => 'Irán',
'BV' => 'Isla Bouvet',
'CX' => 'Isla Christmas',
'NU' => 'Isla Niue',
'NF' => 'Isla Norfolk',
'IM' => 'Isla de Man',
'IS' => 'Islandia',
'KY' => 'Islas Caimán',
'CC' => 'Islas Cocos',
'CK' => 'Islas Cook',
'FO' => 'Islas Feroe',
'GS' => 'Islas Georgia del Sur y Sandwich del Sur',
'HM' => 'Islas Heard y McDonald',
'FK' => 'Islas Malvinas',
'MP' => 'Islas Marianas del Norte',
'MH' => 'Islas Marshall',
'SB' => 'Islas Salomón',
'TC' => 'Islas Turcas y Caicos',
'VG' => 'Islas Vírgenes Británicas',
'VI' => 'Islas Vírgenes de los Estados Unidos',
'UM' => 'Islas menores alejadas de los Estados Unidos',
'AX' => 'Islas Åland',
'IL' => 'Israel',
'IT' => 'Italia',
'JM' => 'Jamaica',
'JP' => 'Japón',
'JE' => 'Jersey',
'JO' => 'Jordania',
'KZ' => 'Kazajistán',
'KE' => 'Kenia',
'KG' => 'Kirguistán',
'KI' => 'Kiribati',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesoto',
'LV' => 'Letonia',
'LR' => 'Liberia',
'LY' => 'Libia',
'LI' => 'Liechtenstein',
'LT' => 'Lituania',
'LU' => 'Luxemburgo',
'LB' => 'Líbano',
'MK' => 'Macedonia',
'MG' => 'Madagascar',
'MY' => 'Malasia',
'MW' => 'Malaui',
'MV' => 'Maldivas',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marruecos',
'MQ' => 'Martinica',
'MU' => 'Mauricio',
'MR' => 'Mauritania',
'YT' => 'Mayotte',
'FM' => 'Micronesia',
'MD' => 'Moldavia',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'MX' => 'México',
'MC' => 'Mónaco',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NG' => 'Nigeria',
'NO' => 'Noruega',
'NC' => 'Nueva Caledonia',
'NZ' => 'Nueva Zelanda',
'NE' => 'Níger',
'OM' => 'Omán',
'PK' => 'Pakistán',
'PW' => 'Palau',
'PS' => 'Palestina',
'PA' => 'Panamá',
'PG' => 'Papúa Nueva Guinea',
'PY' => 'Paraguay',
'NL' => 'Países Bajos',
'PE' => 'Perú',
'PN' => 'Pitcairn',
'PF' => 'Polinesia Francesa',
'PL' => 'Polonia',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'HK' => 'Región Administrativa Especial de Hong Kong de la República Popular China',
'MO' => 'Región Administrativa Especial de Macao de la República Popular China',
'ZZ' => 'Región desconocida o no válida',
'GB' => 'Reino Unido',
'CF' => 'República Centroafricana',
'CZ' => 'República Checa',
'CD' => 'República Democrática del Congo',
'DO' => 'República Dominicana',
'RE' => 'Reunión',
'RW' => 'Ruanda',
'RO' => 'Rumanía',
'RU' => 'Rusia',
'WS' => 'Samoa',
'AS' => 'Samoa Americana',
'BL' => 'San Bartolomé',
'KN' => 'San Cristóbal y Nieves',
'SM' => 'San Marino',
'MF' => 'San Martín',
'PM' => 'San Pedro y Miquelón',
'VC' => 'San Vicente y las Granadinas',
'SH' => 'Santa Elena',
'LC' => 'Santa Lucía',
'ST' => 'Santo Tomé y Príncipe',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia y Montenegro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leona',
'SG' => 'Singapur',
'SY' => 'Siria',
'SO' => 'Somalia',
'LK' => 'Sri Lanka',
'SZ' => 'Suazilandia',
'ZA' => 'Sudáfrica',
'SD' => 'Sudán',
'SE' => 'Suecia',
'CH' => 'Suiza',
'SR' => 'Surinam',
'SJ' => 'Svalbard y Jan Mayen',
'EH' => 'Sáhara Occidental',
'TH' => 'Tailandia',
'TW' => 'Taiwán',
'TZ' => 'Tanzania',
'TJ' => 'Tayikistán',
'IO' => 'Territorio Británico del Océano Índico',
'TF' => 'Territorios Australes Franceses',
'TL' => 'Timor Oriental',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad y Tobago',
'TM' => 'Turkmenistán',
'TR' => 'Turquía',
'TV' => 'Tuvalu',
'TN' => 'Túnez',
'UA' => 'Ucrania',
'UG' => 'Uganda',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistán',
'VU' => 'Vanuatu',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WF' => 'Wallis y Futuna',
'YE' => 'Yemen',
'DJ' => 'Yibuti',
'ZM' => 'Zambia',
'ZW' => 'Zimbabue',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AW' => 'آروبا',
'AR' => 'آرژانتین',
'AL' => 'آلبانی',
'DE' => 'آلمان',
'AN' => 'آنتیل هلند',
'AG' => 'آنتیگوا و باربودا',
'AD' => 'آندورا',
'AO' => 'آنگولا',
'AI' => 'آنگیل',
'AT' => 'اتریش',
'ET' => 'اتیوپی',
'JO' => 'اردن',
'AM' => 'ارمنستان',
'ER' => 'اریتره',
'UZ' => 'ازبکستان',
'AU' => 'استرالیا',
'EE' => 'استونی',
'IL' => 'اسرائیل',
'SK' => 'اسلواکی',
'SI' => 'اسلوونی',
'SJ' => 'اسوالبارد و جان ماین',
'ES' => 'اسپانیا',
'ZA' => 'افریقای جنوبی',
'AF' => 'افغانستان',
'DZ' => 'الجزایر',
'SV' => 'السالوادور',
'AE' => 'امارات متحدهٔ عربی',
'ID' => 'اندونزی',
'UY' => 'اوروگوئه',
'UA' => 'اوکراین',
'UG' => 'اوگاندا',
'EC' => 'اکوادر',
'US' => 'ایالات متحدهٔ امریکا',
'IT' => 'ایتالیا',
'IR' => 'ایران',
'IE' => 'ایرلند',
'IS' => 'ایسلند',
'BB' => 'باربادوس',
'BS' => 'باهاما',
'BH' => 'بحرین',
'BR' => 'برزیل',
'BM' => 'برمودا',
'BN' => 'برونئی',
'GB' => 'بریتانیا',
'BG' => 'بلغارستان',
'BE' => 'بلژیک',
'BZ' => 'بلیز',
'BD' => 'بنگلادش',
'BJ' => 'بنین',
'BT' => 'بوتان',
'BW' => 'بوتسوانا',
'BI' => 'بوروندی',
'BF' => 'بورکینافاسو',
'BA' => 'بوسنی و هرزگوین',
'BO' => 'بولیوی',
'BY' => 'بیلوروسی',
'TJ' => 'تاجیکستان',
'TZ' => 'تانزانیا',
'TH' => 'تایلند',
'TW' => 'تایوان',
'TM' => 'ترکمنستان',
'TR' => 'ترکیه',
'TT' => 'ترینیداد و توباگو',
'TN' => 'تونس',
'TO' => 'تونگا',
'TV' => 'تووالو',
'TK' => 'توکلائو',
'TG' => 'توگو',
'TL' => 'تیمور شرقی',
'JM' => 'جامائیکا',
'GI' => 'جبل‌الطارق',
'JE' => 'جرسی',
'AX' => 'جزایر آلاند',
'TC' => 'جزایر ترک و کایکوس',
'SB' => 'جزایر سلیمان',
'FO' => 'جزایر فارو',
'FK' => 'جزایر فالکلند',
'MH' => 'جزایر مارشال',
'MP' => 'جزایر ماریانای شمالی',
'VI' => 'جزایر ویرجین ایالات متحده',
'VG' => 'جزایر ویرجین بریتانیا',
'UM' => 'جزایر کوچک دورافتادهٔ ایالات متحده',
'CK' => 'جزایر کوک',
'CC' => 'جزایر کوکوس',
'KY' => 'جزایر کِیمن',
'BV' => 'جزیرهٔ بووت',
'IM' => 'جزیرهٔ مان',
'NF' => 'جزیرهٔ نورفولک',
'HM' => 'جزیرهٔ هرد و جزایر مک‌دونالد',
'CX' => 'جزیرهٔ کریسمس',
'AZ' => 'جمهوری آذربایجان',
'CF' => 'جمهوری افریقای مرکزی',
'DO' => 'جمهوری دومینیکن',
'CZ' => 'جمهوری چک',
'AQ' => 'جنوبگان',
'GS' => 'جورجیای جنوبی و جزایر ساندویچ جنوبی',
'DJ' => 'جیبوتی',
'DK' => 'دانمارک',
'DM' => 'دومینیک',
'RW' => 'رواندا',
'RU' => 'روسیه',
'RO' => 'رومانی',
'RE' => 'ریونیون',
'ZM' => 'زامبیا',
'NZ' => 'زلاند نو',
'ZW' => 'زیمبابوه',
'ST' => 'سائو تومه و پرینسیپه',
'CI' => 'ساحل عاج',
'WS' => 'ساموا',
'AS' => 'ساموای امریکا',
'SM' => 'سان مارینو',
'LK' => 'سری‌لانکا',
'BL' => 'سنت بارتلیمی',
'LC' => 'سنت لوسیا',
'MF' => 'سنت مارتین',
'SH' => 'سنت هلن',
'VC' => 'سنت وینسنت و گرنادین',
'PM' => 'سنت پیر و میکلون',
'KN' => 'سنت کیتس و نویس',
'SN' => 'سنگال',
'SG' => 'سنگاپور',
'SE' => 'سوئد',
'CH' => 'سوئیس',
'SZ' => 'سوازیلند',
'SD' => 'سودان',
'SR' => 'سورینام',
'SY' => 'سوریه',
'SO' => 'سومالی',
'SL' => 'سیرالئون',
'SC' => 'سیشل',
'CL' => 'شیلی',
'EH' => 'صحرای غربی',
'RS' => 'صربستان',
'CS' => 'صربستان و مونته‌نگرو',
'IQ' => 'عراق',
'SA' => 'عربستان سعودی',
'OM' => 'عمان',
'GH' => 'غنا',
'FR' => 'فرانسه',
'PS' => 'فلسطین',
'FI' => 'فنلاند',
'FJ' => 'فیجی',
'PH' => 'فیلیپین',
'CY' => 'قبرس',
'KG' => 'قرقیزستان',
'KZ' => 'قزاقستان',
'QA' => 'قطر',
'LA' => 'لائوس',
'LB' => 'لبنان',
'LV' => 'لتونی',
'LS' => 'لسوتو',
'PL' => 'لهستان',
'LU' => 'لوکزامبورگ',
'LR' => 'لیبریا',
'LY' => 'لیبی',
'LT' => 'لیتوانی',
'LI' => 'لیختن‌اشتاین',
'MG' => 'ماداگاسکار',
'MQ' => 'مارتینیک',
'MW' => 'مالاوی',
'MT' => 'مالت',
'MV' => 'مالدیو',
'MY' => 'مالزی',
'ML' => 'مالی',
'MO' => 'ماکائو، ناحیهٔ ویژهٔ حکومتی چین',
'YT' => 'مایوت',
'HU' => 'مجارستان',
'MA' => 'مراکش',
'IO' => 'مستعمره‌های بریتانیا در اقیانوس هند',
'TF' => 'مستعمره‌های جنوبی فرانسه',
'EG' => 'مصر',
'MN' => 'مغولستان',
'MK' => 'مقدونیه',
'MR' => 'موریتانی',
'MU' => 'موریس',
'MZ' => 'موزامبیک',
'MD' => 'مولداوی',
'MC' => 'موناکو',
'ME' => 'مونته‌نگرو',
'MS' => 'مونت‌سرات',
'MX' => 'مکزیک',
'MM' => 'میانمار',
'FM' => 'میکرونزی',
'NR' => 'نائورو',
'ZZ' => 'ناحیهٔ نامشخص یا نامعتبر',
'NA' => 'نامیبیا',
'NO' => 'نروژ',
'NP' => 'نپال',
'NE' => 'نیجر',
'NG' => 'نیجریه',
'NU' => 'نیوئه',
'NI' => 'نیکاراگوئه',
'HT' => 'هاییتی',
'NL' => 'هلند',
'IN' => 'هند',
'HN' => 'هندوراس',
'HK' => 'هنگ‌کنگ، ناحیهٔ ویژهٔ حکومتی چین',
'VA' => 'واتیکان',
'WF' => 'والیس و فیوتونا',
'VU' => 'وانواتو',
'VE' => 'ونزوئلا',
'VN' => 'ویتنام',
'PY' => 'پاراگوئه',
'PW' => 'پالائو',
'PA' => 'پاناما',
'PG' => 'پاپوا گینهٔ نو',
'PK' => 'پاکستان',
'PT' => 'پرتغال',
'PE' => 'پرو',
'PF' => 'پلی‌نزی فرانسه',
'PR' => 'پورتو ریکو',
'PN' => 'پیتکایرن',
'TD' => 'چاد',
'CN' => 'چین',
'JP' => 'ژاپن',
'CR' => 'کاستاریکا',
'NC' => 'کالدونیای جدید',
'KH' => 'کامبوج',
'CM' => 'کامرون',
'CA' => 'کانادا',
'KR' => 'کرهٔ جنوبی',
'KP' => 'کرهٔ شمالی',
'HR' => 'کرواسی',
'CO' => 'کلمبیا',
'CG' => 'کنگو برازویل',
'CD' => 'کنگو کینشاسا',
'KE' => 'کنیا',
'CU' => 'کوبا',
'KM' => 'کومورو',
'KW' => 'کویت',
'KI' => 'کیریباتی',
'CV' => 'کیپ ورد',
'GA' => 'گابون',
'GM' => 'گامبیا',
'GD' => 'گرانادا',
'GE' => 'گرجستان',
'GG' => 'گرنزی',
'GL' => 'گروئنلند',
'GT' => 'گواتمالا',
'GP' => 'گوادلوپ',
'GU' => 'گوام',
'GY' => 'گویان',
'GF' => 'گویان فرانسه',
'GN' => 'گینه',
'GQ' => 'گینهٔ استوایی',
'GW' => 'گینهٔ بیسائو',
'YE' => 'یمن',
'GR' => 'یونان',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AX' => 'Ahvenanmaa',
'NL' => 'Alankomaat',
'AN' => 'Alankomaiden Antillit',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'Amerikan Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua ja Barbuda',
'AE' => 'Arabiemiirikunnat',
'AR' => 'Argentiina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AZ' => 'Azerbaidžan',
'BS' => 'Bahama',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgia',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnia ja Hertsegovina',
'BW' => 'Botswana',
'BV' => 'Bouvetnsaari',
'BR' => 'Brasilia',
'GB' => 'Britannia',
'IO' => 'Brittiläinen Intian valtameren alue',
'VG' => 'Brittiläiset Neitsytsaaret',
'BN' => 'Brunei',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KY' => 'Caymansaaret',
'CL' => 'Chile',
'CK' => 'Cookinsaaret',
'CR' => 'Costa Rica',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominikaaninen tasavalta',
'EC' => 'Ecuador',
'EG' => 'Egypti',
'SV' => 'El Salvador',
'ER' => 'Eritrea',
'ES' => 'Espanja',
'ZA' => 'Etelä-Afrikka',
'GS' => 'Etelä-Georgia ja Eteläiset Sandwichsaaret',
'KR' => 'Etelä-Korea',
'ET' => 'Etiopia',
'FK' => 'Falklandinsaaret',
'FJ' => 'Fidži',
'PH' => 'Filippiinit',
'FO' => 'Färsaaret',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GL' => 'Grönlanti',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard- ja McDonaldinsaaret',
'HN' => 'Honduras',
'HK' => 'Hongkong Kiinan erityishallintoalue',
'SJ' => 'Huippuvuoret ja Jan Mayen',
'ID' => 'Indonesia',
'IN' => 'Intia',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irlanti',
'IS' => 'Islanti',
'IL' => 'Israel',
'IT' => 'Italia',
'TL' => 'Itä-Timor',
'AT' => 'Itävalta',
'JM' => 'Jamaika',
'JP' => 'Japani',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordania',
'CX' => 'Joulusaari',
'KH' => 'Kambodža',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kap Verde',
'KZ' => 'Kazakstan',
'KE' => 'Kenia',
'CF' => 'Keski-Afrikan tasavalta',
'CN' => 'Kiina',
'KG' => 'Kirgisia',
'KI' => 'Kiribati',
'CO' => 'Kolumbia',
'KM' => 'Komorit',
'CG' => 'Kongo-Brazzaville',
'CD' => 'Kongo-Kinshasa',
'CC' => 'Kookossaaret',
'GR' => 'Kreikka',
'HR' => 'Kroatia',
'CU' => 'Kuuba',
'KW' => 'Kuwait',
'CY' => 'Kypros',
'LA' => 'Laos',
'LV' => 'Latvia',
'LS' => 'Lesotho',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libya',
'LI' => 'Liechtenstein',
'LT' => 'Liettua',
'LU' => 'Luxemburg',
'EH' => 'Länsi-Sahara',
'MO' => 'Macao Kiinan erityishallintoalue',
'MG' => 'Madagaskar',
'MK' => 'Makedonia',
'MW' => 'Malawi',
'MV' => 'Malediivit',
'MY' => 'Malesia',
'ML' => 'Mali',
'MT' => 'Malta',
'IM' => 'Mansaari',
'MA' => 'Marokko',
'MH' => 'Marshallinsaaret',
'MQ' => 'Martinique',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Meksiko',
'FM' => 'Mikronesian liittovaltio',
'MD' => 'Moldova',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mosambik',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NF' => 'Norfolkinsaari',
'NO' => 'Norja',
'CI' => 'Norsunluurannikko',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestiina',
'PA' => 'Panama',
'PG' => 'Papua-Uusi-Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'KP' => 'Pohjois-Korea',
'MP' => 'Pohjois-Mariaanit',
'PT' => 'Portugali',
'PR' => 'Puerto Rico',
'PL' => 'Puola',
'GQ' => 'Päiväntasaajan Guinea',
'QA' => 'Qatar',
'FR' => 'Ranska',
'GF' => 'Ranskan Guayana',
'PF' => 'Ranskan Polynesia',
'TF' => 'Ranskan ulkopuoliset eteläiset alueet',
'RO' => 'Romania',
'RW' => 'Ruanda',
'SE' => 'Ruotsi',
'RE' => 'Réunion',
'SH' => 'Saint Helena',
'KN' => 'Saint Kitts ja Nevis',
'LC' => 'Saint Lucia',
'VC' => 'Saint Vincent ja Grenadiinit',
'BL' => 'Saint-Barthélemy',
'MF' => 'Saint-Martin',
'PM' => 'Saint-Pierre ja Miquelon',
'DE' => 'Saksa',
'SB' => 'Salomonsaaret',
'ZM' => 'Sambia',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudi-Arabia',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia ja Montenegro',
'SC' => 'Seychellit',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakia',
'SI' => 'Slovenia',
'SO' => 'Somalia',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'FI' => 'Suomi',
'SR' => 'Surinam',
'CH' => 'Sveitsi',
'SZ' => 'Swazimaa',
'SY' => 'Syyria',
'ST' => 'São Tomé ja Príncipe',
'TJ' => 'Tadžikistan',
'TW' => 'Taiwan',
'TZ' => 'Tansania',
'DK' => 'Tanska',
'TH' => 'Thaimaa',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad ja Tobago',
'TN' => 'Tunisia',
'TR' => 'Turkki',
'TM' => 'Turkmenistan',
'TC' => 'Turks- ja Caicossaaret',
'TV' => 'Tuvalu',
'TD' => 'Tšad',
'CZ' => 'Tšekki',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'HU' => 'Unkari',
'UY' => 'Uruguay',
'NC' => 'Uusi-Kaledonia',
'NZ' => 'Uusi-Seelanti',
'UZ' => 'Uzbekistan',
'BY' => 'Valko-Venäjä',
'VU' => 'Vanuatu',
'VA' => 'Vatikaani',
'VE' => 'Venezuela',
'RU' => 'Venäjä',
'VN' => 'Vietnam',
'EE' => 'Viro',
'WF' => 'Wallis ja Futuna',
'US' => 'Yhdysvallat',
'VI' => 'Yhdysvaltain Neitsytsaaret',
'UM' => 'Yhdysvaltain pienet erillissaaret',
'ZW' => 'Zimbabwe',
'ZZ' => 'tuntematon tai virheellinen alue',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'ZA' => 'Afrique du Sud',
'AL' => 'Albanie',
'DZ' => 'Algérie',
'DE' => 'Allemagne',
'AD' => 'Andorre',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctique',
'AG' => 'Antigua-et-Barbuda',
'AN' => 'Antilles néerlandaises',
'SA' => 'Arabie saoudite',
'AR' => 'Argentine',
'AM' => 'Arménie',
'AW' => 'Aruba',
'AU' => 'Australie',
'AT' => 'Autriche',
'AZ' => 'Azerbaïdjan',
'BS' => 'Bahamas',
'BH' => 'Bahreïn',
'BD' => 'Bangladesh',
'BB' => 'Barbade',
'BE' => 'Belgique',
'BZ' => 'Belize',
'BM' => 'Bermudes',
'BT' => 'Bhoutan',
'BO' => 'Bolivie',
'BA' => 'Bosnie-Herzégovine',
'BW' => 'Botswana',
'BN' => 'Brunéi Darussalam',
'BR' => 'Brésil',
'BG' => 'Bulgarie',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BY' => 'Bélarus',
'BJ' => 'Bénin',
'KH' => 'Cambodge',
'CM' => 'Cameroun',
'CA' => 'Canada',
'CV' => 'Cap-Vert',
'CL' => 'Chili',
'CN' => 'Chine',
'CY' => 'Chypre',
'CO' => 'Colombie',
'KM' => 'Comores',
'CG' => 'Congo',
'KP' => 'Corée du Nord',
'KR' => 'Corée du Sud',
'CR' => 'Costa Rica',
'HR' => 'Croatie',
'CU' => 'Cuba',
'CI' => 'Côte dIvoire',
'DK' => 'Danemark',
'DJ' => 'Djibouti',
'DM' => 'Dominique',
'SV' => 'El Salvador',
'ES' => 'Espagne',
'EE' => 'Estonie',
'FJ' => 'Fidji',
'FI' => 'Finlande',
'FR' => 'France',
'GA' => 'Gabon',
'GM' => 'Gambie',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenade',
'GL' => 'Groenland',
'GR' => 'Grèce',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernesey',
'GN' => 'Guinée',
'GQ' => 'Guinée équatoriale',
'GW' => 'Guinée-Bissau',
'GY' => 'Guyana',
'GF' => 'Guyane française',
'GE' => 'Géorgie',
'GS' => 'Géorgie du Sud et les îles Sandwich du Sud',
'HT' => 'Haïti',
'HN' => 'Honduras',
'HU' => 'Hongrie',
'IN' => 'Inde',
'ID' => 'Indonésie',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irlande',
'IS' => 'Islande',
'IL' => 'Israël',
'IT' => 'Italie',
'JM' => 'Jamaïque',
'JP' => 'Japon',
'JE' => 'Jersey',
'JO' => 'Jordanie',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'KG' => 'Kirghizistan',
'KI' => 'Kiribati',
'KW' => 'Koweït',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettonie',
'LB' => 'Liban',
'LY' => 'Libye',
'LR' => 'Libéria',
'LI' => 'Liechtenstein',
'LT' => 'Lituanie',
'LU' => 'Luxembourg',
'MK' => 'Macédoine',
'MG' => 'Madagascar',
'MY' => 'Malaisie',
'MW' => 'Malawi',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malte',
'MA' => 'Maroc',
'MQ' => 'Martinique',
'MU' => 'Maurice',
'MR' => 'Mauritanie',
'YT' => 'Mayotte',
'MX' => 'Mexique',
'MD' => 'Moldavie',
'MC' => 'Monaco',
'MN' => 'Mongolie',
'MS' => 'Montserrat',
'ME' => 'Monténégro',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibie',
'NR' => 'Nauru',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigéria',
'NU' => 'Niue',
'NO' => 'Norvège',
'NC' => 'Nouvelle-Calédonie',
'NZ' => 'Nouvelle-Zélande',
'NP' => 'Népal',
'OM' => 'Oman',
'UG' => 'Ouganda',
'UZ' => 'Ouzbékistan',
'PK' => 'Pakistan',
'PW' => 'Palaos',
'PA' => 'Panama',
'PG' => 'Papouasie-Nouvelle-Guinée',
'PY' => 'Paraguay',
'NL' => 'Pays-Bas',
'PH' => 'Philippines',
'PN' => 'Pitcairn',
'PL' => 'Pologne',
'PF' => 'Polynésie française',
'PR' => 'Porto Rico',
'PT' => 'Portugal',
'PE' => 'Pérou',
'QA' => 'Qatar',
'HK' => 'R.A.S. chinoise de Hong Kong',
'MO' => 'R.A.S. chinoise de Macao',
'RO' => 'Roumanie',
'GB' => 'Royaume-Uni',
'RU' => 'Russie',
'RW' => 'Rwanda',
'CF' => 'République centrafricaine',
'DO' => 'République dominicaine',
'CD' => 'République démocratique du Congo',
'CZ' => 'République tchèque',
'RE' => 'Réunion',
'EH' => 'Sahara occidental',
'BL' => 'Saint-Barthélémy',
'KN' => 'Saint-Kitts-et-Nevis',
'SM' => 'Saint-Marin',
'MF' => 'Saint-Martin',
'PM' => 'Saint-Pierre-et-Miquelon',
'VC' => 'Saint-Vincent-et-les Grenadines',
'SH' => 'Sainte-Hélène',
'LC' => 'Sainte-Lucie',
'WS' => 'Samoa',
'AS' => 'Samoa américaines',
'ST' => 'Sao Tomé-et-Principe',
'RS' => 'Serbie',
'CS' => 'Serbie-et-Monténégro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapour',
'SK' => 'Slovaquie',
'SI' => 'Slovénie',
'SO' => 'Somalie',
'SD' => 'Soudan',
'LK' => 'Sri Lanka',
'CH' => 'Suisse',
'SR' => 'Suriname',
'SE' => 'Suède',
'SJ' => 'Svalbard et Île Jan Mayen',
'SZ' => 'Swaziland',
'SY' => 'Syrie',
'SN' => 'Sénégal',
'TJ' => 'Tadjikistan',
'TZ' => 'Tanzanie',
'TW' => 'Taïwan',
'TD' => 'Tchad',
'TF' => 'Terres australes françaises',
'IO' => 'Territoire britannique de l\'océan Indien',
'PS' => 'Territoire palestinien',
'TH' => 'Thaïlande',
'TL' => 'Timor oriental',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinité-et-Tobago',
'TN' => 'Tunisie',
'TM' => 'Turkménistan',
'TR' => 'Turquie',
'TV' => 'Tuvalu',
'UA' => 'Ukraine',
'UY' => 'Uruguay',
'VU' => 'Vanuatu',
'VE' => 'Venezuela',
'VN' => 'Viêt Nam',
'WF' => 'Wallis-et-Futuna',
'YE' => 'Yémen',
'ZM' => 'Zambie',
'ZW' => 'Zimbabwe',
'ZZ' => 'région indéterminée',
'EG' => 'Égypte',
'AE' => 'Émirats arabes unis',
'EC' => 'Équateur',
'ER' => 'Érythrée',
'VA' => 'État de la Cité du Vatican',
'FM' => 'États fédérés de Micronésie',
'US' => 'États-Unis',
'ET' => 'Éthiopie',
'BV' => 'Île Bouvet',
'CX' => 'Île Christmas',
'NF' => 'Île Norfolk',
'IM' => 'Île de Man',
'KY' => 'Îles Caïmans',
'CC' => 'Îles Cocos - Keeling',
'CK' => 'Îles Cook',
'FO' => 'Îles Féroé',
'HM' => 'Îles Heard et MacDonald',
'FK' => 'Îles Malouines',
'MP' => 'Îles Mariannes du Nord',
'MH' => 'Îles Marshall',
'UM' => 'Îles Mineures Éloignées des États-Unis',
'SB' => 'Îles Salomon',
'TC' => 'Îles Turks et Caïques',
'VG' => 'Îles Vierges britanniques',
'VI' => 'Îles Vierges des États-Unis',
'AX' => 'Îles Åland',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'ZA' => 'Afrique du Sud',
'AL' => 'Albanie',
'DZ' => 'Algérie',
'DE' => 'Allemagne',
'AD' => 'Andorre',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctique',
'AG' => 'Antigua-et-Barbuda',
'AN' => 'Antilles néerlandaises',
'SA' => 'Arabie saoudite',
'AR' => 'Argentine',
'AM' => 'Arménie',
'AW' => 'Aruba',
'AU' => 'Australie',
'AT' => 'Autriche',
'AZ' => 'Azerbaïdjan',
'BS' => 'Bahamas',
'BH' => 'Bahreïn',
'BD' => 'Bangladesh',
'BB' => 'Barbade',
'BE' => 'Belgique',
'BZ' => 'Belize',
'BM' => 'Bermudes',
'BT' => 'Bhoutan',
'BO' => 'Bolivie',
'BA' => 'Bosnie-Herzégovine',
'BW' => 'Botswana',
'BN' => 'Brunéi Darussalam',
'BR' => 'Brésil',
'BG' => 'Bulgarie',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BY' => 'Bélarus',
'BJ' => 'Bénin',
'KH' => 'Cambodge',
'CM' => 'Cameroun',
'CA' => 'Canada',
'CV' => 'Cap-Vert',
'CL' => 'Chili',
'CN' => 'Chine',
'CY' => 'Chypre',
'CO' => 'Colombie',
'KM' => 'Comores',
'CG' => 'Congo',
'KP' => 'Corée du Nord',
'KR' => 'Corée du Sud',
'CR' => 'Costa Rica',
'HR' => 'Croatie',
'CU' => 'Cuba',
'CI' => 'Côte dIvoire',
'DK' => 'Danemark',
'DJ' => 'Djibouti',
'DM' => 'Dominique',
'SV' => 'El Salvador',
'ES' => 'Espagne',
'EE' => 'Estonie',
'FJ' => 'Fidji',
'FI' => 'Finlande',
'FR' => 'France',
'GA' => 'Gabon',
'GM' => 'Gambie',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenade',
'GL' => 'Groenland',
'GR' => 'Grèce',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernesey',
'GN' => 'Guinée',
'GQ' => 'Guinée équatoriale',
'GW' => 'Guinée-Bissau',
'GY' => 'Guyana',
'GF' => 'Guyane française',
'GE' => 'Géorgie',
'GS' => 'Géorgie du Sud et les îles Sandwich du Sud',
'HT' => 'Haïti',
'HN' => 'Honduras',
'HU' => 'Hongrie',
'IN' => 'Inde',
'ID' => 'Indonésie',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irlande',
'IS' => 'Islande',
'IL' => 'Israël',
'IT' => 'Italie',
'JM' => 'Jamaïque',
'JP' => 'Japon',
'JE' => 'Jersey',
'JO' => 'Jordanie',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'KG' => 'Kirghizistan',
'KI' => 'Kiribati',
'KW' => 'Koweït',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettonie',
'LB' => 'Liban',
'LY' => 'Libye',
'LR' => 'Libéria',
'LI' => 'Liechtenstein',
'LT' => 'Lituanie',
'LU' => 'Luxembourg',
'MK' => 'Macédoine',
'MG' => 'Madagascar',
'MY' => 'Malaisie',
'MW' => 'Malawi',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malte',
'MA' => 'Maroc',
'MQ' => 'Martinique',
'MU' => 'Maurice',
'MR' => 'Mauritanie',
'YT' => 'Mayotte',
'MX' => 'Mexique',
'MD' => 'Moldavie',
'MC' => 'Monaco',
'MN' => 'Mongolie',
'MS' => 'Montserrat',
'ME' => 'Monténégro',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibie',
'NR' => 'Nauru',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigéria',
'NU' => 'Niue',
'NO' => 'Norvège',
'NC' => 'Nouvelle-Calédonie',
'NZ' => 'Nouvelle-Zélande',
'NP' => 'Népal',
'OM' => 'Oman',
'UG' => 'Ouganda',
'UZ' => 'Ouzbékistan',
'PK' => 'Pakistan',
'PW' => 'Palaos',
'PA' => 'Panama',
'PG' => 'Papouasie-Nouvelle-Guinée',
'PY' => 'Paraguay',
'NL' => 'Pays-Bas',
'PH' => 'Philippines',
'PN' => 'Pitcairn',
'PL' => 'Pologne',
'PF' => 'Polynésie française',
'PR' => 'Porto Rico',
'PT' => 'Portugal',
'PE' => 'Pérou',
'QA' => 'Qatar',
'HK' => 'R.A.S. chinoise de Hong Kong',
'MO' => 'R.A.S. chinoise de Macao',
'RO' => 'Roumanie',
'GB' => 'Royaume-Uni',
'RU' => 'Russie',
'RW' => 'Rwanda',
'CF' => 'République centrafricaine',
'DO' => 'République dominicaine',
'CD' => 'République démocratique du Congo',
'CZ' => 'République tchèque',
'RE' => 'Réunion',
'EH' => 'Sahara occidental',
'BL' => 'Saint-Barthélémy',
'KN' => 'Saint-Kitts-et-Nevis',
'SM' => 'Saint-Marin',
'MF' => 'Saint-Martin',
'PM' => 'Saint-Pierre-et-Miquelon',
'VC' => 'Saint-Vincent-et-les Grenadines',
'SH' => 'Sainte-Hélène',
'LC' => 'Sainte-Lucie',
'WS' => 'Samoa',
'AS' => 'Samoa américaines',
'ST' => 'Sao Tomé-et-Principe',
'RS' => 'Serbie',
'CS' => 'Serbie-et-Monténégro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapour',
'SK' => 'Slovaquie',
'SI' => 'Slovénie',
'SO' => 'Somalie',
'SD' => 'Soudan',
'LK' => 'Sri Lanka',
'CH' => 'Suisse',
'SR' => 'Suriname',
'SE' => 'Suède',
'SJ' => 'Svalbard et Île Jan Mayen',
'SZ' => 'Swaziland',
'SY' => 'Syrie',
'SN' => 'Sénégal',
'TJ' => 'Tadjikistan',
'TZ' => 'Tanzanie',
'TW' => 'Taïwan',
'TD' => 'Tchad',
'TF' => 'Terres australes françaises',
'IO' => 'Territoire britannique de l\'océan Indien',
'PS' => 'Territoire palestinien',
'TH' => 'Thaïlande',
'TL' => 'Timor oriental',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinité-et-Tobago',
'TN' => 'Tunisie',
'TM' => 'Turkménistan',
'TR' => 'Turquie',
'TV' => 'Tuvalu',
'UA' => 'Ukraine',
'UY' => 'Uruguay',
'VU' => 'Vanuatu',
'VE' => 'Venezuela',
'VN' => 'Viêt Nam',
'WF' => 'Wallis-et-Futuna',
'YE' => 'Yémen',
'ZM' => 'Zambie',
'ZW' => 'Zimbabwe',
'ZZ' => 'région indéterminée',
'EG' => 'Égypte',
'AE' => 'Émirats arabes unis',
'EC' => 'Équateur',
'ER' => 'Érythrée',
'VA' => 'État de la Cité du Vatican',
'FM' => 'États fédérés de Micronésie',
'US' => 'États-Unis',
'ET' => 'Éthiopie',
'BV' => 'Île Bouvet',
'CX' => 'Île Christmas',
'NF' => 'Île Norfolk',
'IM' => 'Île de Man',
'KY' => 'Îles Caïmans',
'CC' => 'Îles Cocos - Keeling',
'CK' => 'Îles Cook',
'FO' => 'Îles Féroé',
'HM' => 'Îles Heard et MacDonald',
'FK' => 'Îles Malouines',
'MP' => 'Îles Mariannes du Nord',
'MH' => 'Îles Marshall',
'UM' => 'Îles Mineures Éloignées des États-Unis',
'SB' => 'Îles Salomon',
'TC' => 'Îles Turks et Caïques',
'VG' => 'Îles Vierges britanniques',
'VI' => 'Îles Vierges des États-Unis',
'AX' => 'Îles Åland',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'UG' => 'אוגנדה',
'UZ' => 'אוזבקיסטן',
'AT' => 'אוסטריה',
'AU' => 'אוסטרליה',
'UA' => 'אוקראינה',
'UY' => 'אורוגוואי',
'ZZ' => 'אזור לא ידוע או לא תקין',
'AZ' => 'אזרביג\'ן',
'AE' => 'איחוד האמירויות הערביות',
'IT' => 'איטליה',
'AX' => 'איי אלנד',
'BS' => 'איי בהאמה',
'BV' => 'איי בובה',
'VI' => 'איי הבתולה האמריקניים',
'VG' => 'איי הבתולה הבריטיים',
'HM' => 'איי הרד ואיי מקדונלנד',
'WF' => 'איי ווליס ופוטונה',
'TC' => 'איי טורקס וקאיקוס',
'CX' => 'איי כריסטמס',
'MP' => 'איי מריאנה הצפוניים',
'MH' => 'איי מרשל',
'NF' => 'איי נורפוק',
'SC' => 'איי סיישל',
'FO' => 'איי פארו',
'FK' => 'איי פוקלנד',
'CK' => 'איי קוק',
'CC' => 'איי קוקוס',
'KY' => 'איי קיימן',
'SB' => 'איי שלמה',
'UM' => 'איים קטנים שלחוף ארצות הברית',
'ID' => 'אינדונזיה',
'IS' => 'איסלנד',
'IR' => 'איראן',
'IE' => 'אירלנד',
'SV' => 'אל סלבדור',
'AL' => 'אלבניה',
'DZ' => 'אלג׳יריה',
'AO' => 'אנגולה',
'AI' => 'אנגילה',
'AD' => 'אנדורה',
'AQ' => 'אנטארקטיקה',
'AG' => 'אנטיגואה וברבודה',
'AN' => 'אנטילים הולנדיים',
'EE' => 'אסטוניה',
'AF' => 'אפגניסטן',
'EC' => 'אקוודור',
'AR' => 'ארגנטינה',
'AW' => 'ארובה',
'ER' => 'אריתראה',
'AM' => 'ארמניה',
'US' => 'ארצות הברית',
'ET' => 'אתיופיה',
'BT' => 'בהוטן',
'BW' => 'בוטסוואנה',
'BG' => 'בולגריה',
'BO' => 'בוליביה',
'BA' => 'בוסניה והרצגובינה',
'BI' => 'בורונדי',
'BF' => 'בורקינה פאסו',
'BH' => 'בחריין',
'BY' => 'בלארוס',
'BE' => 'בלגיה',
'BZ' => 'בליז',
'BD' => 'בנגלדש',
'BJ' => 'בנין',
'BB' => 'ברבדוס',
'BN' => 'ברוניי',
'BR' => 'ברזיל',
'GB' => 'בריטניה',
'BM' => 'ברמודה',
'JE' => 'ג\'רסי',
'GA' => 'גאבון',
'GE' => 'גאורגיה',
'GH' => 'גאנה',
'GT' => 'גואטמלה',
'GU' => 'גואם',
'GP' => 'גוואדלופ',
'GY' => 'גיאנה',
'GF' => 'גיאנה הצרפתית',
'GI' => 'גיברלטר',
'GN' => 'גיניאה',
'GQ' => 'גיניאה המשוונית',
'GW' => 'גיניאה-ביסאו',
'GM' => 'גמביה',
'GL' => 'גרינלנד',
'DE' => 'גרמניה',
'GD' => 'גרנדה',
'GG' => 'גרנסי',
'GS' => 'ג׳ורג׳יה הדרומית ואיי סנדוויץ׳ הדרומיים',
'DJ' => 'ג׳יבוטי',
'JM' => 'ג׳מייקה',
'DM' => 'דומיניקה',
'DK' => 'דנמרק',
'ZA' => 'דרום אפריקה',
'KR' => 'דרום קוריאה',
'IM' => 'האי מאן',
'HT' => 'האיטי',
'IN' => 'הודו',
'VA' => 'הוותיקן',
'NL' => 'הולנד',
'HK' => 'הונג קונג (מחוז מנהלי מיוחד של סין)',
'HU' => 'הונגריה',
'HN' => 'הונדורס',
'DO' => 'הרפובליקה הדומיניקנית',
'CF' => 'הרפובליקה של מרכז אפריקה',
'PS' => 'הרשות הפלסטינית',
'VN' => 'וייטנאם',
'VU' => 'ונואטו',
'VE' => 'ונצואלה',
'ZW' => 'זימבאבווה',
'ZM' => 'זמביה',
'CI' => 'חוף השנהב',
'TJ' => 'טג׳יקיסטן',
'TV' => 'טובלו',
'TG' => 'טוגו',
'TO' => 'טונגה',
'TK' => 'טוקלאו',
'TR' => 'טורקיה',
'TM' => 'טורקמניסטן',
'TW' => 'טייוואן',
'TZ' => 'טנזניה',
'IO' => 'טריטוריה בריטית באוקיאנוס ההודי',
'TF' => 'טריטוריות דרומיות של צרפת',
'TT' => 'טרינידד וטובגו',
'GR' => 'יוון',
'JP' => 'יפן',
'JO' => 'ירדן',
'IL' => 'ישראל',
'KW' => 'כווית',
'CV' => 'כף ורדה',
'LA' => 'לאוס',
'LB' => 'לבנון',
'LY' => 'לוב',
'LU' => 'לוקסמבורג',
'LV' => 'לטביה',
'LR' => 'ליבריה',
'LT' => 'ליטא',
'LI' => 'ליכטנשטיין',
'LS' => 'לסוטו',
'MR' => 'מאוריטניה',
'MU' => 'מאוריציוס',
'YT' => 'מאיוט',
'ML' => 'מאלי',
'MG' => 'מדגסקר',
'MZ' => 'מוזמביק',
'MD' => 'מולדובה',
'MN' => 'מונגוליה',
'ME' => 'מונטנגרו',
'MS' => 'מונסראט',
'MC' => 'מונקו',
'TL' => 'מזרח טימור',
'MM' => 'מייאנמאר',
'FM' => 'מיקרונזיה',
'MW' => 'מלאווי',
'MV' => 'מלדיבים',
'MY' => 'מלזיה',
'MT' => 'מלטה',
'EG' => 'מצרים',
'MO' => 'מקאו (מחוז מנהלי מיוחד של סין)',
'MK' => 'מקדוניה',
'MX' => 'מקסיקו',
'MA' => 'מרוקו',
'MQ' => 'מרטיניק',
'NR' => 'נאורו',
'NO' => 'נורווגיה',
'NG' => 'ניגריה',
'NZ' => 'ניו זילנד',
'NU' => 'ניווה',
'NE' => 'ניז׳ר',
'NI' => 'ניקרגואה',
'NA' => 'נמיביה',
'NP' => 'נפאל',
'ST' => 'סאו טומה ופרינסיפה',
'EH' => 'סהרה המערבית',
'SD' => 'סודן',
'SZ' => 'סווזילנד',
'SJ' => 'סוולבארד וז׳אן מאיין',
'SO' => 'סומליה',
'SY' => 'סוריה',
'SR' => 'סורינם',
'SL' => 'סיירה לאונה',
'CN' => 'סין',
'SG' => 'סינגפור',
'SI' => 'סלובניה',
'SK' => 'סלובקיה',
'WS' => 'סמואה',
'AS' => 'סמואה האמריקנית',
'SM' => 'סן מרינו',
'SN' => 'סנגל',
'BL' => 'סנט ברתולומיאו',
'SH' => 'סנט הלנה',
'VC' => 'סנט וינסנט והגרנדינים',
'LC' => 'סנט לוסיה',
'MF' => 'סנט מרטין',
'PM' => 'סנט פייר ומיקלון',
'KN' => 'סנט קיטס ונוויס',
'ES' => 'ספרד',
'RS' => 'סרביה',
'CS' => 'סרביה ומונטנגרו',
'LK' => 'סרי לנקה',
'OM' => 'עומאן',
'IQ' => 'עיראק',
'SA' => 'ערב הסעודית',
'PW' => 'פאלאו',
'PL' => 'פולין',
'PF' => 'פולינזיה הצרפתית',
'PR' => 'פורטו ריקו',
'PT' => 'פורטוגל',
'FJ' => 'פיג׳י',
'PN' => 'פיטקרן',
'PH' => 'פיליפינים',
'FI' => 'פינלנד',
'PA' => 'פנמה',
'PG' => 'פפואה גיניאה החדשה',
'PK' => 'פקיסטן',
'PY' => 'פרגוואי',
'PE' => 'פרו',
'KP' => 'צפון קוריאה',
'FR' => 'צרפת',
'TD' => 'צ׳אד',
'CL' => 'צ׳ילה',
'CZ' => 'צ׳כיה',
'CU' => 'קובה',
'CO' => 'קולומביה',
'KM' => 'קומורוס',
'CG' => 'קונגו - ברזאויל',
'CD' => 'קונגו - קינשאסה',
'CR' => 'קוסטה ריקה',
'KZ' => 'קזחסטן',
'QA' => 'קטאר',
'KG' => 'קירגיזסטן',
'KI' => 'קיריבאטי',
'NC' => 'קלדוניה החדשה',
'KH' => 'קמבודיה',
'CM' => 'קמרון',
'CA' => 'קנדה',
'KE' => 'קניה',
'CY' => 'קפריסין',
'HR' => 'קרואטיה',
'RE' => 'ראוניון',
'RW' => 'רואנדה',
'RO' => 'רומניה',
'RU' => 'רוסיה',
'SE' => 'שוודיה',
'CH' => 'שווייץ',
'TH' => 'תאילנד',
'TN' => 'תוניסיה',
'YE' => 'תימן',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AX' => 'Alandski otoci',
'AL' => 'Albanija',
'DZ' => 'Alžir',
'AS' => 'Američka Samoa',
'VI' => 'Američki Djevičanski Otoci',
'AD' => 'Andora',
'AO' => 'Angola',
'AI' => 'Anguila',
'AQ' => 'Antarktik',
'AG' => 'Antigua i Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenija',
'AW' => 'Aruba',
'AU' => 'Australija',
'AT' => 'Austrija',
'AZ' => 'Azerbajdžan',
'BS' => 'Bahami',
'BH' => 'Bahrein',
'BD' => 'Bangladeš',
'BB' => 'Barbados',
'BE' => 'Belgija',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'MK' => 'Bivša Jugoslavenska Republika Makedonija',
'BY' => 'Bjelorusija',
'BW' => 'Bocvana',
'BO' => 'Bolivija',
'BA' => 'Bosna i Hercegovina',
'CX' => 'Božićni Otok',
'BR' => 'Brazil',
'VG' => 'Britanski Djevičanski Otoci',
'IO' => 'Britanski Teritorij Indijskog Oceana',
'BN' => 'Brunej',
'BG' => 'Bugarska',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BT' => 'Butan',
'CY' => 'Cipar',
'ME' => 'Crna Gora',
'DK' => 'Danska',
'CD' => 'Demokratska Republika Kongo',
'DM' => 'Dominika',
'DO' => 'Dominikanska Republika',
'DJ' => 'Džibuti',
'EG' => 'Egipat',
'EC' => 'Ekvador',
'GQ' => 'Ekvatorska Gvineja',
'SV' => 'El Salvador',
'ER' => 'Eritreja',
'EE' => 'Estonija',
'ET' => 'Etiopija',
'FK' => 'Falklandski Otoci',
'FO' => 'Farski Otoci',
'FJ' => 'Fidži',
'PH' => 'Filipini',
'FI' => 'Finska',
'FR' => 'Francuska',
'GF' => 'Francuska Gvajana',
'PF' => 'Francuska Polinezija',
'TF' => 'Francuski Južni Teritoriji',
'GA' => 'Gabon',
'GM' => 'Gambija',
'GH' => 'Gana',
'GI' => 'Gibraltar',
'VA' => 'Grad Vatikan',
'GD' => 'Grenada',
'GL' => 'Grenland',
'GE' => 'Gruzija',
'GR' => 'Grčka',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GG' => 'Guernsey',
'GY' => 'Gvajana',
'GT' => 'Gvatemala',
'GN' => 'Gvineja',
'GW' => 'Gvineja Bisau',
'HT' => 'Haiti',
'HN' => 'Honduras',
'HK' => 'Hong Kong S.A.R. Kine',
'HR' => 'Hrvatska',
'IN' => 'Indija',
'ID' => 'Indonezija',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irska',
'IS' => 'Island',
'TL' => 'Istočni Timor',
'IT' => 'Italija',
'IL' => 'Izrael',
'JM' => 'Jamajka',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordan',
'GS' => 'Južna Gruzija i Južni Sendvič Otoci',
'KR' => 'Južna Koreja',
'ZA' => 'Južnoafrička Republika',
'KY' => 'Kajmanski Otoci',
'KH' => 'Kambodža',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'QA' => 'Katar',
'KZ' => 'Kazakstan',
'KE' => 'Kenija',
'CN' => 'Kina',
'KG' => 'Kirgistan',
'KI' => 'Kiribati',
'CC' => 'Kokosovi Otoci',
'CO' => 'Kolumbija',
'KM' => 'Komori',
'CG' => 'Kongo',
'KP' => 'Koreja, Sjeverna',
'CR' => 'Kostarika',
'CU' => 'Kuba',
'CK' => 'Kukovi Otoci',
'KW' => 'Kuvajt',
'LA' => 'Laos',
'LV' => 'Latvija',
'LS' => 'Lesoto',
'LB' => 'Libanon',
'LR' => 'Liberija',
'LY' => 'Libijska Arapska Džamahirija',
'LI' => 'Lihtenštajn',
'LT' => 'Litva',
'LU' => 'Luksemburg',
'MG' => 'Madagaskar',
'YT' => 'Majote',
'MO' => 'Makao S.A.R. Kine',
'MW' => 'Malavi',
'MV' => 'Maldivi',
'MY' => 'Malezija',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Maroko',
'MQ' => 'Martinik',
'MH' => 'Maršalovi Otoci',
'MU' => 'Mauricijus',
'MR' => 'Mauritanija',
'HU' => 'Mađarska',
'MX' => 'Meksiko',
'MM' => 'Mijanma',
'FM' => 'Mikronezija',
'MD' => 'Moldavija',
'MC' => 'Monako',
'MN' => 'Mongolija',
'MS' => 'Montserat',
'MZ' => 'Mozambik',
'NA' => 'Namibija',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NE' => 'Niger',
'NG' => 'Nigerija',
'NI' => 'Nikaragva',
'NU' => 'Niue',
'NL' => 'Nizozemska',
'AN' => 'Nizozemski Antili',
'DE' => 'Njemačka',
'NO' => 'Norveška',
'NC' => 'Nova Kaledonija',
'NZ' => 'Novi Zeland',
'CI' => 'Obala Bjelokosti',
'OM' => 'Oman',
'BV' => 'Otok Bouvet',
'HM' => 'Otok Heard i Otoci McDonald',
'IM' => 'Otok Man',
'NF' => 'Otok Norfolk',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinsko Područje',
'PA' => 'Panama',
'PG' => 'Papua Nova Gvineja',
'PY' => 'Paragvaj',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Poljska',
'PR' => 'Portoriko',
'PT' => 'Portugal',
'RE' => 'Reunion',
'RW' => 'Ruanda',
'RO' => 'Rumunjska',
'RU' => 'Rusija',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudijska Arabija',
'SC' => 'Sejšeli',
'SN' => 'Senegal',
'SL' => 'Sijera Leone',
'SG' => 'Singapur',
'SY' => 'Sirija',
'US' => 'Sjedinjene Države',
'MP' => 'Sjeverni Marijanski Otoci',
'SK' => 'Slovačka',
'SI' => 'Slovenija',
'SB' => 'Solomonski Otoci',
'SO' => 'Somalija',
'RS' => 'Srbija',
'CS' => 'Srbija i Crna Gora',
'CF' => 'Srednjoafrička Republika',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard i Jan Mayen',
'SZ' => 'Svazi',
'SH' => 'Sveta Helena',
'LC' => 'Sveta Lucija',
'BL' => 'Sveti Bartolomej',
'KN' => 'Sveti Kristofor i Nevis',
'MF' => 'Sveti Martin',
'PM' => 'Sveti Petar i Miguel',
'ST' => 'Sveti Toma i Prinsipe',
'VC' => 'Sveti Vincent i Grenadini',
'TJ' => 'Tadžikistan',
'TH' => 'Tajland',
'TW' => 'Tajvan',
'TZ' => 'Tanzanija',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad i Tobago',
'TN' => 'Tunis',
'TM' => 'Turkmenistan',
'TC' => 'Turkski i Kaikos Otoci',
'TR' => 'Turska',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UM' => 'Ujedinjene Države Manjih Pacifičkih Otoka',
'AE' => 'Ujedinjeni Arapski Emirati',
'UA' => 'Ukrajina',
'UY' => 'Urugvaj',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'GB' => 'Velika Britanija',
'VE' => 'Venezuela',
'VN' => 'Vijetnam',
'WF' => 'Wallis i Futuna',
'ZM' => 'Zambija',
'EH' => 'Zapadna Sahara',
'CV' => 'Zeleni Rt',
'ZW' => 'Zimbabve',
'ZZ' => 'nepoznata ili nevažeća oblast',
'TD' => 'Čad',
'CZ' => 'Češka Republika',
'CL' => 'Čile',
'ES' => 'Španjolska',
'LK' => 'Šri Lanka',
'SE' => 'Švedska',
'CH' => 'Švicarska',
);

View File

@ -0,0 +1,247 @@
<?php return array(
'AF' => 'Afghanistan',
'ZA' => 'Afrika Selatan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'US' => 'Amerika Serikat',
'AD' => 'Andora',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktika',
'AG' => 'Antigua dan Barbuda',
'AN' => 'Antilles Belanda',
'SA' => 'Arab Saudi',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaijan',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BY' => 'Belarusia',
'BE' => 'Belgia',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnia dan Herzegovina',
'BW' => 'Botswana',
'BR' => 'Brazil',
'IO' => 'British Indian Ocean Territory',
'BN' => 'Brunei',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'TD' => 'Chad',
'CL' => 'Chili',
'CN' => 'Cina',
'DK' => 'Denmark',
'DM' => 'Dominika',
'EC' => 'Ekuador',
'SV' => 'El Salvador',
'ER' => 'Eritrea',
'EE' => 'Estonia',
'ET' => 'Ethiopia',
'FJ' => 'Fiji',
'PH' => 'Filipina',
'FI' => 'Finlandia',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'GS' => 'Georgia Selatan dan Kepulauan Sandwich Selatan',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GL' => 'Greenland',
'GD' => 'Grenada',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GQ' => 'Guinea Khatulistiwa',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'GF' => 'Guyana Perancis',
'HT' => 'Haiti',
'HN' => 'Honduras',
'HK' => 'Hong Kong S.A.R., Cina',
'HU' => 'Hungaria',
'IN' => 'India',
'ID' => 'Indonesia',
'GB' => 'Inggris Raya',
'IR' => 'Iran',
'IQ' => 'Iraq',
'IE' => 'Irlandia',
'IS' => 'Islandia',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Itali',
'JM' => 'Jamaika',
'JP' => 'Jepang',
'DE' => 'Jerman',
'JE' => 'Jersey',
'DJ' => 'Jibouti',
'NC' => 'Kaledonia Baru',
'KH' => 'Kamboja',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'KZ' => 'Kazakhstan',
'KE' => 'Kenya',
'MP' => 'Kepualuan Mariana Utara',
'BV' => 'Kepulauan Bouvet',
'VG' => 'Kepulauan British Virgin',
'CC' => 'Kepulauan Cocos',
'CK' => 'Kepulauan Cook',
'FK' => 'Kepulauan Falkland',
'FO' => 'Kepulauan Faroe',
'KY' => 'Kepulauan Kayman',
'MH' => 'Kepulauan Marshall',
'NF' => 'Kepulauan Norfolk',
'SB' => 'Kepulauan Solomon',
'TC' => 'Kepulauan Turks dan Caicos',
'VI' => 'Kepulauan U.S. Virgin',
'UM' => 'Kepulauan minor sekitar Amerika Serikat',
'KI' => 'Kiribati',
'CO' => 'Kolombia',
'KM' => 'Komoros',
'CG' => 'Kongo',
'KR' => 'Korea Selatan',
'KP' => 'Korea Utara',
'CR' => 'Kosta Rika',
'HR' => 'Kroasia',
'CU' => 'Kuba',
'KW' => 'Kuwait',
'KG' => 'Kyrgyzstan',
'LA' => 'Laos',
'LV' => 'Latvia',
'LB' => 'Lebanon',
'LS' => 'Lesotho',
'LR' => 'Liberia',
'LY' => 'Libya',
'LI' => 'Liechtenstein',
'LT' => 'Lithuania',
'LU' => 'Luxembourg',
'MK' => 'Macedonia',
'MG' => 'Madagaskar',
'MO' => 'Makao S.A.R. Cina',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldives',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Maroko',
'MQ' => 'Martinique',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'EG' => 'Mesir',
'MX' => 'Mexico',
'FM' => 'Mikronesia',
'MD' => 'Moldova',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NL' => 'The Netherlands',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NO' => 'Norwegia',
'OM' => 'Oman',
'PS' => 'Otoritas Palestina',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PA' => 'Panama',
'CI' => 'Pantai Gading',
'PG' => 'Papua Nugini',
'PY' => 'Paraguay',
'FR' => 'Perancis',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polandia',
'PF' => 'Polynesia Perancis',
'PT' => 'Portugis',
'PR' => 'Puerto Riko',
'CX' => 'Pulau Christmas',
'HM' => 'Pulau Heard dan Kepulauan McDonald',
'QA' => 'Qatar',
'CF' => 'Republik Afrika Tengah',
'CZ' => 'Republik Ceko',
'CD' => 'Republik Demokratik Kongo',
'DO' => 'Republik Dominika',
'RO' => 'Romania',
'RU' => 'Rusia',
'RW' => 'Rwanda',
'RE' => 'Réunion',
'EH' => 'Sahara Barat',
'SH' => 'Saint Helena',
'KN' => 'Saint Kitts dan Nevis',
'PM' => 'Saint Pierre dan Miquelon',
'VC' => 'Saint Vincent dan Grenadines',
'WS' => 'Samoa',
'AS' => 'Samoa Amerika',
'SM' => 'San Marino',
'LC' => 'Santa Lusia',
'ST' => 'Sao Tome dan Principe',
'NZ' => 'Selandia Baru',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia dan Montenegro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapura',
'CY' => 'Siprus',
'SK' => 'Slovakia',
'SI' => 'Slovenia',
'SO' => 'Somalia',
'ES' => 'Spanyol',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard dan Jan Mayen',
'SZ' => 'Swaziland',
'SE' => 'Sweden',
'CH' => 'Swiss',
'SY' => 'Syria',
'TW' => 'Taiwan',
'TJ' => 'Tajikistan',
'CV' => 'Tanjung Verde',
'TZ' => 'Tanzania',
'TH' => 'Thailand',
'TL' => 'Timor Timur',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad dan Tobago',
'TN' => 'Tunisia',
'TR' => 'Turkey',
'TM' => 'Turkmenistan',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'AE' => 'Uni Emirat Arab',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikan',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WF' => 'Wallis dan Futuna',
'TF' => 'Wilayah Prancis Selatan',
'YE' => 'Yaman',
'JO' => 'Yordania',
'GR' => 'Yunani',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'AX' => '<27>Land Islands',
);

View File

@ -0,0 +1,249 @@
<?php return array(
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antartide',
'AG' => 'Antigua e Barbuda',
'AN' => 'Antille Olandesi',
'SA' => 'Arabia Saudita',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaigian',
'BS' => 'Bahamas',
'BH' => 'Bahrein',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgio',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BY' => 'Bielorussia',
'BO' => 'Bolivia',
'BA' => 'Bosnia Erzegovina',
'BW' => 'Botswana',
'BR' => 'Brasile',
'BN' => 'Brunei',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambogia',
'CM' => 'Camerun',
'CA' => 'Canada',
'CV' => 'Capo Verde',
'TD' => 'Ciad',
'CL' => 'Cile',
'CN' => 'Cina',
'CY' => 'Cipro',
'CO' => 'Colombia',
'KM' => 'Comore',
'CG' => 'Congo',
'KP' => 'Corea del Nord',
'KR' => 'Corea del Sud',
'CR' => 'Costa Rica',
'CI' => 'Costa dAvorio',
'HR' => 'Croazia',
'CU' => 'Cuba',
'DK' => 'Danimarca',
'DM' => 'Dominica',
'EC' => 'Ecuador',
'EG' => 'Egitto',
'SV' => 'El Salvador',
'AE' => 'Emirati Arabi Uniti',
'ER' => 'Eritrea',
'EE' => 'Estonia',
'ET' => 'Etiopia',
'RU' => 'Federazione Russa',
'FJ' => 'Figi',
'PH' => 'Filippine',
'FI' => 'Finlandia',
'FR' => 'Francia',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'GS' => 'Georgia del Sud e Isole Sandwich del Sud',
'DE' => 'Germania',
'GH' => 'Ghana',
'JM' => 'Giamaica',
'JP' => 'Giappone',
'GI' => 'Gibilterra',
'DJ' => 'Gibuti',
'JO' => 'Giordania',
'GR' => 'Grecia',
'GD' => 'Grenada',
'GL' => 'Groenlandia',
'GP' => 'Guadalupa',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GF' => 'Guiana Francese',
'GN' => 'Guinea',
'GQ' => 'Guinea Equatoriale',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HN' => 'Honduras',
'IN' => 'India',
'ID' => 'Indonesia',
'IR' => 'Iran',
'IQ' => 'Iraq',
'IE' => 'Irlanda',
'IS' => 'Islanda',
'BV' => 'Isola Bouvet',
'NF' => 'Isola Norfolk',
'CX' => 'Isola di Christmas',
'IM' => 'Isola di Man',
'AX' => 'Isole Aland',
'KY' => 'Isole Cayman',
'CC' => 'Isole Cocos',
'CK' => 'Isole Cook',
'FK' => 'Isole Falkland',
'FO' => 'Isole Faroe',
'HM' => 'Isole Heard ed Isole McDonald',
'MP' => 'Isole Marianne Settentrionali',
'MH' => 'Isole Marshall',
'UM' => 'Isole Minori lontane dagli Stati Uniti',
'SB' => 'Isole Solomon',
'TC' => 'Isole Turks e Caicos',
'VI' => 'Isole Vergini Americane',
'VG' => 'Isole Vergini Britanniche',
'IL' => 'Israele',
'IT' => 'Italia',
'JE' => 'Jersey',
'KZ' => 'Kazakistan',
'KE' => 'Kenya',
'KG' => 'Kirghizistan',
'KI' => 'Kiribati',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettonia',
'LB' => 'Libano',
'LR' => 'Liberia',
'LY' => 'Libia',
'LI' => 'Liechtenstein',
'LT' => 'Lituania',
'LU' => 'Lussemburgo',
'MG' => 'Madagascar',
'MW' => 'Malawi',
'MV' => 'Maldive',
'MY' => 'Malesia',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marocco',
'MQ' => 'Martinica',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Messico',
'FM' => 'Micronesia',
'MD' => 'Moldavia',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mozambico',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NO' => 'Norvegia',
'NC' => 'Nuova Caledonia',
'NZ' => 'Nuova Zelanda',
'OM' => 'Oman',
'NL' => 'Paesi Bassi',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestina',
'PA' => 'Panama',
'PG' => 'Papua Nuova Guinea',
'PY' => 'Paraguay',
'PE' => 'Perù',
'PN' => 'Pitcairn',
'PF' => 'Polinesia Francese',
'PL' => 'Polonia',
'PT' => 'Portogallo',
'PR' => 'Portorico',
'QA' => 'Qatar',
'HK' => 'Regione Amministrativa Speciale di Hong Kong della Repubblica Popolare Cinese',
'MO' => 'Regione Amministrativa Speciale di Macao della Repubblica Popolare Cinese',
'GB' => 'Regno Unito',
'CZ' => 'Repubblica Ceca',
'CF' => 'Repubblica Centrafricana',
'CD' => 'Repubblica Democratica del Congo',
'DO' => 'Repubblica Dominicana',
'MK' => 'Repubblica di Macedonia',
'RO' => 'Romania',
'RW' => 'Ruanda',
'RE' => 'Réunion',
'EH' => 'Sahara Occidentale',
'KN' => 'Saint Kitts e Nevis',
'LC' => 'Saint Lucia',
'PM' => 'Saint Pierre e Miquelon',
'VC' => 'Saint Vincent e Grenadines',
'WS' => 'Samoa',
'AS' => 'Samoa Americane',
'BL' => 'San Bartolomeo',
'SM' => 'San Marino',
'SH' => 'SantElena',
'ST' => 'Sao Tomé e Príncipe',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia e Montenegro',
'SC' => 'Seychelles',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SY' => 'Siria',
'SK' => 'Slovacchia',
'SI' => 'Slovenia',
'SO' => 'Somalia',
'ES' => 'Spagna',
'LK' => 'Sri Lanka',
'US' => 'Stati Uniti',
'ZA' => 'Sudafrica',
'SD' => 'Sudan',
'SR' => 'Suriname',
'SJ' => 'Svalbard e Jan Mayen',
'SE' => 'Svezia',
'CH' => 'Svizzera',
'SZ' => 'Swaziland',
'TJ' => 'Tagikistan',
'TH' => 'Tailandia',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TF' => 'Territori australi francesi',
'IO' => 'Territorio Britannico dellOceano Indiano',
'TL' => 'Timor Est',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad e Tobago',
'TN' => 'Tunisia',
'TR' => 'Turchia',
'TM' => 'Turkmenistan',
'TV' => 'Tuvalu',
'UA' => 'Ucraina',
'UG' => 'Uganda',
'HU' => 'Ungheria',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vaticano',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WF' => 'Wallis e Futuna',
'YE' => 'Yemen',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'ZZ' => 'regione non valida o sconosciuta',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'IS' => 'アイスランド',
'IE' => 'アイルランド',
'AZ' => 'アゼルバイジャン',
'AF' => 'アフガニスタン',
'US' => 'アメリカ合衆国',
'VI' => 'アメリカ領ヴァージン諸島',
'AE' => 'アラブ首長国連邦',
'DZ' => 'アルジェリア',
'AR' => 'アルゼンチン',
'AL' => 'アルバニア',
'AW' => 'アルバ島',
'AM' => 'アルメニア',
'AI' => 'アンギラ',
'AO' => 'アンゴラ',
'AG' => 'アンティグア・バーブーダ',
'AD' => 'アンドラ',
'YE' => 'イエメン',
'GB' => 'イギリス',
'VG' => 'イギリス領ヴァージン諸島',
'IL' => 'イスラエル',
'IT' => 'イタリア',
'IQ' => 'イラク',
'IR' => 'イラン',
'IN' => 'インド',
'ID' => 'インドネシア',
'WF' => 'ウォリス・フツナ',
'UG' => 'ウガンダ',
'UA' => 'ウクライナ',
'UZ' => 'ウズベキスタン',
'UY' => 'ウルグアイ',
'EC' => 'エクアドル',
'EG' => 'エジプト',
'EE' => 'エストニア',
'ET' => 'エチオピア',
'ER' => 'エリトリア',
'SV' => 'エルサルバドル',
'OM' => 'オマーン',
'NL' => 'オランダ',
'AN' => 'オランダ領アンティル諸島',
'AU' => 'オーストラリア',
'AT' => 'オーストリア',
'AX' => 'オーランド諸島',
'KZ' => 'カザフスタン',
'QA' => 'カタール',
'CA' => 'カナダ',
'CM' => 'カメルーン',
'KH' => 'カンボジア',
'CV' => 'カーボベルデ',
'GY' => 'ガイアナ',
'GA' => 'ガボン',
'GM' => 'ガンビア',
'GH' => 'ガーナ',
'GG' => 'ガーンジー',
'CY' => 'キプロス',
'CU' => 'キューバ',
'KI' => 'キリバス',
'KG' => 'キルギスタン',
'GN' => 'ギニア',
'GW' => 'ギニアビサウ',
'GR' => 'ギリシャ',
'KW' => 'クウェート',
'CK' => 'クック諸島',
'CX' => 'クリスマス島',
'HR' => 'クロアチア',
'GT' => 'グアテマラ',
'GP' => 'グアドループ',
'GU' => 'グアム',
'GL' => 'グリーンランド',
'GE' => 'グルジア',
'GD' => 'グレナダ',
'KY' => 'ケイマン諸島',
'KE' => 'ケニア',
'CC' => 'ココス (キーリング) 諸島',
'CR' => 'コスタリカ',
'KM' => 'コモロ',
'CO' => 'コロンビア',
'CG' => 'コンゴ共和国 (ブラザビル)',
'CD' => 'コンゴ民主共和国 (キンシャサ)',
'CI' => 'コートジボワール',
'SA' => 'サウジアラビア',
'WS' => 'サモア',
'ST' => 'サントメ・プリンシペ',
'PM' => 'サンピエール島・ミクロン島',
'SM' => 'サンマリノ',
'BL' => 'サン・バルテルミー',
'ZM' => 'ザンビア',
'SL' => 'シエラレオネ',
'SY' => 'シリア',
'SG' => 'シンガポール',
'DJ' => 'ジブチ',
'GI' => 'ジブラルタル',
'JM' => 'ジャマイカ',
'JE' => 'ジャージー',
'ZW' => 'ジンバブエ',
'CH' => 'スイス',
'SE' => 'スウェーデン',
'SJ' => 'スバールバル諸島・ヤンマイエン島',
'ES' => 'スペイン',
'SR' => 'スリナム',
'LK' => 'スリランカ',
'SK' => 'スロバキア',
'SI' => 'スロベニア',
'SZ' => 'スワジランド',
'SD' => 'スーダン',
'SN' => 'セネガル',
'RS' => 'セルビア',
'CS' => 'セルビア・モンテネグロ',
'KN' => 'セントクリストファー・ネイビス',
'VC' => 'セントビンセント・グレナディーン諸島',
'SH' => 'セントヘレナ',
'LC' => 'セントルシア',
'MF' => 'セント・マーチン',
'SC' => 'セーシェル',
'SO' => 'ソマリア',
'SB' => 'ソロモン諸島',
'TH' => 'タイ',
'TJ' => 'タジキスタン',
'TZ' => 'タンザニア',
'TC' => 'タークス諸島・カイコス諸島',
'CZ' => 'チェコ共和国',
'TD' => 'チャド',
'TN' => 'チュニジア',
'CL' => 'チリ',
'TV' => 'ツバル',
'DK' => 'デンマーク',
'TK' => 'トケラウ諸島',
'TT' => 'トリニダード・トバゴ',
'TM' => 'トルクメニスタン',
'TR' => 'トルコ',
'TO' => 'トンガ',
'TG' => 'トーゴ',
'DE' => 'ドイツ',
'DO' => 'ドミニカ共和国',
'DM' => 'ドミニカ国',
'NG' => 'ナイジェリア',
'NR' => 'ナウル',
'NA' => 'ナミビア',
'NU' => 'ニウエ島',
'NI' => 'ニカラグア',
'NE' => 'ニジェール',
'NC' => 'ニューカレドニア',
'NZ' => 'ニュージーランド',
'NP' => 'ネパール',
'NO' => 'ノルウェー',
'NF' => 'ノーフォーク島',
'HT' => 'ハイチ',
'HU' => 'ハンガリー',
'HM' => 'ハード島・マクドナルド諸島',
'VA' => 'バチカン市国',
'VU' => 'バヌアツ',
'BS' => 'バハマ',
'BM' => 'バミューダ',
'BB' => 'バルバドス',
'BD' => 'バングラデシュ',
'BH' => 'バーレーン',
'PK' => 'パキスタン',
'PA' => 'パナマ',
'PG' => 'パプアニューギニア',
'PW' => 'パラオ',
'PY' => 'パラグアイ',
'PS' => 'パレスチナ領土',
'PN' => 'ピトケアン島',
'FJ' => 'フィジー',
'PH' => 'フィリピン',
'FI' => 'フィンランド',
'FO' => 'フェロー諸島',
'FK' => 'フォークランド諸島',
'FR' => 'フランス',
'TF' => 'フランス領極南諸島',
'BR' => 'ブラジル',
'BG' => 'ブルガリア',
'BF' => 'ブルキナファソ',
'BN' => 'ブルネイ',
'BI' => 'ブルンジ',
'BT' => 'ブータン',
'BV' => 'ブーベ島',
'PR' => 'プエルトリコ',
'VN' => 'ベトナム',
'BJ' => 'ベニン',
'VE' => 'ベネズエラ',
'BY' => 'ベラルーシ',
'BZ' => 'ベリーズ',
'BE' => 'ベルギー',
'PE' => 'ペルー',
'HN' => 'ホンジュラス',
'BA' => 'ボスニア・ヘルツェゴビナ',
'BW' => 'ボツワナ',
'BO' => 'ボリビア',
'PT' => 'ポルトガル',
'PL' => 'ポーランド',
'MK' => 'マケドニア',
'MG' => 'マダガスカル',
'YT' => 'マヨット島',
'MW' => 'マラウィ',
'ML' => 'マリ',
'MT' => 'マルタ',
'MQ' => 'マルティニーク島',
'MY' => 'マレーシア',
'IM' => 'マン島',
'MH' => 'マーシャル諸島共和国',
'FM' => 'ミクロネシア',
'MM' => 'ミャンマー',
'MX' => 'メキシコ',
'MZ' => 'モザンビーク',
'MC' => 'モナコ',
'MV' => 'モルジブ',
'MD' => 'モルドバ',
'MA' => 'モロッコ',
'MN' => 'モンゴル',
'ME' => 'モンテネグロ',
'MS' => 'モントセラト島',
'MU' => 'モーリシャス',
'MR' => 'モーリタニア',
'JO' => 'ヨルダン',
'LA' => 'ラオス',
'LV' => 'ラトビア',
'LT' => 'リトアニア',
'LI' => 'リヒテンシュタイン',
'LY' => 'リビア',
'LR' => 'リベリア',
'LU' => 'ルクセンブルグ',
'RW' => 'ルワンダ',
'RO' => 'ルーマニア',
'LS' => 'レソト',
'LB' => 'レバノン',
'RE' => 'レユニオン島',
'RU' => 'ロシア',
'ZZ' => '不明な地域',
'CN' => '中国',
'CF' => '中央アフリカ共和国',
'MO' => '中華人民共和国マカオ特別行政区',
'HK' => '中華人民共和国香港特別行政区',
'GF' => '仏領ギアナ',
'PF' => '仏領ポリネシア',
'MP' => '北マリアナ諸島',
'ZA' => '南アフリカ',
'GS' => '南ジョージア島・南サンドイッチ諸島',
'AQ' => '南極大陸',
'TW' => '台湾',
'KR' => '大韓民国',
'JP' => '日本',
'KP' => '朝鮮民主主義人民共和国',
'TL' => '東ティモール',
'AS' => '米領サモア',
'UM' => '米領太平洋諸島',
'IO' => '英領インド洋植民地',
'EH' => '西サハラ',
'GQ' => '赤道ギニア',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistanas',
'IE' => 'Airija',
'AX' => 'Alandų salos',
'AL' => 'Albanija',
'DZ' => 'Alžyras',
'AS' => 'Amerikos Samoa',
'AD' => 'Andora',
'AI' => 'Angilija',
'AO' => 'Angola',
'AQ' => 'Antarktis',
'AG' => 'Antigva ir Barbuda',
'AR' => 'Argentina',
'AM' => 'Armėnija',
'AW' => 'Aruba',
'AU' => 'Australija',
'AT' => 'Austrija',
'AZ' => 'Azerbaidžanas',
'BS' => 'Bahamos',
'BH' => 'Bahreinas',
'BY' => 'Baltarusija',
'BD' => 'Bangladešas',
'BB' => 'Barbadosas',
'BE' => 'Belgija',
'BZ' => 'Belizas',
'BJ' => 'Beninas',
'BM' => 'Bermuda',
'GW' => 'Bisau Gvinėja',
'BO' => 'Bolivija',
'BA' => 'Bosnija ir Hercegovina',
'BW' => 'Botsvana',
'BV' => 'Bouvet sala',
'BR' => 'Brazilija',
'BN' => 'Brunėjus',
'BG' => 'Bulgarija',
'BF' => 'Burkina Fasas',
'BI' => 'Burundis',
'BT' => 'Butanas',
'CF' => 'Centrinės Afrikos Respublika',
'DK' => 'Danija',
'GB' => 'Didžioji Britanija',
'VG' => 'Didžiosios Britanijos Mergelių salos',
'DM' => 'Dominika',
'DO' => 'Dominikos Respublika',
'CI' => 'Dramblio Kaulo Krantas',
'JE' => 'Džersis',
'DJ' => 'Džibutis',
'EG' => 'Egiptas',
'EC' => 'Ekvadoras',
'ER' => 'Eritrėja',
'EE' => 'Estija',
'ET' => 'Etiopija',
'FK' => 'Falklando salos',
'FO' => 'Farerų salos',
'FJ' => 'Fidžis',
'PH' => 'Filipinai',
'GA' => 'Gabonas',
'GY' => 'Gajana',
'GM' => 'Gambija',
'GH' => 'Gana',
'GI' => 'Gibraltaras',
'GR' => 'Graikija',
'GD' => 'Grenada',
'GL' => 'Grenlandija',
'GE' => 'Gruzija',
'GU' => 'Guamas',
'GG' => 'Guernsis',
'GP' => 'Gvadelupė',
'GT' => 'Gvatemala',
'GN' => 'Gvinėja',
'HT' => 'Haitis',
'HM' => 'Heardo ir McDonaldo Salų Sritis',
'HN' => 'Hondūras',
'IN' => 'Indija',
'IO' => 'Indijos vandenyno britų sritis',
'ID' => 'Indonezija',
'IQ' => 'Irakas',
'IR' => 'Iranas',
'IS' => 'Islandija',
'ES' => 'Ispanija',
'IT' => 'Italija',
'IL' => 'Izraelis',
'JM' => 'Jamaika',
'JP' => 'Japonija',
'YE' => 'Jemenas',
'JO' => 'Jordanija',
'AE' => 'Jungtiniai Arabų Emyratai',
'UM' => 'Jungtinių Valstijų mažosios aplinkinės salos',
'US' => 'Jungtinės Valstijos',
'ME' => 'Juodkalnija',
'KY' => 'Kaimanų salos',
'CX' => 'Kalėdų sala',
'KH' => 'Kambodža',
'CM' => 'Kamerūnas',
'CA' => 'Kanada',
'QA' => 'Kataras',
'KZ' => 'Kazachstanas',
'KE' => 'Kenija',
'CN' => 'Kinija',
'HK' => 'Kinijos S.A.R.Honkongas',
'CY' => 'Kipras',
'KG' => 'Kirgiztanas',
'KI' => 'Kiribatis',
'CC' => 'Kokosų salos',
'CO' => 'Kolumbija',
'KM' => 'Komorai',
'CG' => 'Kongas',
'CD' => 'Kongo Demokratinė Respublika',
'CR' => 'Kosta Rika',
'HR' => 'Kroatija',
'CU' => 'Kuba',
'CK' => 'Kuko salos',
'KW' => 'Kuveitas',
'LA' => 'Laosas',
'LV' => 'Latvija',
'PL' => 'Lenkija',
'LS' => 'Lesotas',
'LB' => 'Libanas',
'LR' => 'Liberija',
'LY' => 'Libija',
'LI' => 'Lichtenšteinas',
'LT' => 'Lietuva',
'LU' => 'Liuksemburgas',
'MO' => 'Macao',
'MG' => 'Madagaskaras',
'MK' => 'Makedonija',
'MY' => 'Malaizija',
'MW' => 'Malavis',
'MV' => 'Maldivai',
'ML' => 'Malis',
'MT' => 'Malta',
'MP' => 'Marianos šiaurinės salos',
'MA' => 'Marokas',
'MQ' => 'Martinika',
'MH' => 'Maršalo Salos',
'MU' => 'Mauricijus',
'MR' => 'Mauritanija',
'YT' => 'Mayotteas',
'IM' => 'Meino sala',
'MX' => 'Meksika',
'VI' => 'Mergelių salos (JAV)',
'MM' => 'Mianmaras',
'FM' => 'Mikronezija',
'MD' => 'Moldova',
'MC' => 'Monakas',
'MN' => 'Mongolija',
'MS' => 'Montserratas',
'MZ' => 'Mozambikas',
'NA' => 'Namibija',
'NC' => 'Naujoji Kaledonija',
'NZ' => 'Naujoji Zelandija',
'NR' => 'Nauru',
'NP' => 'Nepalas',
'ZZ' => 'Nežinoma ar neteisinga sritis',
'NG' => 'Nigerija',
'NE' => 'Nigeris',
'NI' => 'Nikaragva',
'NU' => 'Niue',
'NF' => 'Norfolko sala',
'NO' => 'Norvegija',
'NL' => 'Nyderlandai',
'AN' => 'Olandijos Antilai',
'OM' => 'Omanas',
'PK' => 'Pakistanas',
'PW' => 'Palau',
'PS' => 'Palestinos teritorija',
'PA' => 'Panama',
'PG' => 'Papua Naujoji Gvinėja',
'PY' => 'Paragvajus',
'PE' => 'Peru',
'ZA' => 'Pietų Afrika',
'GS' => 'Pietų Džordžija ir Pietų Sandvičo salos',
'KR' => 'Pietų Korėja',
'PN' => 'Pitkernas',
'PT' => 'Portugalija',
'FR' => 'Prancūzija',
'GF' => 'Prancūzijos Gviana',
'TF' => 'Prancūzijos Pietų sritys',
'PF' => 'Prancūzų Polinezija',
'PR' => 'Puerto Rikas',
'GQ' => 'Pusiaujo Gvinėja',
'RE' => 'Reunionas',
'RW' => 'Ruanda',
'RO' => 'Rumunija',
'RU' => 'Rusijos Federacija',
'TL' => 'Rytų Timoras',
'MF' => 'Saint-Martin',
'SB' => 'Saliamono salos',
'SV' => 'Salvadoras',
'WS' => 'Samoa',
'SM' => 'San Marinas',
'ST' => 'San Tomė ir Principė',
'SA' => 'Saudo Arabija',
'SC' => 'Seišeliai',
'PM' => 'Sen Pjeras ir Mikelonas',
'SN' => 'Senegalas',
'KN' => 'Sent Kitsas ir Nevis',
'RS' => 'Serbija',
'CS' => 'Serbija ir Juodkalnija',
'SL' => 'Siera Leonė',
'SG' => 'Singapūras',
'SY' => 'Sirija',
'SK' => 'Slovakija',
'SI' => 'Slovėnija',
'SO' => 'Somalis',
'SD' => 'Sudanas',
'FI' => 'Suomija',
'SR' => 'Surinamas',
'SJ' => 'Svalbardo ir Jan Majen salos',
'SZ' => 'Svazilendas',
'TJ' => 'Tadžikistanas',
'TH' => 'Tailandas',
'TW' => 'Taivanas',
'TZ' => 'Tanzanija',
'TG' => 'Togas',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidadas ir Tobagas',
'TN' => 'Tunisas',
'TR' => 'Turkija',
'TM' => 'Turkmėnistanas',
'TC' => 'Turkso ir Caicoso salos',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'UY' => 'Urugvajus',
'UZ' => 'Uzbekistanas',
'EH' => 'Vakarų Sachara',
'VU' => 'Vanuatu',
'VA' => 'Vatikanas',
'VE' => 'Venesuela',
'HU' => 'Vengrija',
'VN' => 'Vietnamas',
'DE' => 'Vokietija',
'WF' => 'Wallisas ir Futuna',
'ZM' => 'Zambija',
'ZW' => 'Zimbabvė',
'TD' => 'Čadas',
'CZ' => 'Čekija',
'CL' => 'Čilė',
'KP' => 'Šiaurės Korėja',
'LK' => 'Šri Lanka',
'SE' => 'Švedija',
'CH' => 'Šveicarija',
'VC' => 'Šventasis Vincentas ir Grenadinai',
'BL' => 'Švento Baltramiejaus sala',
'SH' => 'Šventoji Elena',
'LC' => 'Šventoji Liucija',
'CV' => 'Žaliasis Kyšulys',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'UM' => 'ASV mazās aizjūras teritorijas',
'AF' => 'Afganistāna',
'AL' => 'Albānija',
'DZ' => 'Alžīrija',
'US' => 'Amerikas Savienotās Valstis',
'AS' => 'Amerikāņu Samoa',
'VI' => 'Amerikāņu Virdžīnu salas',
'AD' => 'Andora',
'AI' => 'Angilja',
'AO' => 'Angola',
'AQ' => 'Antarktika',
'AG' => 'Antigva un Barbuda',
'AE' => 'Apvienotie Arābu Emirāti',
'AR' => 'Argentīna',
'AM' => 'Armēnija',
'AW' => 'Aruba',
'AT' => 'Austrija',
'TL' => 'Austrumtimora',
'AU' => 'Austrālija',
'AZ' => 'Azerbaidžāna',
'BS' => 'Bahamas',
'BH' => 'Bahreina',
'BY' => 'Baltkrievija',
'BD' => 'Bangladeša',
'BB' => 'Barbadosa',
'BZ' => 'Beliza',
'BJ' => 'Benina',
'BM' => 'Bermudu salas',
'BE' => 'Beļģija',
'BO' => 'Bolīvija',
'BA' => 'Bosnija un Hercegovina',
'BW' => 'Botsvāna',
'BR' => 'Brazīlija',
'IO' => 'Britu Indijas okeāna teritorija',
'VG' => 'Britu Virdžīnu salas',
'BN' => 'Bruneja',
'BG' => 'Bulgārija',
'BF' => 'Burkinafaso',
'BI' => 'Burundi',
'BT' => 'Butāna',
'BV' => 'Buvē sala',
'CF' => 'Centrālāfrikas Republika',
'GS' => 'Dienviddžordžija un Dienvidsendviču salas',
'KR' => 'Dienvidkoreja',
'ZA' => 'Dienvidāfrika',
'DM' => 'Dominika',
'DO' => 'Dominikānas Republika',
'DK' => 'Dānija',
'DJ' => 'Džibutija',
'JE' => 'Džērsija',
'EC' => 'Ekvadora',
'GQ' => 'Ekvatoriālā Gvineja',
'ER' => 'Eritreja',
'ET' => 'Etiopija',
'FO' => 'Farēru salas',
'FJ' => 'Fidži',
'PH' => 'Filipīnas',
'FK' => 'Folklenda salas',
'FR' => 'Francija',
'GF' => 'Franču Gviāna',
'PF' => 'Franču Polinēzija',
'TF' => 'Franču dienvidu teritorijas',
'GA' => 'Gabona',
'GY' => 'Gajāna',
'GM' => 'Gambija',
'GH' => 'Gana',
'GI' => 'Gibraltārs',
'GL' => 'Grenlande',
'GD' => 'Grenāda',
'GR' => 'Grieķija',
'GE' => 'Gruzija',
'GU' => 'Guama',
'GP' => 'Gvadelupa',
'GT' => 'Gvatemala',
'GN' => 'Gvineja',
'GW' => 'Gvineja-Bisava',
'GG' => 'Gērnsija',
'HT' => 'Haiti',
'HN' => 'Hondurasa',
'HR' => 'Horvātija',
'HM' => 'Hērda un Makdonalda salas',
'EE' => 'Igaunija',
'IN' => 'Indija',
'ID' => 'Indonēzija',
'IQ' => 'Irāka',
'IR' => 'Irāna',
'IT' => 'Itālija',
'IL' => 'Izraēla',
'JM' => 'Jamaika',
'JP' => 'Japāna',
'NC' => 'Jaunkaledonija',
'NZ' => 'Jaunzēlande',
'YE' => 'Jemena',
'JO' => 'Jordānija',
'CV' => 'Kaboverde',
'KY' => 'Kaimanu salas',
'KH' => 'Kambodža',
'CM' => 'Kamerūna',
'CA' => 'Kanāda',
'QA' => 'Katara',
'KZ' => 'Kazahstāna',
'KE' => 'Kenija',
'CY' => 'Kipra',
'KG' => 'Kirgīzija',
'KI' => 'Kiribati',
'CC' => 'Kokosu jeb Kīlinga salas',
'CO' => 'Kolumbija',
'KM' => 'Komoru salas',
'CG' => 'Kongo',
'CD' => 'Kongo Demokrātiskā Republika',
'CR' => 'Kostarika',
'CI' => 'Kotdivuāra',
'RU' => 'Krievija',
'CU' => 'Kuba',
'CK' => 'Kuka salas',
'KW' => 'Kuveita',
'LA' => 'Laosa',
'LV' => 'Latvija',
'LS' => 'Lesoto',
'LB' => 'Libāna',
'LR' => 'Libērija',
'GB' => 'Lielbritānija',
'LT' => 'Lietuva',
'LI' => 'Lihtenšteina',
'LU' => 'Luksemburga',
'LY' => 'Lībija',
'MG' => 'Madagaskara',
'YT' => 'Majota',
'MY' => 'Malaizija',
'MV' => 'Maldīvija',
'ML' => 'Mali',
'MT' => 'Malta',
'MW' => 'Malāvija',
'MA' => 'Maroka',
'MQ' => 'Martinika',
'MR' => 'Mauritānija',
'MU' => 'Maurīcija',
'MK' => 'Maķedonija',
'MX' => 'Meksika',
'ME' => 'Melnkalne',
'IM' => 'Mena',
'FM' => 'Mikronēzijas Federatīvās Valstis',
'MM' => 'Mjanma',
'MD' => 'Moldova',
'MC' => 'Monako',
'MN' => 'Mongolija',
'MS' => 'Montserrata',
'MZ' => 'Mozambika',
'MH' => 'Māršala salas',
'NA' => 'Namībija',
'NR' => 'Nauru',
'NP' => 'Nepāla',
'NE' => 'Nigēra',
'NG' => 'Nigērija',
'NI' => 'Nikaragva',
'NU' => 'Niue',
'NF' => 'Norfolkas sala',
'NO' => 'Norvēģija',
'NL' => 'Nīderlande',
'AN' => 'Nīderlandes Antiļas',
'AX' => 'Olandes salas',
'OM' => 'Omāna',
'PK' => 'Pakistāna',
'PW' => 'Palau',
'PS' => 'Palestīniešu pašpārvaldes teritorija',
'PA' => 'Panama',
'PG' => 'Papua-Jaungvineja',
'PY' => 'Paragvaja',
'PE' => 'Peru',
'PN' => 'Pitkērna',
'PL' => 'Polija',
'PT' => 'Portugāle',
'PR' => 'Puertoriko',
'RE' => 'Reinjona',
'EH' => 'Rietumsahāra',
'RW' => 'Ruanda',
'RO' => 'Rumānija',
'SV' => 'Salvadora',
'WS' => 'Samoa',
'SM' => 'Sanmarīno',
'ST' => 'Santome un Prinsipi',
'SA' => 'Saūda Arābija',
'SC' => 'Seišeļu salas',
'BL' => 'Senbartelmī',
'SN' => 'Senegāla',
'MF' => 'Senmartēna',
'PM' => 'Senpjēra un Mikelona',
'KN' => 'Sentkitsa un Nevisa',
'LC' => 'Sentlūsija',
'VC' => 'Sentvinsenta un Grenadīnas',
'RS' => 'Serbija',
'CS' => 'Serbija un Melnkalne',
'SG' => 'Singapūra',
'SL' => 'Sjerraleone',
'SK' => 'Slovākija',
'SI' => 'Slovēnija',
'FI' => 'Somija',
'SO' => 'Somālija',
'ES' => 'Spānija',
'SD' => 'Sudāna',
'SR' => 'Surinama',
'SH' => 'Sv. Helēnas sala',
'SJ' => 'Svalbāra un Jana Majena sala',
'SZ' => 'Svazilenda',
'SY' => 'Sīrija',
'TJ' => 'Tadžikistāna',
'TW' => 'Taivāna',
'TH' => 'Taizeme',
'TZ' => 'Tanzānija',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidāda un Tobāgo',
'TN' => 'Tunisija',
'TR' => 'Turcija',
'TM' => 'Turkmenistāna',
'TV' => 'Tuvalu',
'TC' => 'Tērksas un Kaikosas salas',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'HU' => 'Ungārija',
'UY' => 'Urugvaja',
'UZ' => 'Uzbekistāna',
'VU' => 'Vanuatu',
'VA' => 'Vatikāns',
'VE' => 'Venecuēla',
'VN' => 'Vjetnama',
'WF' => 'Volisa un Futuna',
'DE' => 'Vācija',
'ZM' => 'Zambija',
'KP' => 'Ziemeļkoreja',
'MP' => 'Ziemeļu Marianas salas',
'CX' => 'Ziemsvētku sala',
'ZW' => 'Zimbabve',
'SE' => 'Zviedrija',
'SB' => 'Zālamana salas',
'ZZ' => 'nezināms vai nederīgs reģions',
'TD' => 'Čada',
'CZ' => 'Čehija',
'CL' => 'Čīle',
'EG' => 'Ēģipte',
'IE' => 'Īrija',
'IS' => 'Īslande',
'CN' => 'Ķīna',
'HK' => 'Ķīnas īpašās pārvaldes apgabals Honkonga',
'MO' => 'Ķīnas īpašās pārvaldes apgabals Makao',
'LK' => 'Šrilanka',
'CH' => 'Šveice',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AX' => 'Alandeilanden',
'AL' => 'Albanië',
'DZ' => 'Algerije',
'AS' => 'Amerikaans Samoa',
'VI' => 'Amerikaanse Maagdeneilanden',
'UM' => 'Amerikaanse kleinere afgelegen eilanden',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
'AG' => 'Antigua en Barbuda',
'AR' => 'Argentinië',
'AM' => 'Armenië',
'AW' => 'Aruba',
'AU' => 'Australië',
'AZ' => 'Azerbeidzjan',
'BS' => 'Bahamas',
'BH' => 'Bahrein',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'België',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnië en Herzegovina',
'BW' => 'Botswana',
'BV' => 'Bouveteiland',
'BR' => 'Brazilië',
'IO' => 'Britse Gebieden in de Indische Oceaan',
'VG' => 'Britse Maagdeneilanden',
'BN' => 'Brunei',
'BG' => 'Bulgarije',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambodja',
'CA' => 'Canada',
'KY' => 'Caymaneilanden',
'CF' => 'Centraal-Afrikaanse Republiek',
'CL' => 'Chili',
'CN' => 'China',
'CX' => 'Christmaseiland',
'CC' => 'Cocoseilanden',
'CO' => 'Colombia',
'KM' => 'Comoren',
'CG' => 'Congo',
'CD' => 'Congo-Kinshasa',
'CK' => 'Cookeilanden',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'CY' => 'Cyprus',
'DK' => 'Denemarken',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominicaanse Republiek',
'DE' => 'Duitsland',
'EC' => 'Ecuador',
'EG' => 'Egypte',
'SV' => 'El Salvador',
'GQ' => 'Equatoriaal-Guinea',
'ER' => 'Eritrea',
'EE' => 'Estland',
'ET' => 'Ethiopië',
'FO' => 'Faeröer',
'FK' => 'Falklandeilanden',
'FJ' => 'Fiji',
'PH' => 'Filipijnen',
'FI' => 'Finland',
'FR' => 'Frankrijk',
'GF' => 'Frans-Guyana',
'PF' => 'Frans-Polynesië',
'TF' => 'Franse Gebieden in de zuidelijke Indische Oceaan',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgië',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GR' => 'Griekenland',
'GL' => 'Groenland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinee',
'GW' => 'Guinee-Bissau',
'GY' => 'Guyana',
'HT' => 'Haïti',
'HM' => 'Heard- en McDonaldeilanden',
'HN' => 'Honduras',
'HU' => 'Hongarije',
'HK' => 'Hongkong SAR van China',
'IS' => 'IJsland',
'IE' => 'Ierland',
'IN' => 'India',
'ID' => 'Indonesië',
'IQ' => 'Irak',
'IR' => 'Iran',
'IM' => 'Isle of Man',
'IL' => 'Israël',
'IT' => 'Italië',
'CI' => 'Ivoorkust',
'JM' => 'Jamaica',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordanië',
'CV' => 'Kaapverdië',
'CM' => 'Kameroen',
'KZ' => 'Kazachstan',
'KE' => 'Kenia',
'KG' => 'Kirgizië',
'KI' => 'Kiribati',
'KW' => 'Koeweit',
'HR' => 'Kroatië',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Letland',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libië',
'LI' => 'Liechtenstein',
'LT' => 'Litouwen',
'LU' => 'Luxemburg',
'MO' => 'Macao SAR van China',
'MK' => 'Macedonië',
'MG' => 'Madagaskar',
'MW' => 'Malawi',
'MV' => 'Maldiven',
'MY' => 'Maleisië',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marokko',
'MH' => 'Marshalleilanden',
'MQ' => 'Martinique',
'MR' => 'Mauritanië',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexico',
'FM' => 'Micronesië',
'MD' => 'Moldavië',
'MC' => 'Monaco',
'MN' => 'Mongolië',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mozambique',
'MM' => 'Myanmar',
'NA' => 'Namibië',
'NR' => 'Nauru',
'NL' => 'Nederland',
'AN' => 'Nederlandse Antillen',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NC' => 'Nieuw-Caledonië',
'NZ' => 'Nieuw-Zeeland',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'KP' => 'Noord-Korea',
'MP' => 'Noordelijke Marianeneilanden',
'NO' => 'Noorwegen',
'NF' => 'Norfolkeiland',
'UG' => 'Oeganda',
'UA' => 'Oekraïne',
'UZ' => 'Oezbekistan',
'OM' => 'Oman',
'ZZ' => 'Onbekend of onjuist gebied',
'TL' => 'Oost-Timor',
'AT' => 'Oostenrijk',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestijns Gebied',
'PA' => 'Panama',
'PG' => 'Papoea-Nieuw-Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'RO' => 'Roemenië',
'RU' => 'Rusland',
'RW' => 'Rwanda',
'RE' => 'Réunion',
'BL' => 'Saint Barthélemy',
'KN' => 'Saint Kitts en Nevis',
'LC' => 'Saint Lucia',
'PM' => 'Saint Pierre en Miquelon',
'VC' => 'Saint Vincent en de Grenadines',
'SB' => 'Salomonseilanden',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tomé en Principe',
'SA' => 'Saoedi-Arabië',
'SN' => 'Senegal',
'RS' => 'Servië',
'CS' => 'Servië en Montenegro',
'SC' => 'Seychellen',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SH' => 'Sint-Helena',
'MF' => 'Sint-Maarten',
'SI' => 'Slovenië',
'SK' => 'Slowakije',
'SD' => 'Soedan',
'SO' => 'Somalië',
'ES' => 'Spanje',
'LK' => 'Sri Lanka',
'SR' => 'Suriname',
'SJ' => 'Svalbard en Jan Mayen',
'SZ' => 'Swaziland',
'SY' => 'Syrië',
'TJ' => 'Tadzjikistan',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TH' => 'Thailand',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad en Tobago',
'TD' => 'Tsjaad',
'CZ' => 'Tsjechië',
'TN' => 'Tunesië',
'TR' => 'Turkije',
'TM' => 'Turkmenistan',
'TC' => 'Turks- en Caicoseilanden',
'TV' => 'Tuvalu',
'UY' => 'Uruguay',
'VU' => 'Vanuatu',
'VA' => 'Vaticaanstad',
'VE' => 'Venezuela',
'GB' => 'Verenigd Koninkrijk',
'AE' => 'Verenigde Arabische Emiraten',
'US' => 'Verenigde Staten',
'VN' => 'Vietnam',
'WF' => 'Wallis en Futuna',
'EH' => 'Westelijke Sahara',
'BY' => 'Wit-Rusland',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'ZA' => 'Zuid-Afrika',
'GS' => 'Zuid-Georgië en Zuidelijke Sandwicheilanden',
'KR' => 'Zuid-Korea',
'SE' => 'Zweden',
'CH' => 'Zwitserland',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AL' => 'Albania',
'DZ' => 'Algerie',
'AS' => 'Amerikansk Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua og Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AZ' => 'Aserbajdsjan',
'AU' => 'Australia',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgia',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnia-Hercegovina',
'BW' => 'Botswana',
'BV' => 'Bouvetøya',
'BR' => 'Brasil',
'IO' => 'Britiske territorier i Indiahavet',
'BN' => 'Brunei Darussalam',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'CA' => 'Canada',
'KY' => 'Caymanøyene',
'CL' => 'Chile',
'CX' => 'Christmasøya',
'CO' => 'Colombia',
'CK' => 'Cookøyene',
'CR' => 'Costa Rica',
'CU' => 'Cuba',
'DK' => 'Danmark',
'VI' => 'De amerikanske jomfruøyene',
'VG' => 'De britiske jomfruøyene',
'AE' => 'De forente arabiske emirater',
'TF' => 'De franske sørterritorier',
'AN' => 'De nederlandske antiller',
'DO' => 'Den dominikanske republikk',
'CF' => 'Den sentralafrikanske republikk',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'EC' => 'Ecuador',
'EG' => 'Egypt',
'GQ' => 'Ekvatorial-Guinea',
'SV' => 'El Salvador',
'CI' => 'Elfenbenskysten',
'ER' => 'Eritrea',
'EE' => 'Estland',
'ET' => 'Etiopia',
'FK' => 'Falklandsøyene',
'FJ' => 'Fiji',
'PH' => 'Filippinene',
'FI' => 'Finland',
'FR' => 'Frankrike',
'GF' => 'Fransk Guyana',
'PF' => 'Fransk Polynesia',
'FO' => 'Færøyene',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GL' => 'Grønland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heardøya og McDonaldøyene',
'GR' => 'Hellas',
'HN' => 'Honduras',
'HK' => 'Hongkong S.A.R. Kina',
'BY' => 'Hviterussland',
'IN' => 'India',
'ID' => 'Indonesia',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irland',
'IS' => 'Island',
'IL' => 'Israel',
'IT' => 'Italia',
'JM' => 'Jamaica',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordan',
'KH' => 'Kambodsja',
'CM' => 'Kamerun',
'CV' => 'Kapp Verde',
'KZ' => 'Kasakhstan',
'KE' => 'Kenya',
'CN' => 'Kina',
'KG' => 'Kirgisistan',
'KI' => 'Kiribati',
'CC' => 'Kokosøyene',
'KM' => 'Komorene',
'CG' => 'Kongo-Brazzaville',
'CD' => 'Kongo-Kinshasa',
'HR' => 'Kroatia',
'KW' => 'Kuwait',
'CY' => 'Kypros',
'LA' => 'Laos',
'LV' => 'Latvia',
'LS' => 'Lesotho',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libya',
'LI' => 'Liechtenstein',
'LT' => 'Litauen',
'LU' => 'Luxembourg',
'MO' => 'Macao S.A.R. Kina',
'MG' => 'Madagaskar',
'MK' => 'Makedonia',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldivene',
'ML' => 'Mali',
'MT' => 'Malta',
'IM' => 'Man',
'MA' => 'Marokko',
'MH' => 'Marshalløyene',
'MQ' => 'Martinique',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexico',
'FM' => 'Mikronesiaføderasjonen',
'MD' => 'Moldova',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Mosambik',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NL' => 'Nederland',
'NP' => 'Nepal',
'NZ' => 'New Zealand',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'KP' => 'Nord-Korea',
'MP' => 'Nord-Marianene',
'NF' => 'Norfolkøya',
'NO' => 'Norge',
'NC' => 'Ny-Caledonia',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinsk territorium',
'PA' => 'Panama',
'PG' => 'Papua Ny-Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'RE' => 'Reunion',
'RO' => 'Romania',
'RU' => 'Russland',
'RW' => 'Rwanda',
'BL' => 'Saint Barthélemy',
'MF' => 'Saint Martin',
'SB' => 'Salomonøyene',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudi-Arabia',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia og Montenegro',
'SC' => 'Seychellene',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakia',
'SI' => 'Slovenia',
'SO' => 'Somalia',
'ES' => 'Spania',
'LK' => 'Sri Lanka',
'SH' => 'St. Helena',
'KN' => 'St. Kitts og Nevis',
'LC' => 'St. Lucia',
'PM' => 'St. Pierre og Miquelon',
'VC' => 'St. Vincent og Grenadinene',
'GB' => 'Storbritannia',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard og Jan Mayen',
'CH' => 'Sveits',
'SE' => 'Sverige',
'SZ' => 'Swaziland',
'SY' => 'Syria',
'ST' => 'São Tomé og Príncipe',
'ZA' => 'Sør-Afrika',
'GS' => 'Sør-Georgia og de sørlige Sandwich-øyene',
'KR' => 'Sør-Korea',
'TJ' => 'Tadsjikistan',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TH' => 'Thailand',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad og Tobago',
'TD' => 'Tsjad',
'CZ' => 'Tsjekkia',
'TN' => 'Tunisia',
'TM' => 'Turkmenistan',
'TC' => 'Turks- og Caicosøyene',
'TV' => 'Tuvalu',
'TR' => 'Tyrkia',
'DE' => 'Tyskland',
'US' => 'USA',
'UM' => 'USAs ytre småøyer',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'HU' => 'Ungarn',
'UY' => 'Uruguay',
'UZ' => 'Usbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikanstaten',
'VE' => 'Venezuela',
'EH' => 'Vest-Sahara',
'VN' => 'Vietnam',
'WF' => 'Wallis og Futuna',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'ZZ' => 'ukjent eller ugyldig område',
'AX' => 'Åland',
'TL' => 'Øst-Timor',
'AT' => 'Østerrike',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AL' => 'Albania',
'DZ' => 'Algieria',
'AD' => 'Andora',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktyka',
'AG' => 'Antigua i Barbuda',
'AN' => 'Antyle Holenderskie',
'SA' => 'Arabia Saudyjska',
'AR' => 'Argentyna',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbejdżan',
'BS' => 'Bahamy',
'BH' => 'Bahrajn',
'BD' => 'Bangladesz',
'BB' => 'Barbados',
'BE' => 'Belgia',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermudy',
'BT' => 'Bhutan',
'BY' => 'Białoruś',
'MM' => 'Birma',
'BO' => 'Boliwia',
'BW' => 'Botswana',
'BA' => 'Bośnia i Hercegowina',
'BR' => 'Brazylia',
'BN' => 'Brunei Darussalam',
'VG' => 'Brytyjskie Wyspy Dziewicze',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BG' => 'Bułgaria',
'CL' => 'Chile',
'CN' => 'Chiny',
'HR' => 'Chorwacja',
'CY' => 'Cypr',
'TD' => 'Czad',
'ME' => 'Czarnogóra',
'CZ' => 'Czechy',
'UM' => 'Dalekie Wyspy Mniejsze Stanów Zjednoczonych',
'DK' => 'Dania',
'CD' => 'Demokratyczna Republika Konga',
'DM' => 'Dominika',
'DJ' => 'Dżibuti',
'EG' => 'Egipt',
'EC' => 'Ekwador',
'ER' => 'Erytrea',
'EE' => 'Estonia',
'ET' => 'Etiopia',
'FK' => 'Falklandy',
'FM' => 'Federalne Stany Mikronezji',
'FJ' => 'Fidżi',
'PH' => 'Filipiny',
'FI' => 'Finlandia',
'FR' => 'Francja',
'TF' => 'Francuskie Terytoria Południowe',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GS' => 'Georgia Południowa i Sandwich Południowy',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GR' => 'Grecja',
'GD' => 'Grenada',
'GL' => 'Grenlandia',
'GE' => 'Gruzja',
'GU' => 'Guam',
'GY' => 'Gujana',
'GF' => 'Gujana Francuska',
'GP' => 'Gwadelupa',
'GT' => 'Gwatemala',
'GN' => 'Gwinea',
'GW' => 'Gwinea Bissau',
'GQ' => 'Gwinea Równikowa',
'HT' => 'Haiti',
'ES' => 'Hiszpania',
'NL' => 'Holandia',
'HN' => 'Honduras',
'HK' => 'Hongkong, Specjalny Region Administracyjny Chin',
'IN' => 'Indie',
'ID' => 'Indonezja',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irlandia',
'IS' => 'Islandia',
'IL' => 'Izrael',
'JM' => 'Jamajka',
'JP' => 'Japonia',
'YE' => 'Jemen',
'JO' => 'Jordania',
'KY' => 'Kajmany',
'KH' => 'Kambodża',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'QA' => 'Katar',
'KZ' => 'Kazachstan',
'KE' => 'Kenia',
'KG' => 'Kirgistan',
'KI' => 'Kiribati',
'CO' => 'Kolumbia',
'KM' => 'Komory',
'CG' => 'Kongo',
'KR' => 'Korea Południowa',
'KP' => 'Korea Północna',
'CR' => 'Kostaryka',
'CU' => 'Kuba',
'KW' => 'Kuwejt',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LB' => 'Liban',
'LR' => 'Liberia',
'LY' => 'Libia',
'LI' => 'Liechtenstein',
'LT' => 'Litwa',
'LU' => 'Luksemburg',
'MK' => 'Macedonia',
'MG' => 'Madagaskar',
'YT' => 'Majotta',
'MO' => 'Makau, Specjalny Region Administracyjny Chin',
'MW' => 'Malawi',
'MV' => 'Malediwy',
'MY' => 'Malezja',
'ML' => 'Mali',
'MT' => 'Malta',
'MP' => 'Mariany Północne',
'MA' => 'Maroko',
'MQ' => 'Martynika',
'MR' => 'Mauretania',
'MU' => 'Mauritius',
'MX' => 'Meksyk',
'MC' => 'Monako',
'MN' => 'Mongolia',
'MS' => 'Montserrat',
'MZ' => 'Mozambik',
'MD' => 'Mołdawia',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'DE' => 'Niemcy',
'ZZ' => 'Nieznany lub nieprawidłowy region',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NI' => 'Nikaragua',
'NU' => 'Niue',
'NF' => 'Norfolk',
'NO' => 'Norwegia',
'NC' => 'Nowa Kaledonia',
'NZ' => 'Nowa Zelandia',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PA' => 'Panama',
'PG' => 'Papua Nowa Gwinea',
'PY' => 'Paragwaj',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PF' => 'Polinezja Francuska',
'PL' => 'Polska',
'PR' => 'Portoryko',
'PT' => 'Portugalia',
'DO' => 'Republika Dominikańska',
'ZA' => 'Republika Południowej Afryki',
'CV' => 'Republika Zielonego Przylądka',
'CF' => 'Republika Środkowoafrykańska',
'RE' => 'Reunion',
'RU' => 'Rosja',
'RO' => 'Rumunia',
'RW' => 'Rwanda',
'EH' => 'Sahara Zachodnia',
'BL' => 'Saint Barthélemy',
'KN' => 'Saint Kitts i Nevis',
'LC' => 'Saint Lucia',
'VC' => 'Saint Vincent i Grenadyny',
'PM' => 'Saint-Pierre i Miquelon',
'SV' => 'Salwador',
'WS' => 'Samoa',
'AS' => 'Samoa Amerykańskie',
'SM' => 'San Marino',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia i Czarnogóra',
'SC' => 'Seszele',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'MF' => 'Sint Maarten',
'SO' => 'Somalia',
'LK' => 'Sri Lanka',
'US' => 'Stany Zjednoczone',
'SZ' => 'Suazi',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard i Jan Mayen',
'SY' => 'Syria',
'CH' => 'Szwajcaria',
'SE' => 'Szwecja',
'SK' => 'Słowacja',
'SI' => 'Słowenia',
'TJ' => 'Tadżykistan',
'TH' => 'Tajlandia',
'TW' => 'Tajwan',
'TZ' => 'Tanzania',
'PS' => 'Terytoria Palestyńskie',
'IO' => 'Terytorium Brytyjskie Oceanu Indyjskiego',
'TL' => 'Timor Wschodni',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trynidad i Tobago',
'TN' => 'Tunezja',
'TR' => 'Turcja',
'TM' => 'Turkmenistan',
'TC' => 'Turks i Caicos',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'UY' => 'Urugwaj',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'WF' => 'Wallis i Futuna',
'VA' => 'Watykan',
'VE' => 'Wenezuela',
'GB' => 'Wielka Brytania',
'VN' => 'Wietnam',
'CI' => 'Wybrzeże Kości Słoniowej',
'BV' => 'Wyspa Bouveta',
'CX' => 'Wyspa Bożego Narodzenia',
'GG' => 'Wyspa Guernsey',
'JE' => 'Wyspa Jersey',
'IM' => 'Wyspa Man',
'SH' => 'Wyspa Świętej Heleny',
'AX' => 'Wyspy Alandzkie',
'CK' => 'Wyspy Cooka',
'VI' => 'Wyspy Dziewicze Stanów Zjednoczonych',
'HM' => 'Wyspy Heard i McDonalda',
'CC' => 'Wyspy Kokosowe',
'MH' => 'Wyspy Marshalla',
'FO' => 'Wyspy Owcze',
'SB' => 'Wyspy Salomona',
'ST' => 'Wyspy Świętego Tomasza i Książęca',
'HU' => 'Węgry',
'IT' => 'Włochy',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'AE' => 'Zjednoczone Emiraty Arabskie',
'LV' => 'Łotwa',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afeganistão',
'AL' => 'Albânia',
'DE' => 'Alemanha',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AN' => 'Antilhas Holandesas',
'AQ' => 'Antártida',
'AG' => 'Antígua e Barbuda',
'AR' => 'Argentina',
'DZ' => 'Argélia',
'AM' => 'Armênia',
'AW' => 'Aruba',
'SA' => 'Arábia Saudita',
'AU' => 'Austrália',
'AZ' => 'Azerbaijão',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BY' => 'Belarus',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermudas',
'BO' => 'Bolívia',
'BW' => 'Botsuana',
'BR' => 'Brasil',
'BN' => 'Brunei',
'BG' => 'Bulgária',
'BF' => 'Burquina Faso',
'BI' => 'Burundi',
'BT' => 'Butão',
'BE' => 'Bélgica',
'BA' => 'Bósnia-Herzegovina',
'CV' => 'Cabo Verde',
'KH' => 'Camboja',
'CA' => 'Canadá',
'KZ' => 'Casaquistão',
'QA' => 'Catar',
'TD' => 'Chade',
'CL' => 'Chile',
'CN' => 'China',
'CY' => 'Chipre',
'SG' => 'Cingapura',
'CO' => 'Colômbia',
'KM' => 'Comores',
'CG' => 'Congo',
'CD' => 'Congo-Kinshasa',
'KP' => 'Coreia do Norte',
'KR' => 'Coreia do Sul',
'CR' => 'Costa Rica',
'CI' => 'Costa do Marfim',
'HR' => 'Croácia',
'CU' => 'Cuba',
'DK' => 'Dinamarca',
'DJ' => 'Djibuti',
'DM' => 'Dominica',
'EG' => 'Egito',
'SV' => 'El Salvador',
'AE' => 'Emirados Árabes Unidos',
'EC' => 'Equador',
'ER' => 'Eritreia',
'SK' => 'Eslováquia',
'SI' => 'Eslovênia',
'ES' => 'Espanha',
'US' => 'Estados Unidos',
'EE' => 'Estônia',
'ET' => 'Etiópia',
'FJ' => 'Fiji',
'PH' => 'Filipinas',
'FI' => 'Finlândia',
'FR' => 'França',
'GA' => 'Gabão',
'GH' => 'Gana',
'GE' => 'Geórgia',
'GS' => 'Geórgia do Sul e Ilhas Sandwich do Sul',
'GI' => 'Gibraltar',
'GD' => 'Granada',
'GL' => 'Groênlandia',
'GR' => 'Grécia',
'GP' => 'Guadalupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GY' => 'Guiana',
'GF' => 'Guiana Francesa',
'GN' => 'Guiné',
'GW' => 'Guiné Bissau',
'GQ' => 'Guiné Equatorial',
'GM' => 'Gâmbia',
'HT' => 'Haiti',
'NL' => 'Holanda',
'HN' => 'Honduras',
'HK' => 'Hong Kong, Região Admin. Especial da China',
'HU' => 'Hungria',
'BV' => 'Ilha Bouvet',
'HM' => 'Ilha Heard e Ilhas McDonald',
'NF' => 'Ilha Norfolk',
'IM' => 'Ilha de Man',
'AX' => 'Ilhas Aland',
'KY' => 'Ilhas Caiman',
'CC' => 'Ilhas Coco',
'CK' => 'Ilhas Cook',
'FO' => 'Ilhas Faroe',
'FK' => 'Ilhas Malvinas',
'MP' => 'Ilhas Marianas do Norte',
'MH' => 'Ilhas Marshall',
'UM' => 'Ilhas Menores Distantes dos Estados Unidos',
'CX' => 'Ilhas Natal',
'SB' => 'Ilhas Salomão',
'TC' => 'Ilhas Turks e Caicos',
'VG' => 'Ilhas Virgens Britânicas',
'VI' => 'Ilhas Virgens dos EUA',
'ID' => 'Indonésia',
'IQ' => 'Iraque',
'IE' => 'Irlanda',
'IR' => 'Irã',
'IS' => 'Islândia',
'IL' => 'Israel',
'IT' => 'Itália',
'YE' => 'Iêmen',
'JM' => 'Jamaica',
'JP' => 'Japão',
'JE' => 'Jersey',
'JO' => 'Jordânia',
'KW' => 'Kuwait',
'LS' => 'Lesoto',
'LV' => 'Letônia',
'LR' => 'Libéria',
'LI' => 'Liechtenstein',
'LT' => 'Lituânia',
'LU' => 'Luxemburgo',
'LB' => 'Líbano',
'LY' => 'Líbia',
'MO' => 'Macau, Região Admin. Especial da China',
'MK' => 'Macedônia',
'MG' => 'Madagascar',
'MW' => 'Malawi',
'MV' => 'Maldivas',
'ML' => 'Mali',
'MT' => 'Malta',
'MY' => 'Malásia',
'MA' => 'Marrocos',
'MQ' => 'Martinica',
'MR' => 'Mauritânia',
'MU' => 'Maurício',
'YT' => 'Mayotte',
'MM' => 'Mianmar',
'FM' => 'Micronésia',
'MD' => 'Moldávia',
'MN' => 'Mongólia',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Moçambique',
'MX' => 'México',
'MC' => 'Mônaco',
'NA' => 'Namíbia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicarágua',
'NG' => 'Nigéria',
'NU' => 'Niue',
'NO' => 'Noruega',
'NC' => 'Nova Caledônia',
'NZ' => 'Nova Zelândia',
'NE' => 'Níger',
'OM' => 'Omã',
'PW' => 'Palau',
'PA' => 'Panamá',
'PG' => 'Papua-Nova Guiné',
'PK' => 'Paquistão',
'PY' => 'Paraguai',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PF' => 'Polinésia Francesa',
'PL' => 'Polônia',
'PR' => 'Porto Rico',
'PT' => 'Portugal',
'KG' => 'Quirguistão',
'KI' => 'Quiribati',
'KE' => 'Quênia',
'ZZ' => 'Região desconhecida ou inválida',
'GB' => 'Reino Unido',
'CF' => 'República Centro-Africana',
'DO' => 'República Dominicana',
'LA' => 'República Popular Democrática do Laos',
'CZ' => 'República Tcheca',
'CM' => 'República dos Camarões',
'RE' => 'Reunião',
'RO' => 'Romênia',
'RW' => 'Ruanda',
'RU' => 'Rússia',
'EH' => 'Saara Ocidental',
'PM' => 'Saint Pierre e Miquelon',
'WS' => 'Samoa',
'AS' => 'Samoa Americana',
'SM' => 'San Marino',
'SH' => 'Santa Helena',
'LC' => 'Santa Lúcia',
'SN' => 'Senegal',
'SL' => 'Serra Leoa',
'SC' => 'Seychelles',
'SO' => 'Somália',
'LK' => 'Sri Lanka',
'SZ' => 'Suazilândia',
'SD' => 'Sudão',
'SR' => 'Suriname',
'SE' => 'Suécia',
'CH' => 'Suíça',
'SJ' => 'Svalbard e Jan Mayen',
'BL' => 'São Bartolomeu',
'KN' => 'São Cristovão e Nevis',
'MF' => 'São Martinho',
'ST' => 'São Tomé e Príncipe',
'VC' => 'São Vicente e Granadinas',
'RS' => 'Sérvia',
'CS' => 'Sérvia e Montenegro',
'SY' => 'Síria',
'TJ' => 'Tadjiquistão',
'TH' => 'Tailândia',
'TW' => 'Taiwan',
'TZ' => 'Tanzânia',
'IO' => 'Território Britânico do Oceano Índico',
'PS' => 'Território da Palestina',
'TF' => 'Territórios Franceses do Sul',
'TL' => 'Timor Leste',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad e Tobago',
'TN' => 'Tunísia',
'TM' => 'Turcomenistão',
'TR' => 'Turquia',
'TV' => 'Tuvalu',
'UA' => 'Ucrânia',
'UG' => 'Uganda',
'UY' => 'Uruguai',
'UZ' => 'Uzbequistão',
'VU' => 'Vanuatu',
'VA' => 'Vaticano',
'VE' => 'Venezuela',
'VN' => 'Vietnã',
'WF' => 'Wallis e Futuna',
'ZW' => 'Zimbábue',
'ZM' => 'Zâmbia',
'ZA' => 'África do Sul',
'AT' => 'Áustria',
'IN' => 'Índia',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afeganistão',
'AL' => 'Albânia',
'DE' => 'Alemanha',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilha',
'AN' => 'Antilhas Holandesas',
'AQ' => 'Antárctica',
'AG' => 'Antígua e Barbuda',
'AR' => 'Argentina',
'DZ' => 'Argélia',
'AM' => 'Arménia',
'AW' => 'Aruba',
'SA' => 'Arábia Saudita',
'AU' => 'Austrália',
'AZ' => 'Azerbeijão',
'BS' => 'Baamas',
'BH' => 'Bahrein',
'BD' => 'Bangladeche',
'BB' => 'Barbados',
'BZ' => 'Belize',
'BJ' => 'Benim',
'BM' => 'Bermudas',
'BY' => 'Bielorrússia',
'BO' => 'Bolívia',
'BW' => 'Botswana',
'BR' => 'Brasil',
'BN' => 'Brunei',
'BG' => 'Bulgária',
'BF' => 'Burkina-Faso',
'BI' => 'Burundi',
'BT' => 'Butão',
'BE' => 'Bélgica',
'BA' => 'Bósnia-Herzegovina',
'CV' => 'Cabo Verde',
'KH' => 'Camboja',
'CA' => 'Canadá',
'KZ' => 'Cazaquistão',
'TD' => 'Chade',
'CL' => 'Chile',
'CN' => 'China',
'CY' => 'Chipre',
'CO' => 'Colômbia',
'KM' => 'Comores',
'CG' => 'Congo-Brazzaville',
'KP' => 'Coreia do Norte',
'KR' => 'Coreia do Sul',
'CR' => 'Costa Rica',
'CI' => 'Costa do Marfim',
'HR' => 'Croácia',
'KW' => 'Cuaite',
'CU' => 'Cuba',
'DK' => 'Dinamarca',
'DJ' => 'Djibuti',
'DM' => 'Dominica',
'EG' => 'Egipto',
'SV' => 'El Salvador',
'AE' => 'Emiratos Árabes Unidos',
'EC' => 'Equador',
'ER' => 'Eritreia',
'SK' => 'Eslováquia',
'SI' => 'Eslovénia',
'ES' => 'Espanha',
'FM' => 'Estados Federados da Micronésia',
'US' => 'Estados Unidos',
'EE' => 'Estónia',
'SJ' => 'Esvalbarda e Jan Mayen',
'ET' => 'Etiópia',
'FJ' => 'Fiji',
'PH' => 'Filipinas',
'FI' => 'Finlândia',
'FR' => 'França',
'GA' => 'Gabão',
'GH' => 'Gana',
'GE' => 'Geórgia',
'GS' => 'Geórgia do Sul e Ilhas Sandwich do Sul',
'GI' => 'Gibraltar',
'GD' => 'Granada',
'GL' => 'Gronelândia',
'GR' => 'Grécia',
'GP' => 'Guadalupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GY' => 'Guiana',
'GF' => 'Guiana Francesa',
'GN' => 'Guiné',
'GQ' => 'Guiné Equatorial',
'GW' => 'Guiné-Bissau',
'GM' => 'Gâmbia',
'HT' => 'Haiti',
'HN' => 'Honduras',
'HK' => 'Hong Kong - Região Administrativa Especial da China',
'HU' => 'Hungria',
'BV' => 'Ilha Bouvet',
'HM' => 'Ilha Heard e Ilhas McDonald',
'NF' => 'Ilha Norfolque',
'IM' => 'Ilha de Man',
'CX' => 'Ilha do Natal',
'AX' => 'Ilhas Alanda',
'KY' => 'Ilhas Caimão',
'CC' => 'Ilhas Cocos',
'CK' => 'Ilhas Cook',
'FK' => 'Ilhas Falkland ou Malvinas',
'FO' => 'Ilhas Faroé',
'MP' => 'Ilhas Mariana do Norte',
'MH' => 'Ilhas Marshall',
'UM' => 'Ilhas Minor Outlying (E.U.A)',
'SB' => 'Ilhas Salomão',
'TC' => 'Ilhas Turcas e Caicos',
'VG' => 'Ilhas Virgens Britânicas',
'VI' => 'Ilhas Virgin E.U.A.',
'ID' => 'Indonésia',
'IQ' => 'Iraque',
'IE' => 'Irlanda',
'IR' => 'Irão',
'IS' => 'Islândia',
'IL' => 'Israel',
'IT' => 'Itália',
'YE' => 'Iémen',
'JM' => 'Jamaica',
'JP' => 'Japão',
'JE' => 'Jersey',
'JO' => 'Jordânia',
'LA' => 'Laos, República Popular Democrática do',
'LS' => 'Lesoto',
'LV' => 'Letónia',
'LR' => 'Libéria',
'LI' => 'Liechtenstein',
'LT' => 'Lituânia',
'LU' => 'Luxemburgo',
'LB' => 'Líbano',
'LY' => 'Líbia',
'MO' => 'Macau - Região Administrativa Especial da China',
'MK' => 'Macedónia, República da',
'MG' => 'Madagáscar',
'MW' => 'Malaui',
'MV' => 'Maldivas',
'ML' => 'Mali',
'MT' => 'Malta',
'MY' => 'Malásia',
'MA' => 'Marrocos',
'MQ' => 'Martinica',
'MR' => 'Mauritânia',
'MU' => 'Maurícias',
'YT' => 'Mayotte',
'MM' => 'Mianmar',
'MD' => 'Moldávia, República da',
'MN' => 'Mongólia',
'MS' => 'Monserrate',
'ME' => 'Montenegro',
'MZ' => 'Moçambique',
'MX' => 'México',
'MC' => 'Mónaco',
'NA' => 'Namíbia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicarágua',
'NG' => 'Nigéria',
'NU' => 'Niue',
'NO' => 'Noruega',
'NC' => 'Nova Caledónia',
'NZ' => 'Nova Zelândia',
'NE' => 'Níger',
'OM' => 'Omã',
'PW' => 'Palau',
'PA' => 'Panamá',
'PG' => 'Papua Nova Guiné',
'PK' => 'Paquistão',
'PY' => 'Paraguai',
'NL' => 'Países Baixos',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PF' => 'Polinésia Francesa',
'PL' => 'Polónia',
'PR' => 'Porto Rico',
'PT' => 'Portugal',
'QA' => 'Qatar',
'KG' => 'Quirguizistão',
'KI' => 'Quiribati',
'KE' => 'Quénia',
'ZZ' => 'Região desconhecida ou inválida',
'GB' => 'Reino Unido',
'CF' => 'República Centro-Africana',
'CZ' => 'República Checa',
'CD' => 'República Democrática do Congo',
'DO' => 'República Dominicana',
'CM' => 'República dos Camarões',
'RE' => 'Reunião',
'RO' => 'Roménia',
'RW' => 'Ruanda',
'RU' => 'Rússia',
'KN' => 'Saint Kitts e Nevis',
'PM' => 'Saint Pierre e Miquelon',
'WS' => 'Samoa',
'AS' => 'Samoa Americana',
'SH' => 'Santa Helena',
'LC' => 'Santa Lúcia',
'EH' => 'Sara Ocidental',
'SC' => 'Seicheles',
'SN' => 'Senegal',
'SL' => 'Serra Leoa',
'SG' => 'Singapura',
'SO' => 'Somália',
'LK' => 'Sri Lanka',
'SZ' => 'Suazilândia',
'SD' => 'Sudão',
'SR' => 'Suriname',
'SE' => 'Suécia',
'CH' => 'Suíça',
'BL' => 'São Bartolomeu',
'SM' => 'São Marino',
'MF' => 'São Martinho',
'ST' => 'São Tomé e Príncipe',
'VC' => 'São Vicente e Granadinas',
'RS' => 'Sérvia',
'CS' => 'Sérvia e Montenegro',
'SY' => 'Síria',
'TH' => 'Tailândia',
'TW' => 'Taiwan',
'TJ' => 'Tajiquistão',
'TZ' => 'Tanzânia',
'IO' => 'Território Britânico do Oceano Índico',
'PS' => 'Território Palestiniano',
'TF' => 'Territórios Franceses do Sul',
'TL' => 'Timor Leste',
'TG' => 'Togo',
'TO' => 'Tonga',
'TK' => 'Toquelau',
'TT' => 'Trindade e Tobago',
'TN' => 'Tunísia',
'TM' => 'Turquemenistão',
'TR' => 'Turquia',
'TV' => 'Tuvalu',
'UA' => 'Ucrânia',
'UG' => 'Uganda',
'UY' => 'Uruguai',
'UZ' => 'Usbequistão',
'VU' => 'Vanuatu',
'VA' => 'Vaticano',
'VE' => 'Venezuela',
'VN' => 'Vietname',
'WF' => 'Wallis e Futuna',
'ZW' => 'Zimbabwe',
'ZM' => 'Zâmbia',
'ZA' => 'África do Sul',
'AT' => 'Áustria',
'IN' => 'Índia',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'ZA' => 'Africa de Sud',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
'AG' => 'Antigua și Barbuda',
'AN' => 'Antilele Olandeze',
'SA' => 'Arabia Saudită',
'AR' => 'Argentina',
'AM' => 'Armenia',
'AW' => 'Aruba',
'AU' => 'Australia',
'AT' => 'Austria',
'AZ' => 'Azerbaidjan',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgia',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BY' => 'Bielorusia',
'BO' => 'Bolivia',
'BA' => 'Bosnia și Herțegovina',
'BW' => 'Botswana',
'BR' => 'Brazilia',
'BN' => 'Brunei',
'BG' => 'Bulgaria',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KH' => 'Cambodgia',
'CM' => 'Camerun',
'CA' => 'Canada',
'CV' => 'Capul Verde',
'CL' => 'Chile',
'CN' => 'China',
'TD' => 'Ciad',
'CY' => 'Cipru',
'CI' => 'Coasta de Fildeș',
'CO' => 'Columbia',
'KM' => 'Comore',
'CG' => 'Congo',
'KP' => 'Coreea de Nord',
'KR' => 'Coreea de Sud',
'CR' => 'Costa Rica',
'HR' => 'Croația',
'CU' => 'Cuba',
'DK' => 'Danemarca',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'EC' => 'Ecuador',
'EG' => 'Egipt',
'SV' => 'El Salvador',
'CH' => 'Eleveția',
'AE' => 'Emiratele Arabe Unite',
'ER' => 'Eritreea',
'EE' => 'Estonia',
'ET' => 'Etiopia',
'FJ' => 'Fiji',
'PH' => 'Filipine',
'FI' => 'Finlanda',
'FR' => 'Franța',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgia',
'DE' => 'Germania',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GR' => 'Grecia',
'GD' => 'Grenada',
'GL' => 'Groenlanda',
'GP' => 'Guadelupa',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guineea',
'GQ' => 'Guineea Ecuatorială',
'GW' => 'Guineea-Bissau',
'GY' => 'Guyana',
'GF' => 'Guyana Franceză',
'HT' => 'Haiti',
'HN' => 'Honduras',
'IN' => 'India',
'ID' => 'Indonezia',
'BV' => 'Insula Bouvet',
'CX' => 'Insula Christmas',
'HM' => 'Insula Heard și Insulele McDonald',
'IM' => 'Insula Man',
'AX' => 'Insulele Aland',
'KY' => 'Insulele Cayman',
'CC' => 'Insulele Cocos',
'CK' => 'Insulele Cook',
'FK' => 'Insulele Falkland',
'FO' => 'Insulele Feroe',
'GS' => 'Insulele Georgia de Sud și Sandwich de Sud',
'MP' => 'Insulele Mariane de Nord',
'MH' => 'Insulele Marshall',
'NF' => 'Insulele Norfolk',
'SB' => 'Insulele Solomon',
'TC' => 'Insulele Turks și Caicos',
'VG' => 'Insulele Virgine Britanice',
'VI' => 'Insulele Virgine S.U.A.',
'UM' => 'Insulele mici îndepărtate ale Statelor Unite ale Americii',
'JO' => 'Iordania',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irlanda',
'IS' => 'Islanda',
'IL' => 'Israel',
'IT' => 'Italia',
'JM' => 'Jamaica',
'JP' => 'Japonia',
'JE' => 'Jersey',
'KZ' => 'Kazahstan',
'KE' => 'Kenya',
'KI' => 'Kiribati',
'KW' => 'Kuweit',
'KG' => 'Kârgâzstan',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Letonia',
'LB' => 'Liban',
'LR' => 'Liberia',
'LY' => 'Libia',
'LI' => 'Liechtenstein',
'LT' => 'Lituania',
'LU' => 'Luxemburg',
'MK' => 'Macedonia',
'MG' => 'Madagascar',
'MY' => 'Malaezia',
'MW' => 'Malawi',
'MV' => 'Maldive',
'ML' => 'Mali',
'MT' => 'Malta',
'GB' => 'Marea Britanie',
'MA' => 'Maroc',
'MQ' => 'Martinica',
'MR' => 'Mauritania',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexic',
'FM' => 'Micronezia',
'MC' => 'Monaco',
'MN' => 'Mongolia',
'MS' => 'Montserrat',
'MZ' => 'Mozambic',
'ME' => 'Muntenegru',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'NO' => 'Norvegia',
'NC' => 'Noua Caledonie',
'NZ' => 'Noua Zeelandă',
'NL' => 'Olanda',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PA' => 'Panama',
'PG' => 'Papua Noua Guinee',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PF' => 'Polinezia Franceză',
'PL' => 'Polonia',
'PR' => 'Porto Rico',
'PT' => 'Portugalia',
'QA' => 'Qatar',
'HK' => 'R.A.S. Hong Kong a Chinei',
'MO' => 'R.A.S. Macao a Chinei',
'ZZ' => 'Regiune necunoscută sau nevalidă',
'CZ' => 'Republica Cehă',
'CF' => 'Republica Centrafricană',
'CD' => 'Republica Democrată Congo',
'DO' => 'Republica Dominicană',
'MD' => 'Republica Moldova',
'RE' => 'Reunion',
'RO' => 'România',
'RU' => 'Rusia',
'RW' => 'Rwanda',
'EH' => 'Sahara Occidentală',
'WS' => 'Samoa',
'AS' => 'Samoa Americană',
'SM' => 'San Marino',
'ST' => 'Sao Tome și Principe',
'SN' => 'Senegal',
'RS' => 'Serbia',
'CS' => 'Serbia și Muntenegru',
'SC' => 'Seychelles',
'SH' => 'Sfânta Elena',
'LC' => 'Sfânta Lucia',
'BL' => 'Sfântul Bartolomeu',
'KN' => 'Sfântul Kitts și Nevis',
'MF' => 'Sfântul Martin',
'PM' => 'Sfântul Pierre și Miquelon',
'VC' => 'Sfântul Vincent și Grenadine',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SY' => 'Siria',
'SK' => 'Slovacia',
'SI' => 'Slovenia',
'SO' => 'Somalia',
'ES' => 'Spania',
'LK' => 'Sri Lanka',
'US' => 'Statele Unite ale Americii',
'SD' => 'Sudan',
'SE' => 'Suedia',
'SR' => 'Surinam',
'SJ' => 'Svalbard și Jan Mayen',
'SZ' => 'Swaziland',
'TJ' => 'Tadjikistan',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TF' => 'Teritoriile Australe și Antarctice Franceze',
'IO' => 'Teritoriul Britanic din Oceanul Indian',
'PS' => 'Teritoriul Palestinian',
'TH' => 'Thailanda',
'TL' => 'Timorul de Est',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad-Tobago',
'TN' => 'Tunisia',
'TR' => 'Turcia',
'TM' => 'Turkmenistan',
'TV' => 'Tuvalu',
'UA' => 'Ucraina',
'UG' => 'Uganda',
'HU' => 'Ungaria',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatican',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WF' => 'Wallis și Futuna',
'YE' => 'Yemen',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AU' => 'Австралия',
'AT' => 'Австрия',
'AZ' => 'Азербайджан',
'AX' => 'Аландские острова',
'AL' => 'Албания',
'DZ' => 'Алжир',
'VI' => 'Американские Виргинские острова',
'AS' => 'Американское Самоа',
'AO' => 'Ангола',
'AI' => 'Ангуилла',
'AD' => 'Андорра',
'AQ' => 'Антарктика',
'AG' => 'Антигуа и Барбуда',
'AR' => 'Аргентина',
'AM' => 'Армения',
'AW' => 'Аруба',
'AF' => 'Афганистан',
'BS' => 'Багамские острова',
'BD' => 'Бангладеш',
'BB' => 'Барбадос',
'BH' => 'Бахрейн',
'BY' => 'Беларусь',
'BZ' => 'Белиз',
'BE' => 'Бельгия',
'BJ' => 'Бенин',
'BM' => 'Бермудские Острова',
'BG' => 'Болгария',
'BO' => 'Боливия',
'BA' => 'Босния и Герцеговина',
'BW' => 'Ботсвана',
'BR' => 'Бразилия',
'IO' => 'Британская территория в Индийском океане',
'VG' => 'Британские Виргинские Острова',
'BN' => 'Бруней Даруссалам',
'BF' => 'Буркина Фасо',
'BI' => 'Бурунди',
'BT' => 'Бутан',
'VU' => 'Вануату',
'VA' => 'Ватикан',
'GB' => 'Великобритания',
'HU' => 'Венгрия',
'VE' => 'Венесуэла',
'UM' => 'Внешние малые острова (США)',
'TL' => 'Восточный Тимор',
'VN' => 'Вьетнам',
'GA' => 'Габон',
'HT' => 'Гаити',
'GY' => 'Гайана',
'GM' => 'Гамбия',
'GH' => 'Гана',
'GP' => 'Гваделупа',
'GT' => 'Гватемала',
'GN' => 'Гвинея',
'GW' => 'Гвинея-Биссау',
'DE' => 'Германия',
'GG' => 'Гернси',
'GI' => 'Гибралтар',
'HN' => 'Гондурас',
'HK' => 'Гонконг, Особый Административный Район Китая',
'GD' => 'Гренада',
'GL' => 'Гренландия',
'GR' => 'Греция',
'GE' => 'Грузия',
'GU' => 'Гуам',
'DK' => 'Дания',
'CD' => 'Демократическая Республика Конго',
'JE' => 'Джерси',
'DJ' => 'Джибути',
'DO' => 'Доминиканская Республика',
'EG' => 'Египет',
'ZM' => 'Замбия',
'EH' => 'Западная Сахара',
'ZW' => 'Зимбабве',
'IL' => 'Израиль',
'IN' => 'Индия',
'ID' => 'Индонезия',
'JO' => 'Иордания',
'IQ' => 'Ирак',
'IR' => 'Иран',
'IE' => 'Ирландия',
'IS' => 'Исландия',
'ES' => 'Испания',
'IT' => 'Италия',
'YE' => 'Йемен',
'KZ' => 'Казахстан',
'KY' => 'Каймановы острова',
'KH' => 'Камбоджа',
'CM' => 'Камерун',
'CA' => 'Канада',
'QA' => 'Катар',
'KE' => 'Кения',
'CY' => 'Кипр',
'KI' => 'Кирибати',
'CN' => 'Китай',
'CC' => 'Кокосовые острова',
'CO' => 'Колумбия',
'KM' => 'Коморские Острова',
'CG' => 'Конго',
'KP' => 'Корейская Народно-Демократическая Республика',
'CR' => 'Коста-Рика',
'CI' => 'Кот д’Ивуар',
'CU' => 'Куба',
'KW' => 'Кувейт',
'KG' => 'Кыргызстан',
'LA' => 'Лаос',
'LV' => 'Латвия',
'LS' => 'Лесото',
'LR' => 'Либерия',
'LB' => 'Ливан',
'LY' => 'Ливия',
'LT' => 'Литва',
'LI' => 'Лихтенштейн',
'LU' => 'Люксембург',
'MU' => 'Маврикий',
'MR' => 'Мавритания',
'MG' => 'Мадагаскар',
'YT' => 'Майотта',
'MO' => 'Макао (особый административный район КНР)',
'MK' => 'Македония',
'MW' => 'Малави',
'MY' => 'Малайзия',
'ML' => 'Мали',
'MV' => 'Мальдивы',
'MT' => 'Мальта',
'MA' => 'Марокко',
'MQ' => 'Мартиник',
'MH' => 'Маршалловы Острова',
'MX' => 'Мексика',
'MZ' => 'Мозамбик',
'MD' => 'Молдова',
'MC' => 'Монако',
'MN' => 'Монголия',
'MS' => 'Монсеррат',
'MM' => 'Мьянма',
'NA' => 'Намибия',
'NR' => 'Науру',
'ZZ' => 'Неизвестный или недействительный регион',
'NP' => 'Непал',
'NE' => 'Нигер',
'NG' => 'Нигерия',
'AN' => 'Нидерландские Антильские острова',
'NL' => 'Нидерланды',
'NI' => 'Никарагуа',
'NU' => 'Ниуе',
'NZ' => 'Новая Зеландия',
'NC' => 'Новая Каледония',
'NO' => 'Норвегия',
'AE' => 'Объединенные Арабские Эмираты',
'OM' => 'Оман',
'BV' => 'Остров Буве',
'DM' => 'Остров Доминика',
'IM' => 'Остров Мэн',
'NF' => 'Остров Норфолк',
'CX' => 'Остров Рождества',
'BL' => 'Остров Святого Бартоломея',
'MF' => 'Остров Святого Мартина',
'SH' => 'Остров Святой Елены',
'CV' => 'Острова Зеленого Мыса',
'CK' => 'Острова Кука',
'TC' => 'Острова Тёркс и Кайкос',
'HM' => 'Острова Херд и Макдональд',
'PK' => 'Пакистан',
'PW' => 'Палау',
'PS' => 'Палестинская автономия',
'PA' => 'Панама',
'PG' => 'Папуа-Новая Гвинея',
'PY' => 'Парагвай',
'PE' => 'Перу',
'PN' => 'Питкерн',
'PL' => 'Польша',
'PT' => 'Португалия',
'PR' => 'Пуэрто-Рико',
'KR' => 'Республика Корея',
'RE' => 'Реюньон',
'RU' => 'Россия',
'RW' => 'Руанда',
'RO' => 'Румыния',
'US' => 'США',
'SV' => 'Сальвадор',
'WS' => 'Самоа',
'SM' => 'Сан-Марино',
'ST' => 'Сан-Томе и Принсипи',
'SA' => 'Саудовская Аравия',
'SZ' => 'Свазиленд',
'SJ' => 'Свальбард и Ян-Майен',
'MP' => 'Северные Марианские Острова',
'SC' => 'Сейшельские Острова',
'PM' => 'Сен-Пьер и Микелон',
'SN' => 'Сенегал',
'VC' => 'Сент-Винсент и Гренадины',
'KN' => 'Сент-Киттс и Невис',
'LC' => 'Сент-Люсия',
'RS' => 'Сербия',
'CS' => 'Сербия и Черногория',
'SG' => 'Сингапур',
'SY' => 'Сирийская Арабская Республика',
'SK' => 'Словакия',
'SI' => 'Словения',
'SB' => 'Соломоновы Острова',
'SO' => 'Сомали',
'SD' => 'Судан',
'SR' => 'Суринам',
'SL' => 'Сьерра-Леоне',
'TJ' => 'Таджикистан',
'TH' => 'Таиланд',
'TW' => 'Тайвань',
'TZ' => 'Танзания',
'TG' => 'Того',
'TK' => 'Токелау',
'TO' => 'Тонга',
'TT' => 'Тринидад и Тобаго',
'TV' => 'Тувалу',
'TN' => 'Тунис',
'TM' => 'Туркменистан',
'TR' => 'Турция',
'UG' => 'Уганда',
'UZ' => 'Узбекистан',
'UA' => 'Украина',
'WF' => 'Уоллис и Футуна',
'UY' => 'Уругвай',
'FO' => 'Фарерские острова',
'FM' => 'Федеративные Штаты Микронезии',
'FJ' => 'Фиджи',
'PH' => 'Филиппины',
'FI' => 'Финляндия',
'FK' => 'Фолклендские острова',
'FR' => 'Франция',
'GF' => 'Французская Гвиана',
'PF' => 'Французская Полинезия',
'TF' => 'Французские Южные Территории',
'HR' => 'Хорватия',
'CF' => 'Центрально-Африканская Республика',
'TD' => 'Чад',
'ME' => 'Черногория',
'CZ' => 'Чешская республика',
'CL' => 'Чили',
'CH' => 'Швейцария',
'SE' => 'Швеция',
'LK' => 'Шри-Ланка',
'EC' => 'Эквадор',
'GQ' => 'Экваториальная Гвинея',
'ER' => 'Эритрея',
'EE' => 'Эстония',
'ET' => 'Эфиопия',
'ZA' => 'Южная Африка',
'GS' => 'Южная Джорджия и Южные Сандвичевы Острова',
'JM' => 'Ямайка',
'JP' => 'Япония',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AX' => 'Alandské ostrovy',
'AL' => 'Albánsko',
'DZ' => 'Alžírsko',
'AS' => 'Americká Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarctica',
'AG' => 'Antigua a Barbados',
'AR' => 'Argentína',
'AM' => 'Arménsko',
'AW' => 'Aruba',
'AU' => 'Austrália',
'AZ' => 'Azerbajdžan',
'BS' => 'Bahamy',
'BH' => 'Bahrajn',
'BD' => 'Bangladéš',
'BB' => 'Barbados',
'BE' => 'Belgicko',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermudy',
'BY' => 'Bielorusko',
'BO' => 'Bolívia',
'BA' => 'Bosna a Hercegovina',
'BW' => 'Botswana',
'BV' => 'Bouvetov ostrov',
'BR' => 'Brazília',
'VG' => 'Britské panenské ostrovy',
'IO' => 'Britské územie v Indickom oceáne',
'BN' => 'Brunej',
'BG' => 'Bulharsko',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BT' => 'Bután',
'HR' => 'Chorvátsko',
'CK' => 'Cookove ostrovy',
'CY' => 'Cyprus',
'DM' => 'Dominika',
'DO' => 'Dominikánska republika',
'DK' => 'Dánsko',
'DJ' => 'Džibuti',
'EG' => 'Egypt',
'EC' => 'Ekvádor',
'ER' => 'Eritrea',
'EE' => 'Estónsko',
'ET' => 'Etiópia',
'FO' => 'Faerské ostrovy',
'FK' => 'Falklandské ostrovy',
'FJ' => 'Fidži',
'PH' => 'Filipíny',
'GF' => 'Francúzska Guayana',
'PF' => 'Francúzska Polynézia',
'TF' => 'Francúzske južné územia',
'FR' => 'Francúzsko',
'FI' => 'Fínsko',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GH' => 'Ghana',
'GI' => 'Gibraltár',
'GD' => 'Grenada',
'GE' => 'Gruzínsko',
'GR' => 'Grécko',
'GL' => 'Grónsko',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GY' => 'Guayana',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'HT' => 'Haiti',
'HM' => 'Heardove ostrovy a McDonaldove ostrovy',
'NL' => 'Holandsko',
'AN' => 'Holandské Antily',
'HN' => 'Honduras',
'HK' => 'Hong Kong S.A.R. Číny',
'IN' => 'India',
'ID' => 'Indonézia',
'IQ' => 'Irak',
'IR' => 'Irán',
'IS' => 'Island',
'IL' => 'Izrael',
'JM' => 'Jamajka',
'JP' => 'Japonsko',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordánsko',
'ZA' => 'Južná Afrika',
'GS' => 'Južná Georgia a Južné Sandwichove ostrovy',
'KY' => 'Kajmanské ostrovy',
'KH' => 'Kambodža',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kapverdy',
'QA' => 'Katar',
'KZ' => 'Kazachstan',
'KE' => 'Keňa',
'KG' => 'Kirgizsko',
'KI' => 'Kiribati',
'CC' => 'Kokosové ostrovy',
'CO' => 'Kolumbia',
'KM' => 'Komory',
'CG' => 'Kongo',
'CD' => 'Konžská demokratická republika',
'CR' => 'Kostarika',
'CU' => 'Kuba',
'KW' => 'Kuvajt',
'KR' => 'Kórejská republika',
'KP' => 'Kórejská ľudovodemokratická republika',
'LA' => 'Laoská ľudovodemokratická republika',
'LS' => 'Lesotho',
'LB' => 'Libanon',
'LR' => 'Libéria',
'LI' => 'Lichtenštajnsko',
'LT' => 'Litva',
'LV' => 'Lotyšsko',
'LU' => 'Luxembursko',
'LY' => 'Lýbijská arabská džamahírija',
'MK' => 'Macedónsko',
'MG' => 'Madagaskar',
'MO' => 'Makao S.A.R. Číny',
'MY' => 'Malajzia',
'MW' => 'Malawi',
'MV' => 'Maldivy',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Maroko',
'MH' => 'Marshallove ostrovy',
'MQ' => 'Martinik',
'MR' => 'Mauritánia',
'MU' => 'Maurícius',
'YT' => 'Mayotte',
'HU' => 'Maďarsko',
'UM' => 'Menšie odľahlé ostrovy USA',
'MX' => 'Mexiko',
'FM' => 'Mikronézia',
'MM' => 'Mjanmarsko',
'MD' => 'Moldavsko',
'MC' => 'Monako',
'MN' => 'Mongolsko',
'MS' => 'Montserrat',
'MZ' => 'Mozambik',
'NA' => 'Namíbia',
'NR' => 'Nauru',
'DE' => 'Nemecko',
'NP' => 'Nepál',
'ZZ' => 'Neznámy alebo neplatný región',
'NE' => 'Niger',
'NG' => 'Nigéria',
'NI' => 'Nikaragua',
'NU' => 'Niue',
'NF' => 'Norfolkov ostrov',
'NC' => 'Nová Kaledónia',
'NZ' => 'Nový Zéland',
'NO' => 'Nórsko',
'OM' => 'Omán',
'IM' => 'Ostrov Man',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestínske územie',
'PA' => 'Panama',
'VI' => 'Panenské ostrovy - USA',
'PG' => 'Papua Nová Guinea',
'PY' => 'Paraguaj',
'PE' => 'Peru',
'PN' => 'Pitcairnove ostrovy',
'CI' => 'Pobrežie Slonoviny',
'PR' => 'Portoriko',
'PT' => 'Portugalsko',
'PL' => 'Poľsko',
'AT' => 'Rakúsko',
'RE' => 'Reunion',
'GQ' => 'Rovníková Guinea',
'RO' => 'Rumunsko',
'RU' => 'Ruská federácia',
'RW' => 'Rwanda',
'KN' => 'Saint Kitts a Nevis',
'PM' => 'Saint Pierre a Miquelon',
'SV' => 'Salvador',
'WS' => 'Samoa',
'SM' => 'San Maríno',
'SA' => 'Saudská Arábia',
'SN' => 'Senegal',
'MP' => 'Severné Mariány',
'SC' => 'Seychelské ostrovy',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SK' => 'Slovenská republika',
'SI' => 'Slovinsko',
'SO' => 'Somálsko',
'AE' => 'Spojené arabské emiráty',
'GB' => 'Spojené kráľovstvo',
'US' => 'Spojené štáty',
'RS' => 'Srbsko',
'CS' => 'Srbsko a Čierna Hora',
'LK' => 'Srí Lanka',
'CF' => 'Stredoafrická republika',
'SD' => 'Sudán',
'SR' => 'Surinam',
'SZ' => 'Svazijsko',
'SH' => 'Svätá Helena',
'LC' => 'Svätá Lucia',
'BL' => 'Svätý Bartolomej',
'MF' => 'Svätý Martin',
'ST' => 'Svätý Tomáš a Princove ostrovy',
'VC' => 'Svätý Vincent a Grenadíny',
'SY' => 'Sýrska arabská republika',
'TJ' => 'Tadžikistan',
'TW' => 'Tajwan',
'IT' => 'Taliansko',
'TZ' => 'Tanzánia',
'TH' => 'Thajsko',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad a Tobago',
'TN' => 'Tunisko',
'TR' => 'Turecko',
'TM' => 'Turkménsko',
'TC' => 'Turks a Caicos',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukrajina',
'UY' => 'Uruguaj',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikán',
'VE' => 'Venezuela',
'CX' => 'Vianočný ostrov',
'VN' => 'Vietnam',
'TL' => 'Východný Timor',
'WF' => 'Wallis a Futuna',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'EH' => 'Západná Sahara',
'IE' => 'Írsko',
'TD' => 'Čad',
'CZ' => 'Česká republika',
'ME' => 'Čierna Hora',
'CL' => 'Čile',
'CN' => 'Čína',
'SB' => 'Šalamúnove ostrovy',
'ES' => 'Španielsko',
'SJ' => 'Špicbergy a Jan Mayen',
'CH' => 'Švajčiarsko',
'SE' => 'Švédsko',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afganistan',
'AX' => 'Alandsko otočje',
'AL' => 'Albanija',
'DZ' => 'Alžirija',
'AS' => 'Ameriška Samoa',
'VI' => 'Ameriški Deviški otoki',
'AD' => 'Andora',
'AO' => 'Angola',
'AI' => 'Angvila',
'AQ' => 'Antarktika',
'AG' => 'Antigva in Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenija',
'AW' => 'Aruba',
'AU' => 'Avstralija',
'AT' => 'Avstrija',
'AZ' => 'Azerbajdžan',
'BS' => 'Bahami',
'BH' => 'Bahrajn',
'BD' => 'Bangladeš',
'BB' => 'Barbados',
'BE' => 'Belgija',
'BZ' => 'Belize',
'BY' => 'Belorusija',
'BJ' => 'Benin',
'BM' => 'Bermudi',
'BW' => 'Bocvana',
'BG' => 'Bolgarija',
'BO' => 'Bolivija',
'BA' => 'Bosna in Hercegovina',
'BV' => 'Bouvetov otok',
'CX' => 'Božični otok',
'BR' => 'Brazilija',
'VG' => 'Britanski Deviški otoki',
'IO' => 'Britansko ozemlje v Indijskem oceanu',
'BN' => 'Brunej',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'BT' => 'Butan',
'CF' => 'Centralnoafriška republika',
'CY' => 'Ciper',
'CK' => 'Cookovo otočje',
'DK' => 'Danska',
'CD' => 'Demokratična republika Kongo',
'DM' => 'Dominika',
'DO' => 'Dominikanska republika',
'UM' => 'Druga ameriška ozemlja v Tihem oceanu',
'DJ' => 'Džibuti',
'EG' => 'Egipt',
'EC' => 'Ekvador',
'GQ' => 'Ekvatorialna Gvineja',
'ER' => 'Eritreja',
'EE' => 'Estonija',
'ET' => 'Etiopija',
'FK' => 'Falklandski otoki',
'FO' => 'Ferski otoki',
'FJ' => 'Fidži',
'PH' => 'Filipini',
'FI' => 'Finska',
'FR' => 'Francija',
'GF' => 'Francoska Gvajana',
'PF' => 'Francoska Polinezija',
'TF' => 'Francosko južno ozemlje',
'GA' => 'Gabon',
'GM' => 'Gambija',
'GH' => 'Gana',
'GI' => 'Gibraltar',
'GD' => 'Grenada',
'GL' => 'Grenlandija',
'GE' => 'Gruzija',
'GR' => 'Grčija',
'GU' => 'Guam',
'GG' => 'Guernsey',
'GP' => 'Gvadalupe',
'GY' => 'Gvajana',
'GT' => 'Gvatemala',
'GN' => 'Gvineja',
'GW' => 'Gvineja Bissau',
'HT' => 'Haiti',
'HN' => 'Honduras',
'HR' => 'Hrvaška',
'IN' => 'Indija',
'ID' => 'Indonezija',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irska',
'IS' => 'Islandija',
'IT' => 'Italija',
'IL' => 'Izrael',
'JM' => 'Jamajka',
'JP' => 'Japonska',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordanija',
'GS' => 'Južna Georgia in Južni Sandwichevi otoki',
'KR' => 'Južna Koreja',
'ZA' => 'Južnoafriška republika',
'KY' => 'Kajmanski otoki',
'KH' => 'Kambodža',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'QA' => 'Katar',
'KZ' => 'Kazahstan',
'KE' => 'Kenija',
'KG' => 'Kirgizistan',
'KI' => 'Kiribati',
'CN' => 'Kitajska',
'CC' => 'Kokosovi otoki',
'CO' => 'Kolumbija',
'KM' => 'Komori',
'CG' => 'Kongo',
'CR' => 'Kostarika',
'CU' => 'Kuba',
'KW' => 'Kuvajt',
'LA' => 'Laos',
'LV' => 'Latvija',
'LS' => 'Lesoto',
'LB' => 'Libanon',
'LR' => 'Liberija',
'LY' => 'Libija',
'LI' => 'Lihtenštajn',
'LT' => 'Litva',
'LU' => 'Luksemburg',
'MG' => 'Madagaskar',
'HU' => 'Madžarska',
'MK' => 'Makedonija',
'MW' => 'Malavi',
'MV' => 'Maldivi',
'MY' => 'Malezija',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Maroko',
'MH' => 'Marshallovi otoki',
'MQ' => 'Martinik',
'MU' => 'Mauritius',
'MR' => 'Mavretanija',
'YT' => 'Mayotte',
'MX' => 'Mehika',
'FM' => 'Mikronezija',
'MM' => 'Mjanmar',
'MD' => 'Moldavija',
'MC' => 'Monako',
'MN' => 'Mongolija',
'MS' => 'Montserrat',
'MZ' => 'Mozambik',
'NA' => 'Namibija',
'NR' => 'Nauru',
'DE' => 'Nemčija',
'NP' => 'Nepal',
'ZZ' => 'Neznano ali neveljavno območje',
'NE' => 'Niger',
'NG' => 'Nigerija',
'NI' => 'Nikaragva',
'NU' => 'Niue',
'NL' => 'Nizozemska',
'AN' => 'Nizozemski Antili',
'NF' => 'Norfolški otok',
'NO' => 'Norveška',
'NC' => 'Nova Kaledonija',
'NZ' => 'Nova Zelandija',
'OM' => 'Oman',
'HM' => 'Otok Heard in otočje McDonald',
'IM' => 'Otok Man',
'TC' => 'Otočji Turks in Caicos',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinsko ozemlje',
'PA' => 'Panama',
'PG' => 'Papua Nova Gvineja',
'PY' => 'Paragvaj',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Poljska',
'PR' => 'Portoriko',
'PT' => 'Portugalska',
'HK' => 'Posebno administrativno območje LR Kitajske Hong Kong',
'MO' => 'Posebno administrativno območje LR Kitajske Macao',
'RE' => 'Reunion',
'RO' => 'Romunija',
'RW' => 'Ruanda',
'RU' => 'Rusija',
'BL' => 'Saint Barthelemy',
'KN' => 'Saint Kitts in Nevis',
'LC' => 'Saint Lucia',
'MF' => 'Saint Martin',
'PM' => 'Saint Pierre in Miquelon',
'VC' => 'Saint Vincent in Grenadine',
'SB' => 'Salomonovi otoki',
'SV' => 'Salvador',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tome in Principe',
'SA' => 'Saudova Arabija',
'SC' => 'Sejšeli',
'SN' => 'Senegal',
'KP' => 'Severna Koreja',
'MP' => 'Severni Marianski otoki',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SY' => 'Sirija',
'CI' => 'Slonokoščena obala',
'SK' => 'Slovaška',
'SI' => 'Slovenija',
'SO' => 'Somalija',
'RS' => 'Srbija',
'CS' => 'Srbija in Črna gora',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard in Jan Mayen',
'SZ' => 'Svazi',
'SH' => 'Sveta Helena',
'TJ' => 'Tadžikistan',
'TH' => 'Tajska',
'TW' => 'Tajvan',
'TZ' => 'Tanzanija',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad in Tobago',
'TN' => 'Tunizija',
'TM' => 'Turkmenistan',
'TR' => 'Turčija',
'TV' => 'Tuvalu',
'UG' => 'Uganda',
'UA' => 'Ukrajina',
'UY' => 'Urugvaj',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikan',
'GB' => 'Velika Britanija',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'TL' => 'Vzhodni Timor',
'WF' => 'Wallis in Futuna',
'EH' => 'Zahodna Sahara',
'ZM' => 'Zambija',
'US' => 'Združene države Amerike',
'AE' => 'Združeni arabski emirati',
'CV' => 'Zelenortski otoki',
'ZW' => 'Zimbabve',
'TD' => 'Čad',
'CZ' => 'Češka',
'CL' => 'Čile',
'ME' => 'Črna gora',
'ES' => 'Španija',
'LK' => 'Šrilanka',
'SE' => 'Švedska',
'CH' => 'Švica',
);

View File

@ -0,0 +1,159 @@
<?php return array(
'AF' => 'Afganistan',
'ZA' => 'Afrika e Jugut',
'DZ' => 'Algjeri',
'AD' => 'Andorrë',
'AO' => 'Angolë',
'AG' => 'Antigua e Barbuda',
'SA' => 'Arabia Saudite',
'AR' => 'Argjentinë',
'AM' => 'Armeni',
'AU' => 'Australi',
'AT' => 'Austri',
'AZ' => 'Azerbajxhan',
'BH' => 'Bahrein',
'BE' => 'Belgjikë',
'BY' => 'Bjellorusi',
'BO' => 'Bolivi',
'BA' => 'Bosnja dhe Hercegovina',
'BW' => 'Botsvana',
'BR' => 'Brazili',
'CI' => 'Bregu i Fildishtë',
'BN' => 'Brunej',
'BG' => 'Bullgari',
'BT' => 'Butan',
'DK' => 'Danimarkë',
'DM' => 'Dominikë',
'EG' => 'Egjipt',
'EC' => 'Ekuator',
'AE' => 'Emiratet Arabe te Bashkuara',
'ER' => 'Eritre',
'EE' => 'Estoni',
'ET' => 'Etiopi',
'PH' => 'Filipine',
'FI' => 'Finlandë',
'FJ' => 'Fixhi',
'FR' => 'Francë',
'GM' => 'Gambi',
'GH' => 'Ganë',
'GA' => 'Gjabon',
'GE' => 'Gjeorgji',
'DE' => 'Gjermani',
'GR' => 'Greqi',
'GY' => 'Guajana',
'GT' => 'Guatemalë',
'GN' => 'Guine',
'GW' => 'Guine Bisau',
'GQ' => 'Guineja Ekuatoriale',
'HU' => 'Hungari',
'IN' => 'Indi',
'ID' => 'Indonezi',
'IQ' => 'Irak',
'IE' => 'Irlandë',
'AX' => 'Ishujt Aland',
'MH' => 'Ishujt Marshall',
'SB' => 'Ishujt Solomon',
'IS' => 'Islandë',
'IT' => 'Itali',
'IL' => 'Izrael',
'JP' => 'Japoni',
'YE' => 'Jemen',
'JO' => 'Jordani',
'KH' => 'Kamboxhi',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kap Verde',
'QA' => 'Katar',
'KZ' => 'Kazakistan',
'KE' => 'Kenia',
'CL' => 'Kili',
'CN' => 'Kinë',
'KG' => 'Kirgistan',
'CO' => 'Kolumbi',
'KM' => 'Komore',
'CG' => 'Kongo',
'KR' => 'Koreja e Jugut',
'KP' => 'Koreja e Veriut',
'CR' => 'Kosta Rika',
'HR' => 'Kroaci',
'CU' => 'Kubë',
'KW' => 'Kuvajt',
'LS' => 'Lesoto',
'LV' => 'Letoni',
'LB' => 'Liban',
'LR' => 'Liberi',
'LY' => 'Libi',
'LI' => 'Lihtënshtajn',
'LT' => 'Lituani',
'LU' => 'Luksemburg',
'MG' => 'Madagaskar',
'MY' => 'Malajzi',
'MW' => 'Malavi',
'MV' => 'Maldivit',
'MT' => 'Maltë',
'MK' => 'Maqedoni',
'MA' => 'Maroko',
'MR' => 'Mauritani',
'GB' => 'Mbretëria e Bashkuar',
'MX' => 'Meksikë',
'FM' => 'Mikronezi',
'MD' => 'Moldavi',
'MC' => 'Monako',
'MN' => 'Mongoli',
'MZ' => 'Mozambik',
'NA' => 'Namibi',
'NG' => 'Nigeri',
'NI' => 'Nikaragua',
'NO' => 'Norvegji',
'PG' => 'Papua Guineja e Re',
'PY' => 'Paraguaj',
'PL' => 'Poloni',
'PT' => 'Portugali',
'CY' => 'Qipro',
'KI' => 'Qiribati',
'ZZ' => 'Rajon i panjohur ose i pavlefshëm',
'DO' => 'Republika Dominikanë',
'CF' => 'Republika Qendrore e Afrikës',
'CZ' => 'Republika e Çekisë',
'RW' => 'Ruanda',
'RO' => 'Rumani',
'RU' => 'Rusi',
'EH' => 'Saharaja Perëndimore',
'KN' => 'Saint Kitts e Nevis',
'VC' => 'Saint Vincent e Grenadinet',
'ST' => 'Sao Tome e Prinsipe',
'CS' => 'Serbië en Montenegro',
'AL' => 'Shqipëria',
'US' => 'Shtetet e Bashkuara të Amerikës',
'SL' => 'Siera Leone',
'SG' => 'Singapor',
'SY' => 'Siri',
'SC' => 'Sishel',
'SK' => 'Sllovaki',
'SI' => 'Slloveni',
'SO' => 'Somali',
'ES' => 'Spanjë',
'SE' => 'Suedi',
'SZ' => 'Svazilandë',
'TH' => 'Tajlandë',
'TW' => 'Tajvan',
'TZ' => 'Tanzani',
'TJ' => 'Taxhikistan',
'TG' => 'Togo',
'TO' => 'Tonga',
'TT' => 'Trinidad e Tobago',
'TN' => 'Tunisi',
'TR' => 'Turqi',
'UA' => 'Ukrainë',
'UY' => 'Uruguaj',
'VA' => 'Vatikan',
'NL' => 'Vendet e Ulëta',
'VE' => 'Venezuelë',
'JM' => 'Xhamajkë',
'DJ' => 'Xhibuti',
'ZM' => 'Zambi',
'NZ' => 'Zelanda e Re',
'ZW' => 'Zimbabve',
'CH' => 'Zvicër',
'TD' => 'Çad',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'JM' => 'Јамајка',
'JP' => 'Јапан',
'YE' => 'Јемен',
'JO' => 'Јордан',
'GS' => 'Јужна Џорџија и Јужна Сендвич Острва',
'KR' => 'Јужна Кореја',
'ZA' => 'Јужноафричка Република',
'JE' => 'Џерси',
'DJ' => 'Џибути',
'AF' => 'Авганистан',
'AZ' => 'Азербејџан',
'AX' => 'Аландска острва',
'AL' => 'Албанија',
'DZ' => 'Алжир',
'AS' => 'Америчка Самоа',
'AI' => 'Ангвила',
'AO' => 'Ангола',
'AD' => 'Андора',
'AQ' => 'Антарктик',
'AG' => 'Антигве и Барбуда',
'AR' => 'Аргентина',
'AM' => 'Арменија',
'AW' => 'Аруба',
'AU' => 'Аустралија',
'AT' => 'Аустрија',
'BD' => 'Бангладеш',
'BB' => 'Барбадос',
'BS' => 'Бахами',
'BH' => 'Бахреин',
'BE' => 'Белгија',
'BZ' => 'Белизе',
'BY' => 'Белорусија',
'BJ' => 'Бенин',
'BM' => 'Бермуда',
'CX' => 'Божићна острва',
'BO' => 'Боливија',
'BA' => 'Босна и Херцеговина',
'BW' => 'Боцвана',
'BR' => 'Бразил',
'VG' => 'Британска Девичанска Острва',
'IO' => 'Британска територија у Индијском океану',
'BN' => 'Брунеј',
'BV' => 'Буве Острва',
'BG' => 'Бугарска',
'BF' => 'Буркина Фасо',
'BI' => 'Бурунди',
'BT' => 'Бутан',
'WF' => 'Валис и Футуна Острва',
'VU' => 'Вануату',
'VA' => 'Ватикан',
'GB' => 'Велика Британија',
'VE' => 'Венецуела',
'VN' => 'Вијетнам',
'GA' => 'Габон',
'GM' => 'Гамбија',
'GH' => 'Гана',
'GP' => 'Гваделупе',
'GT' => 'Гватемала',
'GY' => 'Гвајана',
'GN' => 'Гвинеја',
'GW' => 'Гвинеја-Бисао',
'GI' => 'Гибралтар',
'GD' => 'Гренада',
'GL' => 'Гренланд',
'GE' => 'Грузија',
'GR' => 'Грчка',
'GU' => 'Гуам',
'GG' => 'Гурнси',
'DK' => 'Данска',
'CD' => 'Демократска република Конго',
'DM' => 'Доминика',
'DO' => 'Доминиканска Република',
'EG' => 'Египат',
'EC' => 'Еквадор',
'GQ' => 'Екваторијална Гвинеја',
'ER' => 'Еритреја',
'EE' => 'Естонија',
'ET' => 'Етиопија',
'ZM' => 'Замбија',
'EH' => 'Западна Сахара',
'ZW' => 'Зимбабве',
'IL' => 'Израел',
'IN' => 'Индија',
'ID' => 'Индонезија',
'IQ' => 'Ирак',
'IR' => 'Иран',
'IE' => 'Ирска',
'IS' => 'Исланд',
'TL' => 'Источни Тимор',
'IT' => 'Италија',
'KZ' => 'Казахстан',
'KH' => 'Камбоџа',
'CM' => 'Камерун',
'CA' => 'Канада',
'CV' => 'Капе Верде',
'QA' => 'Катар',
'KY' => 'Кајманска Острва',
'KE' => 'Кенија',
'CN' => 'Кина',
'CY' => 'Кипар',
'KG' => 'Киргизстан',
'KI' => 'Кирибати',
'CC' => 'Кокос (Келинг) Острва',
'CO' => 'Колумбија',
'KM' => 'Коморска Острва',
'CG' => 'Конго',
'CR' => 'Костарика',
'CU' => 'Куба',
'KW' => 'Кувајт',
'CK' => 'Кукова Острва',
'LA' => 'Лаос',
'LS' => 'Лесото',
'LV' => 'Летонија',
'LB' => 'Либан',
'LR' => 'Либерија',
'LY' => 'Либија',
'LT' => 'Литванија',
'LI' => 'Лихтенштајн',
'LU' => 'Луксембург',
'MG' => 'Мадагаскар',
'MO' => 'Макао С. А. Р. Кина',
'MK' => 'Македонија',
'MW' => 'Малави',
'MV' => 'Малдиви',
'MY' => 'Малезија',
'ML' => 'Мали',
'MT' => 'Малта',
'MA' => 'Мароко',
'MQ' => 'Мартиник',
'MH' => 'Маршалска Острва',
'MR' => 'Мауританија',
'MU' => 'Маурицијус',
'HU' => 'Мађарска',
'YT' => 'Мајоте',
'UM' => 'Мања удаљена острва САД',
'MX' => 'Мексико',
'FM' => 'Микронезија',
'MM' => 'Мијанмар',
'MZ' => 'Мозамбик',
'MD' => 'Молдавија',
'MC' => 'Монако',
'MN' => 'Монголија',
'MS' => 'Монсерат',
'NA' => 'Намибија',
'NR' => 'Науру',
'DE' => 'Немачка',
'NP' => 'Непал',
'ZZ' => 'Непозната или неважећа област',
'NE' => 'Нигер',
'NG' => 'Нигерија',
'NI' => 'Никарагва',
'NU' => 'Ниуе',
'NC' => 'Нова Каледонија',
'NZ' => 'Нови Зеланд',
'NO' => 'Норвешка',
'NF' => 'Норфолк Острво',
'CI' => 'Обала Слоноваче',
'OM' => 'Оман',
'IM' => 'Острво Ман',
'PK' => 'Пакистан',
'PW' => 'Палау',
'PS' => 'Палестинска територија',
'PA' => 'Панама',
'PG' => 'Папуа Нова Гвинеја',
'PY' => 'Парагвај',
'PE' => 'Перу',
'PN' => 'Питкерн',
'PR' => 'Порто Рико',
'PT' => 'Португал',
'PL' => 'Пољска',
'RE' => 'Реинион',
'RW' => 'Руанда',
'RO' => 'Румунија',
'RU' => 'Русија',
'VI' => 'С.А.Д. Девичанска Острва',
'SV' => 'Салвадор',
'WS' => 'Самоа',
'SM' => 'Сан Марино',
'ST' => 'Сао Томе и Принципе',
'SA' => 'Саудијска Арабија',
'SZ' => 'Свазиленд',
'SJ' => 'Свалбард и Јанмајен Острва',
'SH' => 'Света Јелена',
'BL' => 'Свети Бартоломеј',
'KP' => 'Северна Кореја',
'MP' => 'Северна Маријанска Острва',
'PM' => 'Сен Пјер и Микелон',
'SN' => 'Сенегал',
'VC' => 'Сент Винсент и Гренадини',
'KN' => 'Сент Китс и Невис',
'LC' => 'Сент Луција',
'MF' => 'Сент Мартин',
'SC' => 'Сејшели',
'SG' => 'Сингапур',
'SY' => 'Сирија',
'SL' => 'Сијера Леоне',
'SK' => 'Словачка',
'SI' => 'Словенија',
'SB' => 'Соломонска Острва',
'SO' => 'Сомалија',
'RS' => 'Србија',
'CS' => 'Србија и Црна Гора',
'SD' => 'Судан',
'SR' => 'Суринам',
'US' => 'Сједињене Америчке Државе',
'TZ' => 'Танзанија',
'TW' => 'Тајван',
'TH' => 'Тајланд',
'TJ' => 'Таџикистан',
'TG' => 'Того',
'TK' => 'Токелау',
'TO' => 'Тонга',
'TT' => 'Тринидад и Тобаго',
'TV' => 'Тувалу',
'TN' => 'Тунис',
'TM' => 'Туркменистан',
'TC' => 'Туркс и Кајкос Острва',
'TR' => 'Турска',
'UG' => 'Уганда',
'UZ' => 'Узбекистан',
'UA' => 'Украјина',
'UY' => 'Уругвај',
'AE' => 'Уједињени Арапски Емирати',
'FO' => 'Фарска Острва',
'PH' => 'Филипини',
'FI' => 'Финска',
'FJ' => 'Фиџи',
'FK' => 'Фолкландска Острва',
'FR' => 'Француска',
'GF' => 'Француска Гвајана',
'PF' => 'Француска Полинезија',
'TF' => 'Француске Јужне Територије',
'HT' => 'Хаити',
'HM' => 'Херд и Мекдоналд Острва',
'NL' => 'Холандија',
'AN' => 'Холандски Антили',
'HK' => 'Хонг Конг С. А. Р. Кина',
'HN' => 'Хондурас',
'HR' => 'Хрватска',
'CF' => 'Централно Афричка Република',
'ME' => 'Црна Гора',
'TD' => 'Чад',
'CZ' => 'Чешка',
'CL' => 'Чиле',
'CH' => 'Швајцарска',
'SE' => 'Шведска',
'ES' => 'Шпанија',
'LK' => 'Шри Ланка',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'AF' => 'Afghanistan',
'AL' => 'Albanien',
'DZ' => 'Algeriet',
'VI' => 'Amerikanska Jungfruöarna',
'AS' => 'Amerikanska Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktis',
'AG' => 'Antigua och Barbuda',
'AR' => 'Argentina',
'AM' => 'Armenien',
'AW' => 'Aruba',
'AU' => 'Australien',
'AZ' => 'Azerbajdzjan',
'BS' => 'Bahamas',
'BH' => 'Bahrain',
'BD' => 'Bangladesh',
'BB' => 'Barbados',
'BE' => 'Belgien',
'BZ' => 'Belize',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BT' => 'Bhutan',
'BO' => 'Bolivia',
'BA' => 'Bosnien och Hercegovina',
'BW' => 'Botswana',
'BV' => 'Bouvetön',
'BR' => 'Brasilien',
'IO' => 'Brittiska Indiska oceanöarna',
'VG' => 'Brittiska Jungfruöarna',
'BN' => 'Brunei',
'BG' => 'Bulgarien',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'KY' => 'Caymanöarna',
'CF' => 'Centralafrikanska republiken',
'CL' => 'Chile',
'CO' => 'Colombia',
'CK' => 'Cooköarna',
'CR' => 'Costa Rica',
'CY' => 'Cypern',
'DK' => 'Danmark',
'DJ' => 'Djibouti',
'DM' => 'Dominica',
'DO' => 'Dominikanska republiken',
'EC' => 'Ecuador',
'EG' => 'Egypten',
'GQ' => 'Ekvatorialguinea',
'SV' => 'El Salvador',
'CI' => 'Elfenbenskusten',
'ER' => 'Eritrea',
'EE' => 'Estland',
'ET' => 'Etiopien',
'FK' => 'Falklandsöarna',
'FJ' => 'Fiji',
'PH' => 'Filippinerna',
'FI' => 'Finland',
'FR' => 'Frankrike',
'GF' => 'Franska Guyana',
'PF' => 'Franska Polynesien',
'TF' => 'Franska Sydterritorierna',
'FO' => 'Färöarna',
'AE' => 'Förenade Arabemiraten',
'GA' => 'Gabon',
'GM' => 'Gambia',
'GE' => 'Georgien',
'GH' => 'Ghana',
'GI' => 'Gibraltar',
'GR' => 'Grekland',
'GD' => 'Grenada',
'GL' => 'Grönland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GN' => 'Guinea',
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'HM' => 'Heard- och McDonaldöarna',
'HN' => 'Honduras',
'HK' => 'Hongkong (S.A.R. Kina)',
'IN' => 'Indien',
'ID' => 'Indonesien',
'IQ' => 'Irak',
'IR' => 'Iran',
'IE' => 'Irland',
'IS' => 'Island',
'IM' => 'Isle of Man',
'IL' => 'Israel',
'IT' => 'Italien',
'JM' => 'Jamaica',
'JP' => 'Japan',
'YE' => 'Jemen',
'JE' => 'Jersey',
'JO' => 'Jordanien',
'CX' => 'Julön',
'KH' => 'Kambodja',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'CV' => 'Kap Verde',
'KZ' => 'Kazakstan',
'KE' => 'Kenya',
'CN' => 'Kina',
'KG' => 'Kirgizistan',
'KI' => 'Kiribati',
'CC' => 'Kokosöarna',
'KM' => 'Komorerna',
'CG' => 'Kongo-Brazzaville',
'CD' => 'Kongo-Kinshasa',
'HR' => 'Kroatien',
'CU' => 'Kuba',
'KW' => 'Kuwait',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Lettland',
'LB' => 'Libanon',
'LR' => 'Liberia',
'LY' => 'Libyen',
'LI' => 'Liechtenstein',
'LT' => 'Litauen',
'LU' => 'Luxemburg',
'MO' => 'Macao (S.A.R. Kina)',
'MG' => 'Madagaskar',
'MK' => 'Makedonien',
'MW' => 'Malawi',
'MY' => 'Malaysia',
'MV' => 'Maldiverna',
'ML' => 'Mali',
'MT' => 'Malta',
'MA' => 'Marocko',
'MH' => 'Marshallöarna',
'MQ' => 'Martinique',
'MR' => 'Mauretanien',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Mexiko',
'FM' => 'Mikronesien',
'MD' => 'Moldavien',
'MC' => 'Monaco',
'MN' => 'Mongoliet',
'ME' => 'Montenegro',
'MS' => 'Montserrat',
'MZ' => 'Moçambique',
'MM' => 'Myanmar',
'NA' => 'Namibia',
'NR' => 'Nauru',
'NL' => 'Nederländerna',
'AN' => 'Nederländska Antillerna',
'NP' => 'Nepal',
'NI' => 'Nicaragua',
'NE' => 'Niger',
'NG' => 'Nigeria',
'NU' => 'Niue',
'KP' => 'Nordkorea',
'MP' => 'Nordmarianerna',
'NF' => 'Norfolkön',
'NO' => 'Norge',
'NC' => 'Nya Kaledonien',
'NZ' => 'Nya Zeeland',
'OM' => 'Oman',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PS' => 'Palestinska territoriet',
'PA' => 'Panama',
'PG' => 'Papua Nya Guinea',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polen',
'PT' => 'Portugal',
'PR' => 'Puerto Rico',
'QA' => 'Qatar',
'RO' => 'Rumänien',
'RW' => 'Rwanda',
'RU' => 'Ryssland',
'RE' => 'Réunion',
'BL' => 'S:t Barthélemy',
'SH' => 'S:t Helena',
'KN' => 'S:t Kitts och Nevis',
'LC' => 'S:t Lucia',
'MF' => 'S:t Martin',
'PM' => 'S:t Pierre och Miquelon',
'VC' => 'S:t Vincent och Grenadinerna',
'SB' => 'Salomonöarna',
'WS' => 'Samoa',
'SM' => 'San Marino',
'SA' => 'Saudiarabien',
'CH' => 'Schweiz',
'SN' => 'Senegal',
'RS' => 'Serbien',
'CS' => 'Serbien och Montenegro',
'SC' => 'Seychellerna',
'SL' => 'Sierra Leone',
'SG' => 'Singapore',
'SK' => 'Slovakien',
'SI' => 'Slovenien',
'SO' => 'Somalia',
'ES' => 'Spanien',
'LK' => 'Sri Lanka',
'GB' => 'Storbritannien',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SJ' => 'Svalbard och Jan Mayen',
'SE' => 'Sverige',
'SZ' => 'Swaziland',
'ZA' => 'Sydafrika',
'GS' => 'Sydgeorgien och Södra Sandwichöarna',
'KR' => 'Sydkorea',
'SY' => 'Syrien',
'ST' => 'São Tomé och Príncipe',
'TJ' => 'Tadzjikistan',
'TW' => 'Taiwan',
'TZ' => 'Tanzania',
'TD' => 'Tchad',
'TH' => 'Thailand',
'CZ' => 'Tjeckien',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad och Tobago',
'TN' => 'Tunisien',
'TR' => 'Turkiet',
'TM' => 'Turkmenistan',
'TC' => 'Turks- och Caicosöarna',
'TV' => 'Tuvalu',
'DE' => 'Tyskland',
'US' => 'USA',
'UM' => 'USA:s yttre öar',
'UG' => 'Uganda',
'UA' => 'Ukraina',
'HU' => 'Ungern',
'UY' => 'Uruguay',
'UZ' => 'Uzbekistan',
'VU' => 'Vanuatu',
'VA' => 'Vatikanstaten',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'BY' => 'Vitryssland',
'EH' => 'Västsahara',
'WF' => 'Wallis- och Futunaöarna',
'ZM' => 'Zambia',
'ZW' => 'Zimbabwe',
'ZZ' => 'okänd eller ogiltig regionkod',
'AX' => 'Åland',
'AT' => 'Österrike',
'TL' => 'Östtimor',
);

View File

@ -0,0 +1,250 @@
<?php return array(
'VI' => 'ABD Virgin Adaları',
'AF' => 'Afganistan',
'AX' => 'Aland Adaları',
'DE' => 'Almanya',
'US' => 'Amerika Birleşik Devletleri',
'UM' => 'Amerika Birleşik Devletleri Küçük Dış Adaları',
'AS' => 'Amerikan Samoası',
'AD' => 'Andorra',
'AO' => 'Angola',
'AI' => 'Anguilla',
'AQ' => 'Antarktika',
'AG' => 'Antigua ve Barbuda',
'AR' => 'Arjantin',
'AL' => 'Arnavutluk',
'AW' => 'Aruba',
'AU' => 'Avustralya',
'AT' => 'Avusturya',
'AZ' => 'Azerbaycan',
'BS' => 'Bahamalar',
'BH' => 'Bahreyn',
'BD' => 'Bangladeş',
'BB' => 'Barbados',
'EH' => 'Batı Sahara',
'BZ' => 'Belize',
'BE' => 'Belçika',
'BJ' => 'Benin',
'BM' => 'Bermuda',
'BY' => 'Beyaz Rusya',
'BT' => 'Bhutan',
'ZZ' => 'Bilinmeyen veya Geçersiz Bölge',
'AE' => 'Birleşik Arap Emirlikleri',
'GB' => 'Birleşik Krallık',
'BO' => 'Bolivya',
'BA' => 'Bosna Hersek',
'BW' => 'Botsvana',
'BV' => 'Bouvet Adası',
'BR' => 'Brezilya',
'BN' => 'Brunei',
'BG' => 'Bulgaristan',
'BF' => 'Burkina Faso',
'BI' => 'Burundi',
'CV' => 'Cape Verde',
'KY' => 'Cayman Adaları',
'GI' => 'Cebelitarık',
'DZ' => 'Cezayir',
'CX' => 'Christmas Adası',
'DJ' => 'Cibuti',
'CC' => 'Cocos Adaları',
'CK' => 'Cook Adaları',
'DK' => 'Danimarka',
'DO' => 'Dominik Cumhuriyeti',
'DM' => 'Dominika',
'TL' => 'Doğu Timor',
'EC' => 'Ekvador',
'GQ' => 'Ekvator Ginesi',
'SV' => 'El Salvador',
'ID' => 'Endonezya',
'ER' => 'Eritre',
'AM' => 'Ermenistan',
'EE' => 'Estonya',
'ET' => 'Etiyopya',
'FK' => 'Falkland Adaları',
'FO' => 'Faroe Adaları',
'MA' => 'Fas',
'FJ' => 'Fiji',
'CI' => 'Fildişi Sahili',
'PH' => 'Filipinler',
'PS' => 'Filistin Bölgesi',
'FI' => 'Finlandiya',
'FR' => 'Fransa',
'GF' => 'Fransız Guyanası',
'TF' => 'Fransız Güney Bölgeleri',
'PF' => 'Fransız Polinezyası',
'GA' => 'Gabon',
'GM' => 'Gambiya',
'GH' => 'Gana',
'GN' => 'Gine',
'GW' => 'Gine-Bissau',
'GD' => 'Grenada',
'GL' => 'Grönland',
'GP' => 'Guadeloupe',
'GU' => 'Guam',
'GT' => 'Guatemala',
'GG' => 'Guernsey',
'GY' => 'Guyana',
'ZA' => 'Güney Afrika',
'GS' => 'Güney Georgia ve Güney Sandwich Adaları',
'KR' => 'Güney Kore',
'CY' => 'Güney Kıbrıs Rum Kesimi',
'GE' => 'Gürcistan',
'HT' => 'Haiti',
'HM' => 'Heard Adası ve McDonald Adaları',
'IN' => 'Hindistan',
'IO' => 'Hint Okyanusu İngiliz Bölgesi',
'NL' => 'Hollanda',
'AN' => 'Hollanda Antilleri',
'HN' => 'Honduras',
'HK' => 'Hong Kong SAR - Çin',
'HR' => 'Hırvatistan',
'IQ' => 'Irak',
'JM' => 'Jamaika',
'JP' => 'Japonya',
'JE' => 'Jersey',
'KH' => 'Kamboçya',
'CM' => 'Kamerun',
'CA' => 'Kanada',
'ME' => 'Karadağ',
'QA' => 'Katar',
'KZ' => 'Kazakistan',
'KE' => 'Kenya',
'KI' => 'Kiribati',
'CO' => 'Kolombiya',
'KM' => 'Komorlar',
'CG' => 'Kongo - Brazavil',
'CD' => 'Kongo - Kinşasa',
'CR' => 'Kosta Rika',
'KW' => 'Kuveyt',
'KP' => 'Kuzey Kore',
'MP' => 'Kuzey Mariana Adaları',
'CU' => 'Küba',
'KG' => 'Kırgızistan',
'LA' => 'Laos',
'LS' => 'Lesotho',
'LV' => 'Letonya',
'LR' => 'Liberya',
'LY' => 'Libya',
'LI' => 'Liechtenstein',
'LT' => 'Litvanya',
'LB' => 'Lübnan',
'LU' => 'Lüksemburg',
'HU' => 'Macaristan',
'MG' => 'Madagaskar',
'MO' => 'Makao S.A.R. Çin',
'MK' => 'Makedonya',
'MW' => 'Malavi',
'MV' => 'Maldivler',
'MY' => 'Malezya',
'ML' => 'Mali',
'MT' => 'Malta',
'IM' => 'Man Adası',
'MH' => 'Marshall Adaları',
'MQ' => 'Martinik',
'MU' => 'Mauritius',
'YT' => 'Mayotte',
'MX' => 'Meksika',
'FM' => 'Mikronezya Federal Eyaletleri',
'MD' => 'Moldova',
'MC' => 'Monako',
'MS' => 'Montserrat',
'MR' => 'Moritanya',
'MZ' => 'Mozambik',
'MN' => 'Moğolistan',
'MM' => 'Myanmar',
'EG' => 'Mısır',
'NA' => 'Namibya',
'NR' => 'Nauru',
'NP' => 'Nepal',
'NE' => 'Nijer',
'NG' => 'Nijerya',
'NI' => 'Nikaragua',
'NU' => 'Niue',
'NF' => 'Norfolk Adası',
'NO' => 'Norveç',
'CF' => 'Orta Afrika Cumhuriyeti',
'PK' => 'Pakistan',
'PW' => 'Palau',
'PA' => 'Panama',
'PG' => 'Papua Yeni Gine',
'PY' => 'Paraguay',
'PE' => 'Peru',
'PN' => 'Pitcairn',
'PL' => 'Polonya',
'PT' => 'Portekiz',
'PR' => 'Porto Riko',
'RE' => 'Reunion',
'RO' => 'Romanya',
'RW' => 'Ruanda',
'RU' => 'Rusya Federasyonu',
'BL' => 'Saint Barthelemy',
'SH' => 'Saint Helena',
'KN' => 'Saint Kitts ve Nevis',
'LC' => 'Saint Lucia',
'MF' => 'Saint Martin',
'PM' => 'Saint Pierre ve Miquelon',
'VC' => 'Saint Vincent ve Grenadinler',
'WS' => 'Samoa',
'SM' => 'San Marino',
'ST' => 'Sao Tome ve Principe',
'SN' => 'Senegal',
'SC' => 'Seyşel Adaları',
'SL' => 'Sierra Leone',
'SG' => 'Singapur',
'SK' => 'Slovakya',
'SI' => 'Slovenya',
'SB' => 'Solomon Adaları',
'SO' => 'Somali',
'LK' => 'Sri Lanka',
'SD' => 'Sudan',
'SR' => 'Surinam',
'SY' => 'Suriye',
'SA' => 'Suudi Arabistan',
'SJ' => 'Svalbard ve Jan Mayen',
'SZ' => 'Svaziland',
'RS' => 'Sırbistan',
'CS' => 'Sırbistan-Karadağ',
'TJ' => 'Tacikistan',
'TZ' => 'Tanzanya',
'TH' => 'Tayland',
'TW' => 'Tayvan',
'TG' => 'Togo',
'TK' => 'Tokelau',
'TO' => 'Tonga',
'TT' => 'Trinidad ve Tobago',
'TN' => 'Tunus',
'TC' => 'Turks ve Caicos Adaları',
'TV' => 'Tuvalu',
'TR' => 'Türkiye',
'TM' => 'Türkmenistan',
'UG' => 'Uganda',
'UA' => 'Ukrayna',
'OM' => 'Umman',
'UY' => 'Uruguay',
'VU' => 'Vanuatu',
'VA' => 'Vatikan',
'VE' => 'Venezuela',
'VN' => 'Vietnam',
'WF' => 'Wallis ve Futuna',
'YE' => 'Yemen',
'NC' => 'Yeni Kaledonya',
'NZ' => 'Yeni Zelanda',
'GR' => 'Yunanistan',
'ZM' => 'Zambiya',
'ZW' => 'Zimbabve',
'TD' => 'Çad',
'CZ' => 'Çek Cumhuriyeti',
'CN' => 'Çin',
'UZ' => 'Özbekistan',
'JO' => 'Ürdün',
'VG' => 'İngiliz Virgin Adaları',
'IR' => 'İran',
'IE' => 'İrlanda',
'ES' => 'İspanya',
'IL' => 'İsrail',
'SE' => 'İsveç',
'CH' => 'İsviçre',
'IT' => 'İtalya',
'IS' => 'İzlanda',
'CL' => 'Şili',
);

View File

@ -0,0 +1,238 @@
<?php return array(
'SA' => 'A-rập Xê-út',
'EG' => 'Ai Cập',
'AZ' => 'Ai-déc-bai-gian',
'IE' => 'Ai-len',
'IS' => 'Ai-xơ-len',
'AL' => 'An-ba-ni',
'DZ' => 'An-giê-ri',
'AG' => 'An-ti-gu-a và Ba-bu-đa',
'AD' => 'Andorra',
'BL' => 'BL',
'PL' => 'Ba Lan',
'BS' => 'Ba-ha-ma',
'BH' => 'Ba-ren',
'BR' => 'Bra-xin',
'BN' => 'Bru-nây',
'BI' => 'Bu-run-đi',
'BT' => 'Bu-tan (Bhutan)',
'BG' => 'Bun-ga-ri',
'BF' => 'Buốc-ki-na Pha-xô',
'BB' => 'Bác-ba-đốt',
'BY' => 'Bê-la-rút',
'BZ' => 'Bê-li-xê',
'BJ' => 'Bê-nanh',
'BO' => 'Bô-li-vi-a',
'BA' => 'Bô-xni-a Héc-xê-gô-vi-na',
'GL' => 'Băng Đảo',
'BD' => 'Băng-la-đét',
'KP' => 'Bắc Triều Tiên',
'BE' => 'Bỉ',
'BW' => 'Bốt-xoa-na',
'PT' => 'Bồ Đào Nha',
'CI' => 'Bờ Biển Ngà',
'CM' => 'Ca-mơ-run',
'CA' => 'Ca-na-đa',
'QA' => 'Ca-ta',
'KH' => 'Campuchia',
'CL' => 'Chi-lê',
'HR' => 'Crô-a-ti-a',
'CU' => 'Cu Ba',
'AE' => 'Các Tiểu Vương quốc A-rập Thống nhất',
'UM' => 'Các đảo nhỏ xa trung tâm thuộc Mỹ',
'CV' => 'Cáp-ve',
'CO' => 'Cô-lôm-bi-a',
'KM' => 'Cô-mô',
'KW' => 'Cô-oét',
'CG' => 'Công-gô',
'KG' => 'Cư-rơ-gư-xtan',
'CR' => 'Cốt-xta Ri-ca',
'CD' => 'Cộng hoà dân chủ Côngô',
'DO' => 'Cộng hoà Đô-mi-ni-ca',
'CZ' => 'Cộng hòa Séc',
'CF' => 'Cộng hòa Trung Phi',
'ZW' => 'Dim-ba-bu-ê',
'ZM' => 'Dăm-bi-a',
'EE' => 'E-xtô-ni-a',
'SV' => 'En-san-va-đo',
'GA' => 'Ga-bông',
'GH' => 'Gha-na',
'GN' => 'Ghi-nê',
'GW' => 'Ghi-nê Bít-xao',
'GQ' => 'Ghi-nê Xích-đạo',
'DJ' => 'Gi-bu-ti',
'JO' => 'Gióc-đa-ni',
'GT' => 'Goa-tê-ma-la',
'GE' => 'Gru-di-a',
'GD' => 'Grê-na-đa',
'GG' => 'Guernsey',
'GY' => 'Guy-a-na',
'GM' => 'Găm-bi-a',
'HT' => 'Ha-i-ti',
'JM' => 'Ha-mai-ca',
'US' => 'Hoa Kỳ',
'HU' => 'Hung-ga-ri',
'GR' => 'Hy Lạp',
'NL' => 'Hà Lan',
'KR' => 'Hàn Quốc',
'HN' => 'Hôn-đu-rát',
'IR' => 'I-ran',
'IQ' => 'I-rắc',
'IL' => 'I-xra-en',
'JE' => 'Jersey',
'KZ' => 'Ka-dắc-xtan',
'KI' => 'Ki-ri-ba-ti',
'KE' => 'Kê-ni-a',
'LY' => 'Li-bi',
'LR' => 'Li-bê-ri-a',
'LB' => 'Li-băng',
'LT' => 'Li-tu-a-ni-a',
'LI' => 'Lich-ten-xtên',
'LA' => 'Lào',
'LV' => 'Lát-vi-a',
'PS' => 'Lãnh thổ Palestine',
'LS' => 'Lê-xô-thô',
'LU' => 'Lúc-xăm-bua',
'MF' => 'MF',
'MQ' => 'MQ',
'MW' => 'Ma-la-uy',
'MY' => 'Ma-lay-xi-a',
'ML' => 'Ma-li',
'MA' => 'Ma-rốc',
'MK' => 'Ma-xê-đô-ni-a',
'MG' => 'Ma-đa-gát-xca',
'MT' => 'Man-ta',
'MV' => 'Man-đi-vơ',
'MM' => 'Mi-an-ma',
'FM' => 'Mi-crô-nê-xi-a',
'ME' => 'Montenegro',
'MX' => 'Mê-hi-cô',
'MZ' => 'Mô-dăm-bích',
'MC' => 'Mô-na-cô',
'MR' => 'Mô-ri-ta-ni',
'MU' => 'Mô-ri-xơ',
'MD' => 'Môn-đô-va',
'MN' => 'Mông Cổ',
'NO' => 'Na Uy',
'AQ' => 'Nam Cực',
'ID' => 'Nam Dương',
'ZA' => 'Nam Phi',
'NA' => 'Nam-mi-bi-a',
'NC' => 'New Caledonia',
'RU' => 'Nga',
'JP' => 'Nhật Bản',
'NI' => 'Ni-ca-ra-goa',
'NE' => 'Ni-giê',
'NG' => 'Ni-giê-ri-a',
'NZ' => 'Niu Di-lân',
'NP' => 'Nê-pan',
'PK' => 'Pa-ki-xtan',
'PA' => 'Pa-na-ma',
'PG' => 'Pa-pu-a Niu Ghi-nê',
'PY' => 'Pa-ra-goay',
'FJ' => 'Phi-gi',
'PH' => 'Phi-lip-pin',
'FR' => 'Pháp',
'FI' => 'Phần Lan',
'PF' => 'Polynesia thuộc Pháp',
'PE' => 'Pê-ru',
'GF' => 'Quiana thuộc Pháp',
'MP' => 'Quần Đảo Bắc Mariana',
'KY' => 'Quần Đảo Cayman',
'CK' => 'Quần Đảo Cook',
'FK' => 'Quần Đảo Falkland',
'FO' => 'Quần Đảo Faroe',
'TC' => 'Quần Đảo Turk và Caicos',
'AX' => 'Quần đảo Aland',
'CC' => 'Quần đảo Cocos',
'MH' => 'Quần đảo Mác-san',
'GS' => 'Quần đảo Nam Georgia và Nam Sandwich',
'VI' => 'Quần đảo Virgin, Mỹ',
'SB' => 'Quần đảo Xô-lô-mông',
'RE' => 'RE',
'RW' => 'Ru-an-đa',
'RO' => 'Ru-ma-ni',
'SH' => 'Saint Helena',
'PM' => 'Saint Pierre và Miquelon',
'SJ' => 'Svalbard và Jan Mayen',
'TD' => 'Sát',
'CS' => 'Séc-bia',
'CY' => 'Síp',
'TZ' => 'Tan-da-ni-a',
'TF' => 'Thuộc Địa Nam của Pháp',
'IO' => 'Thuộc địa Anh tại Ấn Độ Dương',
'TH' => 'Thái Lan',
'TR' => 'Thổ Nhĩ Kỳ',
'CH' => 'Thụy Sĩ',
'SE' => 'Thụy Điển',
'TK' => 'Tokelau',
'TT' => 'Tri-ni-đát và Tô-ba-gô',
'CN' => 'Trung Quốc',
'TV' => 'Tu-va-lu',
'TN' => 'Tuy-ni-di',
'TM' => 'Tuốc-mê-ni-xtan',
'TJ' => 'Tát-gi-ki-xtan',
'ES' => 'Tây Ban Nha',
'EH' => 'Tây Sahara',
'AN' => 'Tây Ấn Hà Lan',
'TG' => 'Tô-gô',
'TO' => 'Tông-ga',
'UA' => 'U-crai-na',
'UZ' => 'U-dơ-bê-ki-xtan',
'UG' => 'U-gan-đa',
'UY' => 'U-ru-goay',
'VU' => 'Va-nu-a-tu',
'VA' => 'Va-ti-căng',
'VN' => 'Việt Nam',
'VE' => 'Vê-nê-zu-ê-la',
'ZZ' => 'Vùng Chưa biết hoặc không Hợp lệ',
'GB' => 'Vương quốc Anh',
'WF' => 'Wallis và Futuna',
'WS' => 'Xa-moa',
'LC' => 'Xan Lu-xi',
'SM' => 'Xan Ma-ri-nô',
'VC' => 'Xan Vin-xen và Grê-na-din',
'KN' => 'Xan-kít và Nê-vi',
'ST' => 'Xao Tô-mê và Prin-xi-pê',
'SY' => 'Xi-ri',
'SL' => 'Xi-ê-ra Lê-ôn',
'SG' => 'Xin-ga-po',
'SK' => 'Xlô-va-ki-a',
'SI' => 'Xlô-ven-ni-a',
'SZ' => 'Xoa-di-len',
'LK' => 'Xri Lan-ca',
'SR' => 'Xu-ri-nam',
'SD' => 'Xu-đăng',
'SC' => 'Xây-sen',
'RS' => 'Xéc-bi',
'SN' => 'Xê-nê-gan',
'SO' => 'Xô-ma-li',
'YE' => 'Y-ê-men',
'YT' => 'YT',
'AR' => 'Ác-hen-ti-na',
'AM' => 'Ác-mê-ni-a',
'AT' => 'Áo',
'AF' => 'Áp-ga-ni-xtan',
'EC' => 'Ê-cu-a-đo',
'ER' => 'Ê-ri-tơ-rê-a',
'ET' => 'Ê-ti-ô-pi-a',
'OM' => 'Ô-man',
'AU' => 'Úc',
'IT' => 'Ý',
'AO' => 'Ăng-gô-la',
'DK' => 'Đan Mạch',
'TW' => 'Đài Loan',
'TL' => 'Đông Ti-mo',
'BV' => 'Đảo Bouvet (Na Uy)',
'CX' => 'Đảo Giáng Sinh',
'GU' => 'Đảo Gu-am',
'HM' => 'Đảo Heard và Quần đảo McDonald',
'IM' => 'Đảo Man',
'NF' => 'Đảo Norfolk',
'AS' => 'Đảo Somoa thuộc Mỹ',
'VG' => 'Đảo Virgin, thuộc Anh',
'HK' => 'Đặc khu hành chính Hồng Kông thuộc CHND Trung Hoa',
'MO' => 'Đặc khu hành chính Macao thuộc CHND Trung Hoa',
'DE' => 'Đức',
'IN' => 'Ấn Độ',
);

View File

@ -0,0 +1,40 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Returns an array list of cldr => country, translated in the language $cldr.
* If there is no translated country list, return the english one.
*
* @param $cldr
* @return mixed
*/
function get_country_list($cldr)
{
if (file_exists(APPPATH . 'helpers/country-list/' . $cldr . '/country.php')) {
return (include APPPATH . 'helpers/country-list/' . $cldr . '/country.php');
} else {
return (include APPPATH . 'helpers/country-list/en/country.php');
}
}
/**
* Returns the countryname of a given $countrycode, translated in the language $cldr.
*
* @param $cldr
* @param $countrycode
* @return mixed
*/
function get_country_name($cldr, $countrycode)
{
$countries = get_country_list($cldr);
return (isset($countries[$countrycode]) ? $countries[$countrycode] : $countrycode);
}

View File

@ -0,0 +1,200 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* @param $txt
* @return bool|DateTime|string
*/
function format_date($txt)
{
if ($txt == null) {
return '';
}
return date_from_mysql($txt);
}
/**
* @param $txt
* @return string
*/
function format_text($txt)
{
if ($txt == null) {
return '';
}
return $txt;
}
/**
* @param $txt
* @return string
*/
function format_singlechoice($txt)
{
if ($txt == null) {
return '';
}
$CI = get_instance();
$CI->load->model('custom_values/mdl_custom_values', 'cv');
$el = $CI->cv->get_by_id($txt)->row();
return $el->custom_values_value;
}
/**
* @param $txt
* @return string
*/
function format_multiplechoice($txt)
{
if ($txt == null) {
return '';
}
$CI = get_instance();
$CI->load->model('custom_values/mdl_custom_values', 'cv');
$values = explode(',', $txt);
$values = $CI->cv->where_in('custom_values_id', $values)->get()->result();
$values_text = [];
foreach ($values as $value) {
$values_text[] = $value->custom_values_value;
}
return implode("\n", $values_text);
}
function format_boolean($txt)
{
if ($txt == null) {
return '';
}
if ($txt == '1') {
return trans('true');
} else if ($txt == '0') {
return trans('false');
}
return '';
}
function format_avs($txt)
{
if (!preg_match('/(\d{3})(\d{4})(\d{4})(\d{2})/', $txt, $matches)) {
return $txt;
}
return $matches[1] . "." . $matches[2] . "." . $matches[3] . "." . $matches[4];
}
/**
* @param $txt
* @return string
*/
function format_fallback($txt)
{
return format_text($txt);
}
/**
* Print a custom form field based on the type
* @param $module
* @param $custom_field
* @param $cv
* @param string $class_top
* @param string $class_bottom
* @param string $label_class
*/
function print_field($module, $custom_field, $cv, $class_top = '', $class_bottom = 'controls', $label_class = '')
{
?>
<div class="form-group">
<div class="<?php echo $class_top; ?>">
<label<?php echo($label_class != '' ? " class='" . $label_class . "'" : ''); ?>
for="custom[<?php echo $custom_field->custom_field_id; ?>]">
<?php _htmlsc($custom_field->custom_field_label); ?>
</label>
</div>
<?php $fieldValue = $module->form_value('custom[' . $custom_field->custom_field_id . ']'); ?>
<div class="<?php echo $class_bottom; ?>">
<?php
switch ($custom_field->custom_field_type) {
case 'DATE':
$dateValue = ($fieldValue == "" ? "" : date_from_mysql($fieldValue));
?>
<input type="text" class="form-control input-sm datepicker"
name="custom[<?php echo $custom_field->custom_field_id; ?>]"
id="<?php echo $custom_field->custom_field_id; ?>"
value="<?php echo $dateValue; ?>">
<?php
break;
case 'SINGLE-CHOICE':
$choices = $cv[$custom_field->custom_field_id];
?>
<select class="form-control simple-select" name="custom[<?php echo $custom_field->custom_field_id; ?>]"
id="<?php echo $custom_field->custom_field_id; ?>" onchange="myFun(<?php echo $custom_field->custom_field_id; ?>);">
<option value=""><?php echo trans('none'); ?></option>
<?php foreach ($choices as $val): ?>
<option value="<?php echo $val->custom_values_id; ?>"
<?php check_select($val->custom_values_id, $fieldValue); ?>>
<?php _htmlsc($val->custom_values_value); ?>
</option>
<?php endforeach; ?>
</select>
<?php
break;
case 'MULTIPLE-CHOICE':
$choices = $cv[$custom_field->custom_field_id];
$selChoices = explode(',', $fieldValue); ?>
<select id="<?php echo $custom_field->custom_field_id; ?>"
name="custom[<?php echo $custom_field->custom_field_id; ?>][]"
multiple="multiple"
class="form-control">
<option value=""><?php echo trans('none'); ?></option>
<?php foreach ($choices as $choice): ?>
<option value="<?php echo $choice->custom_values_id; ?>" <?php check_select(in_array($choice->custom_values_id, $selChoices)); ?>>
<?php _htmlsc($choice->custom_values_value); ?>
</option>
<?php endforeach; ?>
</select>
<script>
$('#<?php echo $custom_field->custom_field_id; ?>').select2();
</script>
<?php
break;
case 'BOOLEAN':
?>
<select id="<?php echo $custom_field->custom_field_id; ?>"
name="custom[<?php echo $custom_field->custom_field_id; ?>]"
class="form-control">
<option value="0" <?php check_select($fieldValue, '0'); ?>><?php echo trans('false'); ?></option>
<option value="1" <?php check_select($fieldValue, '1'); ?>><?php echo trans('true'); ?></option>
</select>
<?php
break;
default:
?>
<input type="text" class="form-control"
name="custom[<?php echo $custom_field->custom_field_id; ?>]"
id="<?php echo $custom_field->custom_field_id; ?>"
value="<?php _htmlsc($fieldValue); ?>">
<?php } ?>
</div>
</div>
<?php
}

View File

@ -0,0 +1,190 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Available date formats
* The setting value represents the PHP date() formatting, the datepicker value represents the
* DatePicker formatting (see http://bootstrap-datepicker.readthedocs.io/en/stable/options.html#format)
*
* @return array
*/
function date_formats()
{
return array(
'm/d/Y' => array(
'setting' => 'm/d/Y',
'datepicker' => 'mm/dd/yyyy'
),
'm-d-Y' => array(
'setting' => 'm-d-Y',
'datepicker' => 'mm-dd-yyyy'
),
'm.d.Y' => array(
'setting' => 'm.d.Y',
'datepicker' => 'mm.dd.yyyy'
),
'Y/m/d' => array(
'setting' => 'Y/m/d',
'datepicker' => 'yyyy/mm/dd'
),
'Y-m-d' => array(
'setting' => 'Y-m-d',
'datepicker' => 'yyyy-mm-dd'
),
'Y.m.d' => array(
'setting' => 'Y.m.d',
'datepicker' => 'yyyy.mm.dd'
),
'd/m/Y' => array(
'setting' => 'd/m/Y',
'datepicker' => 'dd/mm/yyyy'
),
'd-m-Y' => array(
'setting' => 'd-m-Y',
'datepicker' => 'dd-mm-yyyy'
),
'd-M-Y' => array(
'setting' => 'd-M-Y',
'datepicker' => 'dd-M-yyyy'
),
'd.m.Y' => array(
'setting' => 'd.m.Y',
'datepicker' => 'dd.mm.yyyy'
),
'j.n.Y' => array(
'setting' => 'j.n.Y',
'datepicker' => 'd.m.yyyy'
),
'd M,Y' => array(
'setting' => 'd M,Y',
'datepicker' => 'dd M,yyyy'
),
);
}
/**
* @param $date
* @param bool $ignore_post_check
* @return bool|DateTime|string
*/
function date_from_mysql($date, $ignore_post_check = false)
{
if ($date <> '0000-00-00') {
if (!$_POST or $ignore_post_check) {
$CI = &get_instance();
$date = DateTime::createFromFormat('Y-m-d', $date);
return $date->format($CI->mdl_settings->setting('date_format'));
}
return $date;
}
return '';
}
/**
* @param $timestamp
* @return string
*/
function date_from_timestamp($timestamp)
{
$CI = &get_instance();
$date = new DateTime();
$date->setTimestamp($timestamp);
return $date->format($CI->mdl_settings->setting('date_format'));
}
/**
* @param $date
* @return string
*/
function date_to_mysql($date)
{
$CI = &get_instance();
$date = DateTime::createFromFormat($CI->mdl_settings->setting('date_format'), $date);
return $date->format('Y-m-d');
}
/**
* @param $date
* @return bool
*/
function is_date($date)
{
$CI = &get_instance();
$format = $CI->mdl_settings->setting('date_format');
$d = DateTime::createFromFormat($format, $date);
return $d && $d->format($format) == $date;
}
/**
* @return string
*/
function date_format_setting()
{
$CI = &get_instance();
$date_format = $CI->mdl_settings->setting('date_format');
$date_formats = date_formats();
return $date_formats[$date_format]['setting'];
}
/**
* @return string
*/
function date_format_datepicker()
{
$CI = &get_instance();
$date_format = $CI->mdl_settings->setting('date_format');
$date_formats = date_formats();
return $date_formats[$date_format]['datepicker'];
}
/**
* Adds interval to user formatted date and returns user formatted date
* To be used when date is being output back to user.
*
* @param $date - user formatted date
* @param $increment - interval (1D, 2M, 1Y, etc)
* @return string
*/
function increment_user_date($date, $increment)
{
$CI = &get_instance();
$mysql_date = date_to_mysql($date);
$new_date = new DateTime($mysql_date);
$new_date->add(new DateInterval('P' . $increment));
return $new_date->format($CI->mdl_settings->setting('date_format'));
}
/**
* Adds interval to yyyy-mm-dd date and returns in same format
*
* @param $date
* @param $increment
* @return string
*/
function increment_date($date, $increment)
{
$new_date = new DateTime($date);
$new_date->add(new DateInterval('P' . $increment));
return $new_date->format('Y-m-d');
}

View File

@ -0,0 +1,306 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* @param string $str
* @return bool
*/
function diacritics_seems_utf8($str)
{
$length = strlen($str);
for ($i = 0; $i < $length; $i++) {
$c = ord($str[$i]);
if ($c < 0x80) {
$n = 0;
} # 0bbbbbbb
elseif (($c & 0xE0) == 0xC0) {
$n = 1;
} # 110bbbbb
elseif (($c & 0xF0) == 0xE0) {
$n = 2;
} # 1110bbbb
elseif (($c & 0xF8) == 0xF0) {
$n = 3;
} # 11110bbb
elseif (($c & 0xFC) == 0xF8) {
$n = 4;
} # 111110bb
elseif (($c & 0xFE) == 0xFC) {
$n = 5;
} # 1111110b
else {
return false;
}
# Does not match any model
for ($j = 0; $j < $n; $j++) { # n bytes matching 10bbbbbb follow ?
if ((++$i == $length) || ((ord($str[$i]) & 0xC0) != 0x80)) {
return false;
}
}
}
return true;
}
/**
* Converts all accent characters to ASCII characters.
*
* If there are no accent characters, then the string given is just returned.
*
* @param string $string Text that might have accent characters
* @return string Filtered string with replaced "nice" characters.
*/
function diacritics_remove_accents($string)
{
if (!preg_match('/[\x80-\xff]/', $string)) {
return $string;
}
if (diacritics_seems_utf8($string)) {
$chars = array(
// Decompositions for Latin-1 Supplement
chr(195) . chr(128) => 'A', chr(195) . chr(129) => 'A',
chr(195) . chr(130) => 'A', chr(195) . chr(131) => 'A',
chr(195) . chr(132) => 'A', chr(195) . chr(133) => 'A',
chr(195) . chr(135) => 'C', chr(195) . chr(136) => 'E',
chr(195) . chr(137) => 'E', chr(195) . chr(138) => 'E',
chr(195) . chr(139) => 'E', chr(195) . chr(140) => 'I',
chr(195) . chr(141) => 'I', chr(195) . chr(142) => 'I',
chr(195) . chr(143) => 'I', chr(195) . chr(145) => 'N',
chr(195) . chr(146) => 'O', chr(195) . chr(147) => 'O',
chr(195) . chr(148) => 'O', chr(195) . chr(149) => 'O',
chr(195) . chr(150) => 'O', chr(195) . chr(153) => 'U',
chr(195) . chr(154) => 'U', chr(195) . chr(155) => 'U',
chr(195) . chr(156) => 'U', chr(195) . chr(157) => 'Y',
chr(195) . chr(159) => 's', chr(195) . chr(160) => 'a',
chr(195) . chr(161) => 'a', chr(195) . chr(162) => 'a',
chr(195) . chr(163) => 'a', chr(195) . chr(164) => 'a',
chr(195) . chr(165) => 'a', chr(195) . chr(167) => 'c',
chr(195) . chr(168) => 'e', chr(195) . chr(169) => 'e',
chr(195) . chr(170) => 'e', chr(195) . chr(171) => 'e',
chr(195) . chr(172) => 'i', chr(195) . chr(173) => 'i',
chr(195) . chr(174) => 'i', chr(195) . chr(175) => 'i',
chr(195) . chr(177) => 'n', chr(195) . chr(178) => 'o',
chr(195) . chr(179) => 'o', chr(195) . chr(180) => 'o',
chr(195) . chr(181) => 'o', chr(195) . chr(182) => 'o',
chr(195) . chr(182) => 'o', chr(195) . chr(185) => 'u',
chr(195) . chr(186) => 'u', chr(195) . chr(187) => 'u',
chr(195) . chr(188) => 'u', chr(195) . chr(189) => 'y',
chr(195) . chr(191) => 'y',
// Decompositions for Latin Extended-A
chr(196) . chr(128) => 'A', chr(196) . chr(129) => 'a',
chr(196) . chr(130) => 'A', chr(196) . chr(131) => 'a',
chr(196) . chr(132) => 'A', chr(196) . chr(133) => 'a',
chr(196) . chr(134) => 'C', chr(196) . chr(135) => 'c',
chr(196) . chr(136) => 'C', chr(196) . chr(137) => 'c',
chr(196) . chr(138) => 'C', chr(196) . chr(139) => 'c',
chr(196) . chr(140) => 'C', chr(196) . chr(141) => 'c',
chr(196) . chr(142) => 'D', chr(196) . chr(143) => 'd',
chr(196) . chr(144) => 'D', chr(196) . chr(145) => 'd',
chr(196) . chr(146) => 'E', chr(196) . chr(147) => 'e',
chr(196) . chr(148) => 'E', chr(196) . chr(149) => 'e',
chr(196) . chr(150) => 'E', chr(196) . chr(151) => 'e',
chr(196) . chr(152) => 'E', chr(196) . chr(153) => 'e',
chr(196) . chr(154) => 'E', chr(196) . chr(155) => 'e',
chr(196) . chr(156) => 'G', chr(196) . chr(157) => 'g',
chr(196) . chr(158) => 'G', chr(196) . chr(159) => 'g',
chr(196) . chr(160) => 'G', chr(196) . chr(161) => 'g',
chr(196) . chr(162) => 'G', chr(196) . chr(163) => 'g',
chr(196) . chr(164) => 'H', chr(196) . chr(165) => 'h',
chr(196) . chr(166) => 'H', chr(196) . chr(167) => 'h',
chr(196) . chr(168) => 'I', chr(196) . chr(169) => 'i',
chr(196) . chr(170) => 'I', chr(196) . chr(171) => 'i',
chr(196) . chr(172) => 'I', chr(196) . chr(173) => 'i',
chr(196) . chr(174) => 'I', chr(196) . chr(175) => 'i',
chr(196) . chr(176) => 'I', chr(196) . chr(177) => 'i',
chr(196) . chr(178) => 'IJ', chr(196) . chr(179) => 'ij',
chr(196) . chr(180) => 'J', chr(196) . chr(181) => 'j',
chr(196) . chr(182) => 'K', chr(196) . chr(183) => 'k',
chr(196) . chr(184) => 'k', chr(196) . chr(185) => 'L',
chr(196) . chr(186) => 'l', chr(196) . chr(187) => 'L',
chr(196) . chr(188) => 'l', chr(196) . chr(189) => 'L',
chr(196) . chr(190) => 'l', chr(196) . chr(191) => 'L',
chr(197) . chr(128) => 'l', chr(197) . chr(129) => 'L',
chr(197) . chr(130) => 'l', chr(197) . chr(131) => 'N',
chr(197) . chr(132) => 'n', chr(197) . chr(133) => 'N',
chr(197) . chr(134) => 'n', chr(197) . chr(135) => 'N',
chr(197) . chr(136) => 'n', chr(197) . chr(137) => 'N',
chr(197) . chr(138) => 'n', chr(197) . chr(139) => 'N',
chr(197) . chr(140) => 'O', chr(197) . chr(141) => 'o',
chr(197) . chr(142) => 'O', chr(197) . chr(143) => 'o',
chr(197) . chr(144) => 'O', chr(197) . chr(145) => 'o',
chr(197) . chr(146) => 'OE', chr(197) . chr(147) => 'oe',
chr(197) . chr(148) => 'R', chr(197) . chr(149) => 'r',
chr(197) . chr(150) => 'R', chr(197) . chr(151) => 'r',
chr(197) . chr(152) => 'R', chr(197) . chr(153) => 'r',
chr(197) . chr(154) => 'S', chr(197) . chr(155) => 's',
chr(197) . chr(156) => 'S', chr(197) . chr(157) => 's',
chr(197) . chr(158) => 'S', chr(197) . chr(159) => 's',
chr(197) . chr(160) => 'S', chr(197) . chr(161) => 's',
chr(197) . chr(162) => 'T', chr(197) . chr(163) => 't',
chr(197) . chr(164) => 'T', chr(197) . chr(165) => 't',
chr(197) . chr(166) => 'T', chr(197) . chr(167) => 't',
chr(197) . chr(168) => 'U', chr(197) . chr(169) => 'u',
chr(197) . chr(170) => 'U', chr(197) . chr(171) => 'u',
chr(197) . chr(172) => 'U', chr(197) . chr(173) => 'u',
chr(197) . chr(174) => 'U', chr(197) . chr(175) => 'u',
chr(197) . chr(176) => 'U', chr(197) . chr(177) => 'u',
chr(197) . chr(178) => 'U', chr(197) . chr(179) => 'u',
chr(197) . chr(180) => 'W', chr(197) . chr(181) => 'w',
chr(197) . chr(182) => 'Y', chr(197) . chr(183) => 'y',
chr(197) . chr(184) => 'Y', chr(197) . chr(185) => 'Z',
chr(197) . chr(186) => 'z', chr(197) . chr(187) => 'Z',
chr(197) . chr(188) => 'z', chr(197) . chr(189) => 'Z',
chr(197) . chr(190) => 'z', chr(197) . chr(191) => 's',
// Euro Sign
chr(226) . chr(130) . chr(172) => 'E',
// GBP (Pound) Sign
chr(194) . chr(163) => '');
$string = strtr($string, $chars);
} else {
// Assume ISO-8859-1 if not UTF-8
$chars['in'] = chr(128) . chr(131) . chr(138) . chr(142) . chr(154) . chr(158)
. chr(159) . chr(162) . chr(165) . chr(181) . chr(192) . chr(193) . chr(194)
. chr(195) . chr(196) . chr(197) . chr(199) . chr(200) . chr(201) . chr(202)
. chr(203) . chr(204) . chr(205) . chr(206) . chr(207) . chr(209) . chr(210)
. chr(211) . chr(212) . chr(213) . chr(214) . chr(216) . chr(217) . chr(218)
. chr(219) . chr(220) . chr(221) . chr(224) . chr(225) . chr(226) . chr(227)
. chr(228) . chr(229) . chr(231) . chr(232) . chr(233) . chr(234) . chr(235)
. chr(236) . chr(237) . chr(238) . chr(239) . chr(241) . chr(242) . chr(243)
. chr(244) . chr(245) . chr(246) . chr(248) . chr(249) . chr(250) . chr(251)
. chr(252) . chr(253) . chr(255);
$chars['out'] = 'EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy';
$string = strtr($string, $chars['in'], $chars['out']);
$double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254));
$double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th');
$string = str_replace($double_chars['in'], $double_chars['out'], $string);
}
return $string;
}
/**
* @param string $text
* @return string
*/
function diacritics_remove_diacritics($text)
{
$trans = array(
'À' => 'A', 'Á' => 'A', 'Â' => 'A', 'Ã' => 'A', 'Ä' => 'A', 'Å' => 'A', 'Ç' => 'C', 'È' => 'E',
'É' => 'E', 'Ê' => 'E', 'Ë' => 'E', 'Ì' => 'I', 'Í' => 'I', 'Î' => 'I', 'Ï' => 'I', 'Ñ' => 'N',
'Ò' => 'O', 'Ó' => 'O', 'Ô' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ø' => 'O', 'Ù' => 'U', 'Ú' => 'U',
'Û' => 'U', 'Ü' => 'U', 'Ý' => 'Y', 'à' => 'a', 'á' => 'a', 'â' => 'a', 'ã' => 'a', 'ä' => 'a',
'å' => 'a', 'ç' => 'c', 'è' => 'e', 'é' => 'e', 'ê' => 'e', 'ë' => 'e', 'ì' => 'i', 'í' => 'i',
'î' => 'i', 'ï' => 'i', 'ñ' => 'n', 'ò' => 'o', 'ó' => 'o', 'ô' => 'o', 'õ' => 'o', 'ö' => 'o',
'ø' => 'o', 'ù' => 'u', 'ú' => 'u', 'û' => 'u', 'ü' => 'u', 'ý' => 'y', 'ÿ' => 'y', 'Ā' => 'A',
'ā' => 'a', 'Ă' => 'A', 'ă' => 'a', 'Ą' => 'A', 'ą' => 'a', 'Ć' => 'C', 'ć' => 'c', 'Ĉ' => 'C',
'ĉ' => 'c', 'Ċ' => 'C', 'ċ' => 'c', 'Č' => 'C', 'č' => 'c', 'Ď' => 'D', 'ď' => 'd', 'Đ' => 'D',
'đ' => 'd', 'Ē' => 'E', 'ē' => 'e', 'Ĕ' => 'E', 'ĕ' => 'e', 'Ė' => 'E', 'ė' => 'e', 'Ę' => 'E',
'ę' => 'e', 'Ě' => 'E', 'ě' => 'e', 'Ĝ' => 'G', 'ĝ' => 'g', 'Ğ' => 'G', 'ğ' => 'g', 'Ġ' => 'G',
'ġ' => 'g', 'Ģ' => 'G', 'ģ' => 'g', 'Ĥ' => 'H', 'ĥ' => 'h', 'Ħ' => 'H', 'ħ' => 'h', 'Ĩ' => 'I',
'ĩ' => 'i', 'Ī' => 'I', 'ī' => 'i', 'Ĭ' => 'I', 'ĭ' => 'i', 'Į' => 'I', 'į' => 'i', 'İ' => 'I',
'ı' => 'i', 'Ĵ' => 'J', 'ĵ' => 'j', 'Ķ' => 'K', 'ķ' => 'k', 'Ĺ' => 'L', 'ĺ' => 'l', 'Ļ' => 'L',
'ļ' => 'l', 'Ľ' => 'L', 'ľ' => 'l', 'Ŀ' => 'L', 'ŀ' => 'l', 'Ł' => 'L', 'ł' => 'l', 'Ń' => 'N',
'ń' => 'n', 'Ņ' => 'N', 'ņ' => 'n', 'Ň' => 'N', 'ň' => 'n', 'ʼn' => 'n', 'Ō' => 'O', 'ō' => 'o',
'Ŏ' => 'O', 'ŏ' => 'o', 'Ő' => 'O', 'ő' => 'o', 'Ŕ' => 'R', 'ŕ' => 'r', 'Ŗ' => 'R', 'ŗ' => 'r',
'Ř' => 'R', 'ř' => 'r', 'Ś' => 'S', 'ś' => 's', 'Ŝ' => 'S', 'ŝ' => 's', 'Ş' => 'S', 'ş' => 's',
'Š' => 'S', 'š' => 's', 'Ţ' => 'T', 'ţ' => 't', 'Ť' => 'T', 'ť' => 't', 'Ŧ' => 'T', 'ŧ' => 't',
'Ũ' => 'U', 'ũ' => 'u', 'Ū' => 'U', 'ū' => 'u', 'Ŭ' => 'U', 'ŭ' => 'u', 'Ů' => 'U', 'ů' => 'u',
'Ű' => 'U', 'ű' => 'u', 'Ų' => 'U', 'ų' => 'u', 'Ŵ' => 'W', 'ŵ' => 'w', 'Ŷ' => 'Y', 'ŷ' => 'y',
'Ÿ' => 'Y', 'Ź' => 'Z', 'ź' => 'z', 'Ż' => 'Z', 'ż' => 'z', 'Ž' => 'Z', 'ž' => 'z', 'ƀ' => 'b',
'Ɓ' => 'B', 'Ƃ' => 'B', 'ƃ' => 'b', 'Ƈ' => 'C', 'ƈ' => 'c', 'Ɗ' => 'D', 'Ƌ' => 'D', 'ƌ' => 'd',
'Ƒ' => 'F', 'ƒ' => 'f', 'Ɠ' => 'G', 'Ɨ' => 'I', 'Ƙ' => 'K', 'ƙ' => 'k', 'ƚ' => 'l', 'Ɲ' => 'N',
'ƞ' => 'n', 'Ɵ' => 'O', 'Ơ' => 'O', 'ơ' => 'o', 'Ƥ' => 'P', 'ƥ' => 'p', 'ƫ' => 't', 'Ƭ' => 'T',
'ƭ' => 't', 'Ʈ' => 'T', 'Ư' => 'U', 'ư' => 'u', 'Ʋ' => 'V', 'Ƴ' => 'Y', 'ƴ' => 'y', 'Ƶ' => 'Z',
'ƶ' => 'z', 'Dž' => 'D', 'Lj' => 'L', 'Nj' => 'N', 'Ǎ' => 'A', 'ǎ' => 'a', 'Ǐ' => 'I', 'ǐ' => 'i',
'Ǒ' => 'O', 'ǒ' => 'o', 'Ǔ' => 'U', 'ǔ' => 'u', 'Ǖ' => 'U', 'ǖ' => 'u', 'Ǘ' => 'U', 'ǘ' => 'u',
'Ǚ' => 'U', 'ǚ' => 'u', 'Ǜ' => 'U', 'ǜ' => 'u', 'Ǟ' => 'A', 'ǟ' => 'a', 'Ǡ' => 'A', 'ǡ' => 'a',
'Ǥ' => 'G', 'ǥ' => 'g', 'Ǧ' => 'G', 'ǧ' => 'g', 'Ǩ' => 'K', 'ǩ' => 'k', 'Ǫ' => 'O', 'ǫ' => 'o',
'Ǭ' => 'O', 'ǭ' => 'o', 'ǰ' => 'j', 'Dz' => 'D', 'Ǵ' => 'G', 'ǵ' => 'g', 'Ǹ' => 'N', 'ǹ' => 'n',
'Ǻ' => 'A', 'ǻ' => 'a', 'Ǿ' => 'O', 'ǿ' => 'o', 'Ȁ' => 'A', 'ȁ' => 'a', 'Ȃ' => 'A', 'ȃ' => 'a',
'Ȅ' => 'E', 'ȅ' => 'e', 'Ȇ' => 'E', 'ȇ' => 'e', 'Ȉ' => 'I', 'ȉ' => 'i', 'Ȋ' => 'I', 'ȋ' => 'i',
'Ȍ' => 'O', 'ȍ' => 'o', 'Ȏ' => 'O', 'ȏ' => 'o', 'Ȑ' => 'R', 'ȑ' => 'r', 'Ȓ' => 'R', 'ȓ' => 'r',
'Ȕ' => 'U', 'ȕ' => 'u', 'Ȗ' => 'U', 'ȗ' => 'u', 'Ș' => 'S', 'ș' => 's', 'Ț' => 'T', 'ț' => 't',
'Ȟ' => 'H', 'ȟ' => 'h', 'Ƞ' => 'N', 'ȡ' => 'd', 'Ȥ' => 'Z', 'ȥ' => 'z', 'Ȧ' => 'A', 'ȧ' => 'a',
'Ȩ' => 'E', 'ȩ' => 'e', 'Ȫ' => 'O', 'ȫ' => 'o', 'Ȭ' => 'O', 'ȭ' => 'o', 'Ȯ' => 'O', 'ȯ' => 'o',
'Ȱ' => 'O', 'ȱ' => 'o', 'Ȳ' => 'Y', 'ȳ' => 'y', 'ȴ' => 'l', 'ȵ' => 'n', 'ȶ' => 't', 'ȷ' => 'j',
'Ⱥ' => 'A', 'Ȼ' => 'C', 'ȼ' => 'c', 'Ƚ' => 'L', 'Ⱦ' => 'T', 'ȿ' => 's', 'ɀ' => 'z', 'Ƀ' => 'B',
'Ʉ' => 'U', 'Ɇ' => 'E', 'ɇ' => 'e', 'Ɉ' => 'J', 'ɉ' => 'j', 'ɋ' => 'q', 'Ɍ' => 'R', 'ɍ' => 'r',
'Ɏ' => 'Y', 'ɏ' => 'y', 'ɓ' => 'b', 'ɕ' => 'c', 'ɖ' => 'd', 'ɗ' => 'd', 'ɟ' => 'j', 'ɠ' => 'g',
'ɦ' => 'h', 'ɨ' => 'i', 'ɫ' => 'l', 'ɬ' => 'l', 'ɭ' => 'l', 'ɱ' => 'm', 'ɲ' => 'n', 'ɳ' => 'n',
'ɵ' => 'o', 'ɼ' => 'r', 'ɽ' => 'r', 'ɾ' => 'r', 'ʂ' => 's', 'ʄ' => 'j', 'ʈ' => 't', 'ʉ' => 'u',
'ʋ' => 'v', 'ʐ' => 'z', 'ʑ' => 'z', 'ʝ' => 'j', 'ʠ' => 'q', 'ͣ' => 'a', 'ͤ' => 'e', 'ͥ' => 'i',
'ͦ' => 'o', 'ͧ' => 'u', 'ͨ' => 'c', 'ͩ' => 'd', 'ͪ' => 'h', 'ͫ' => 'm', 'ͬ' => 'r', 'ͭ' => 't',
'ͮ' => 'v', 'ͯ' => 'x', 'ᵢ' => 'i', 'ᵣ' => 'r', 'ᵤ' => 'u', 'ᵥ' => 'v', 'ᵬ' => 'b', 'ᵭ' => 'd',
'ᵮ' => 'f', 'ᵯ' => 'm', 'ᵰ' => 'n', 'ᵱ' => 'p', 'ᵲ' => 'r', 'ᵳ' => 'r', 'ᵴ' => 's', 'ᵵ' => 't',
'ᵶ' => 'z', 'ᵻ' => 'i', 'ᵽ' => 'p', 'ᵾ' => 'u', 'ᶀ' => 'b', 'ᶁ' => 'd', 'ᶂ' => 'f', '' => 'g',
'ᶄ' => 'k', 'ᶅ' => 'l', 'ᶆ' => 'm', 'ᶇ' => 'n', 'ᶈ' => 'p', 'ᶉ' => 'r', 'ᶊ' => 's', '' => 'v',
'ᶍ' => 'x', 'ᶎ' => 'z', 'ᶏ' => 'a', 'ᶑ' => 'd', 'ᶒ' => 'e', 'ᶖ' => 'i', 'ᶙ' => 'u', '᷊' => 'r',
'ᷗ' => 'c', 'ᷚ' => 'g', 'ᷜ' => 'k', 'ᷝ' => 'l', 'ᷠ' => 'n', 'ᷣ' => 'r', 'ᷤ' => 's', 'ᷦ' => 'z',
'Ḁ' => 'A', 'ḁ' => 'a', 'Ḃ' => 'B', 'ḃ' => 'b', 'Ḅ' => 'B', 'ḅ' => 'b', 'Ḇ' => 'B', 'ḇ' => 'b',
'Ḉ' => 'C', 'ḉ' => 'c', 'Ḋ' => 'D', 'ḋ' => 'd', 'Ḍ' => 'D', 'ḍ' => 'd', 'Ḏ' => 'D', 'ḏ' => 'd',
'Ḑ' => 'D', 'ḑ' => 'd', 'Ḓ' => 'D', 'ḓ' => 'd', 'Ḕ' => 'E', 'ḕ' => 'e', 'Ḗ' => 'E', 'ḗ' => 'e',
'Ḙ' => 'E', 'ḙ' => 'e', 'Ḛ' => 'E', 'ḛ' => 'e', 'Ḝ' => 'E', 'ḝ' => 'e', 'Ḟ' => 'F', 'ḟ' => 'f',
'Ḡ' => 'G', 'ḡ' => 'g', 'Ḣ' => 'H', 'ḣ' => 'h', 'Ḥ' => 'H', 'ḥ' => 'h', 'Ḧ' => 'H', 'ḧ' => 'h',
'Ḩ' => 'H', 'ḩ' => 'h', 'Ḫ' => 'H', 'ḫ' => 'h', 'Ḭ' => 'I', 'ḭ' => 'i', 'Ḯ' => 'I', 'ḯ' => 'i',
'Ḱ' => 'K', 'ḱ' => 'k', 'Ḳ' => 'K', 'ḳ' => 'k', 'Ḵ' => 'K', 'ḵ' => 'k', 'Ḷ' => 'L', 'ḷ' => 'l',
'Ḹ' => 'L', 'ḹ' => 'l', 'Ḻ' => 'L', 'ḻ' => 'l', 'Ḽ' => 'L', 'ḽ' => 'l', 'Ḿ' => 'M', 'ḿ' => 'm',
'Ṁ' => 'M', 'ṁ' => 'm', 'Ṃ' => 'M', 'ṃ' => 'm', 'Ṅ' => 'N', 'ṅ' => 'n', 'Ṇ' => 'N', 'ṇ' => 'n',
'Ṉ' => 'N', 'ṉ' => 'n', 'Ṋ' => 'N', 'ṋ' => 'n', 'Ṍ' => 'O', 'ṍ' => 'o', 'Ṏ' => 'O', 'ṏ' => 'o',
'Ṑ' => 'O', 'ṑ' => 'o', 'Ṓ' => 'O', 'ṓ' => 'o', 'Ṕ' => 'P', 'ṕ' => 'p', 'Ṗ' => 'P', 'ṗ' => 'p',
'Ṙ' => 'R', 'ṙ' => 'r', 'Ṛ' => 'R', 'ṛ' => 'r', 'Ṝ' => 'R', 'ṝ' => 'r', 'Ṟ' => 'R', 'ṟ' => 'r',
'Ṡ' => 'S', 'ṡ' => 's', 'Ṣ' => 'S', 'ṣ' => 's', 'Ṥ' => 'S', 'ṥ' => 's', 'Ṧ' => 'S', 'ṧ' => 's',
'Ṩ' => 'S', 'ṩ' => 's', 'Ṫ' => 'T', 'ṫ' => 't', 'Ṭ' => 'T', 'ṭ' => 't', 'Ṯ' => 'T', 'ṯ' => 't',
'Ṱ' => 'T', 'ṱ' => 't', 'Ṳ' => 'U', 'ṳ' => 'u', 'Ṵ' => 'U', 'ṵ' => 'u', 'Ṷ' => 'U', 'ṷ' => 'u',
'Ṹ' => 'U', 'ṹ' => 'u', 'Ṻ' => 'U', 'ṻ' => 'u', 'Ṽ' => 'V', 'ṽ' => 'v', 'Ṿ' => 'V', 'ṿ' => 'v',
'Ẁ' => 'W', 'ẁ' => 'w', 'Ẃ' => 'W', 'ẃ' => 'w', 'Ẅ' => 'W', 'ẅ' => 'w', 'Ẇ' => 'W', 'ẇ' => 'w',
'Ẉ' => 'W', 'ẉ' => 'w', 'Ẋ' => 'X', 'ẋ' => 'x', 'Ẍ' => 'X', 'ẍ' => 'x', 'Ẏ' => 'Y', 'ẏ' => 'y',
'Ẑ' => 'Z', 'ẑ' => 'z', 'Ẓ' => 'Z', 'ẓ' => 'z', 'Ẕ' => 'Z', 'ẕ' => 'z', 'ẖ' => 'h', 'ẗ' => 't',
'ẘ' => 'w', 'ẙ' => 'y', 'ẚ' => 'a', 'Ạ' => 'A', 'ạ' => 'a', 'Ả' => 'A', 'ả' => 'a', 'Ấ' => 'A',
'ấ' => 'a', 'Ầ' => 'A', 'ầ' => 'a', 'Ẩ' => 'A', 'ẩ' => 'a', 'Ẫ' => 'A', 'ẫ' => 'a', 'Ậ' => 'A',
'ậ' => 'a', 'Ắ' => 'A', 'ắ' => 'a', 'Ằ' => 'A', 'ằ' => 'a', 'Ẳ' => 'A', 'ẳ' => 'a', 'Ẵ' => 'A',
'ẵ' => 'a', 'Ặ' => 'A', 'ặ' => 'a', 'Ẹ' => 'E', 'ẹ' => 'e', 'Ẻ' => 'E', 'ẻ' => 'e', 'Ẽ' => 'E',
'ẽ' => 'e', 'Ế' => 'E', 'ế' => 'e', 'Ề' => 'E', 'ề' => 'e', 'Ể' => 'E', 'ể' => 'e', 'Ễ' => 'E',
'ễ' => 'e', 'Ệ' => 'E', 'ệ' => 'e', 'Ỉ' => 'I', 'ỉ' => 'i', 'Ị' => 'I', 'ị' => 'i', 'Ọ' => 'O',
'ọ' => 'o', 'Ỏ' => 'O', 'ỏ' => 'o', 'Ố' => 'O', 'ố' => 'o', 'Ồ' => 'O', 'ồ' => 'o', 'Ổ' => 'O',
'ổ' => 'o', 'Ỗ' => 'O', 'ỗ' => 'o', 'Ộ' => 'O', 'ộ' => 'o', 'Ớ' => 'O', 'ớ' => 'o', 'Ờ' => 'O',
'ờ' => 'o', 'Ở' => 'O', 'ở' => 'o', 'Ỡ' => 'O', 'ỡ' => 'o', 'Ợ' => 'O', 'ợ' => 'o', 'Ụ' => 'U',
'ụ' => 'u', 'Ủ' => 'U', 'ủ' => 'u', 'Ứ' => 'U', 'ứ' => 'u', 'Ừ' => 'U', 'ừ' => 'u', 'Ử' => 'U',
'ử' => 'u', 'Ữ' => 'U', 'ữ' => 'u', 'Ự' => 'U', 'ự' => 'u', 'Ỳ' => 'Y', 'ỳ' => 'y', 'Ỵ' => 'Y',
'ỵ' => 'y', 'Ỷ' => 'Y', 'ỷ' => 'y', 'Ỹ' => 'Y', 'ỹ' => 'y', 'Ỿ' => 'Y', 'ỿ' => 'y', 'ⁱ' => 'i',
'ⁿ' => 'n', 'ₐ' => 'a', 'ₑ' => 'e', 'ₒ' => 'o', 'ₓ' => 'x', '⒜' => 'a', '⒝' => 'b', '⒞' => 'c',
'⒟' => 'd', '⒠' => 'e', '⒡' => 'f', '⒢' => 'g', '⒣' => 'h', '⒤' => 'i', '⒥' => 'j', '⒦' => 'k',
'⒧' => 'l', '⒨' => 'm', '⒩' => 'n', '⒪' => 'o', '⒫' => 'p', '⒬' => 'q', '⒭' => 'r', '⒮' => 's',
'⒯' => 't', '⒰' => 'u', '⒱' => 'v', '⒲' => 'w', '⒳' => 'x', '⒴' => 'y', '⒵' => 'z', 'Ⓐ' => 'A',
'Ⓑ' => 'B', 'Ⓒ' => 'C', 'Ⓓ' => 'D', 'Ⓔ' => 'E', 'Ⓕ' => 'F', 'Ⓖ' => 'G', 'Ⓗ' => 'H', 'Ⓘ' => 'I',
'Ⓙ' => 'J', 'Ⓚ' => 'K', 'Ⓛ' => 'L', 'Ⓜ' => 'M', 'Ⓝ' => 'N', 'Ⓞ' => 'O', 'Ⓟ' => 'P', 'Ⓠ' => 'Q',
'Ⓡ' => 'R', 'Ⓢ' => 'S', 'Ⓣ' => 'T', 'Ⓤ' => 'U', 'Ⓥ' => 'V', 'Ⓦ' => 'W', 'Ⓧ' => 'X', 'Ⓨ' => 'Y',
'Ⓩ' => 'Z', 'ⓐ' => 'a', 'ⓑ' => 'b', 'ⓒ' => 'c', 'ⓓ' => 'd', 'ⓔ' => 'e', 'ⓕ' => 'f', 'ⓖ' => 'g',
'ⓗ' => 'h', 'ⓘ' => 'i', 'ⓙ' => 'j', 'ⓚ' => 'k', 'ⓛ' => 'l', 'ⓜ' => 'm', 'ⓝ' => 'n', 'ⓞ' => 'o',
'ⓟ' => 'p', 'ⓠ' => 'q', 'ⓡ' => 'r', 'ⓢ' => 's', 'ⓣ' => 't', 'ⓤ' => 'u', 'ⓥ' => 'v', 'ⓦ' => 'w',
'ⓧ' => 'x', 'ⓨ' => 'y', 'ⓩ' => 'z', 'Ⱡ' => 'L', 'ⱡ' => 'l', 'Ɫ' => 'L', 'Ᵽ' => 'P', 'Ɽ' => 'R',
'ⱥ' => 'a', 'ⱦ' => 't', 'Ⱨ' => 'H', 'ⱨ' => 'h', 'Ⱪ' => 'K', 'ⱪ' => 'k', 'Ⱬ' => 'Z', 'ⱬ' => 'z',
'Ɱ' => 'M', 'ⱱ' => 'v', 'Ⱳ' => 'W', 'ⱳ' => 'w', 'ⱴ' => 'v', 'ⱸ' => 'e', 'ⱺ' => 'o', 'ⱼ' => 'j',
'Ꝁ' => 'K', 'ꝁ' => 'k', 'Ꝃ' => 'K', 'ꝃ' => 'k', 'Ꝅ' => 'K', 'ꝅ' => 'k', 'Ꝉ' => 'L', 'ꝉ' => 'l',
'Ꝋ' => 'O', 'ꝋ' => 'o', 'Ꝍ' => 'O', 'ꝍ' => 'o', 'Ꝑ' => 'P', 'ꝑ' => 'p', 'Ꝓ' => 'P', 'ꝓ' => 'p',
'Ꝕ' => 'P', 'ꝕ' => 'p', 'Ꝗ' => 'Q', 'ꝗ' => 'q', 'Ꝙ' => 'Q', 'ꝙ' => 'q', '' => 'R', 'ꝛ' => 'r',
'Ꝟ' => 'V', 'ꝟ' => 'v', '' => 'A', '' => 'B', '' => 'C', '' => 'D', '' => 'E', '' => 'F',
'' => 'G', '' => 'H', '' => 'I', '' => 'J', '' => 'K', '' => 'L', '' => 'M', '' => 'N',
'' => 'O', '' => 'P', '' => 'Q', '' => 'R', '' => 'S', '' => 'T', '' => 'U', '' => 'V',
'' => 'W', '' => 'X', '' => 'Y', '' => 'Z', '' => 'a', '' => 'b', '' => 'c', '' => 'd',
'' => 'e', '' => 'f', '' => 'g', '' => 'h', '' => 'i', '' => 'j', '' => 'k', '' => 'l',
'' => 'm', '' => 'n', '' => 'o', '' => 'p', '' => 'q', '' => 'r', '' => 's', '' => 't',
'' => 'u', '' => 'v', '' => 'w', '' => 'x', '' => 'y', '' => 'z');
return strtr($text, $trans);
}

View File

@ -0,0 +1,53 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Shorthand for htmlspecialchars()
* @param $output
* @return string
*/
function htmlsc($output)
{
return htmlspecialchars($output, ENT_QUOTES);
}
/**
* Echo something with escaped HTML special chars
*
* @param mixed $output
*/
function _htmlsc($output)
{
echo htmlspecialchars($output, ENT_QUOTES);
}
/**
* Echo something with escaped HTML entities
*
* @param mixed $output
*/
function _htmle($output)
{
echo htmlentities($output);
}
/**
* Echo a language string with the trans helper
*
* @param string $line
* @param string $id
* @param null|string $default
*/
function _trans($line, $id = '', $default = null)
{
echo trans($line, $id, $default);
}

View File

@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>

View File

@ -0,0 +1,107 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Returns the invoice image
*
* @return string
*/
function invoice_logo()
{
$CI = &get_instance();
if ($CI->mdl_settings->setting('invoice_logo')) {
return '<img src="' . base_url() . 'uploads/' . $CI->mdl_settings->setting('invoice_logo') . '">';
}
return '';
}
/**
* Returns the invoice logo for PDF files
*
* @return string
*/
function invoice_logo_pdf()
{
$CI = &get_instance();
if ($CI->mdl_settings->setting('invoice_logo')) {
return '<img src="' . getcwd() . '/uploads/' . $CI->mdl_settings->setting('invoice_logo') . '" id="invoice-logo">';
}
return '';
}
/**
* Returns a Swiss IS / IS+ code line
* Documentation: https://www.postfinance.ch/binp/postfinance/public/dam.M26m_i6_6ceYcN2XtAN4w8OHMynQG7FKxJVK8TtQzr0.spool/content/dam/pf/de/doc/consult/manual/dlserv/inpayslip_isr_man_en.pdf
*
* @param string $slipType
* @param $amount
* @param string $rnumb
* @param $subNumb
* @return string
* @throws Error
*/
function invoice_genCodeline($slipType, $amount, $rnumb, $subNumb)
{
$isEur = false;
if ((int)$slipType > 14) {
$isEur = true;
} else {
$amount = .5 * round((float)$amount / .5, 1);
}
if (!$isEur && $amount > 99999999.95) {
throw new Error("Invalid amount");
} elseif ($isEur && $amount > 99999999.99) {
throw new Error("Invalid amount");
}
$amountLine = sprintf("%010d", $amount * 100);
$checkSlAmount = invoice_recMod10($slipType . $amountLine);
if (!preg_match("/\d{2}-\d{1,6}-\d{1}/", $subNumb)) {
throw new Error("Invalid subscriber number");
}
$subNumb = explode("-", $subNumb);
$fullSub = $subNumb[0] . sprintf("%06d", $subNumb[1]) . $subNumb[2];
$rnumb = preg_replace('/\s+/', '', $rnumb);
return $slipType . $amountLine . $checkSlAmount . ">" . $rnumb . "+ " . $fullSub . ">";
}
/**
* Calculate checksum using Recursive Mod10
* See https://www.postfinance.ch/binp/postfinance/public/dam.Ii-X5NgtAixO8cQPvja46blV6d7cZCyGUscxO15L5S8.spool/content/dam/pf/de/doc/consult/manual/dldata/efin_recdescr_man_en.pdf
* Page 5
*
* @param string $in
* @return integer
*/
function invoice_recMod10($in)
{
$line = [0, 9, 4, 6, 8, 2, 7, 1, 3, 5];
$carry = 0;
$chars = str_split($in);
foreach ($chars as $char) {
$carry = $line[($carry + intval($char)) % 10];
}
return (10 - $carry) % 10;
}

View File

@ -0,0 +1,30 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Returns all errors prepared for JSON
* @return array
*/
function json_errors()
{
// Think of a better name for this function. It doesn't return
// json itself but is called from something which will.
$return = array();
foreach (array_keys($_POST) as $key) {
if (form_error($key)) {
$return[$key] = form_error($key);
}
}
return $return;
}

View File

@ -0,0 +1,142 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Check if mail sending is configured in the settings
*
* @return bool
*/
function mailer_configured()
{
$CI = &get_instance();
return (($CI->mdl_settings->setting('email_send_method') == 'phpmail') ||
($CI->mdl_settings->setting('email_send_method') == 'sendmail') ||
(($CI->mdl_settings->setting('email_send_method') == 'smtp') && ($CI->mdl_settings->setting('smtp_server_address')))
);
}
/**
* Send an invoice via email
*
* @param $invoice_id
* @param $invoice_template
* @param $from
* @param $to
* @param $subject
* @param string $body
* @param null $cc
* @param null $bcc
* @param null $attachments
* @return bool
*/
function email_invoice($invoice_id, $invoice_template, $from, $to, $subject, $body, $cc = null, $bcc = null, $attachments = null)
{
$CI = &get_instance();
$CI->load->helper('mailer/phpmailer');
$CI->load->helper('template');
$CI->load->helper('invoice');
$CI->load->helper('pdf');
$db_invoice = $CI->mdl_invoices->where('ip_invoices.invoice_id', $invoice_id)->get()->row();
if ($db_invoice->sumex_id == null) {
$invoice = generate_invoice_pdf($invoice_id, false, $invoice_template);
} else {
$invoice = generate_invoice_sumex($invoice_id, false, true);
}
$message = parse_template($db_invoice, $body, $invoice_id);
$subject = parse_template($db_invoice, $subject, $invoice_id);
$cc = parse_template($db_invoice, $cc, $invoice_id);
$bcc = parse_template($db_invoice, $bcc, $invoice_id);
$from = array(parse_template($db_invoice, $from[0], $invoice_id), parse_template($db_invoice, $from[1], $invoice_id));
$message = (empty($message) ? ' ' : $message);
return phpmail_send($from, $to, $subject, $message, $invoice, $cc, $bcc, $attachments);
}
/**
* Send a quote via email
*
* @param $quote_id
* @param $quote_template
* @param $from
* @param $to
* @param $subject
* @param string $body
* @param null $cc
* @param null $bcc
* @param null $attachments
* @return bool
*/
function email_quote($quote_id, $quote_template, $from, $to, $subject, $body, $cc = null, $bcc = null, $attachments = null)
{
$CI = &get_instance();
$CI->load->helper('mailer/phpmailer');
$CI->load->helper('template');
$CI->load->helper('pdf');
$quote = generate_quote_pdf($quote_id, false, $quote_template);
$db_quote = $CI->mdl_quotes->where('ip_quotes.quote_id', $quote_id)->get()->row();
$message = parse_template($db_quote, $body, $quote_id);
$subject = parse_template($db_quote, $subject, $quote_id);
$cc = parse_template($db_quote, $cc, $quote_id);
$bcc = parse_template($db_quote, $bcc, $quote_id);
$from = array(parse_template($db_quote, $from[0], $quote_id), parse_template($db_quote, $from[1], $quote_id));
$message = (empty($message) ? ' ' : $message);
return phpmail_send($from, $to, $subject, $message, $quote, $cc, $bcc, $attachments);
}
/**
* Send an email if the status of an email changed
* @param $quote_id
* @param string $status string "accepted" or "rejected"
* @return bool if the email was sent
*/
function email_quote_status($quote_id, $status)
{
ini_set('display_errors', 'on');
error_reporting(E_ALL);
if (!mailer_configured()) {
return false;
}
$CI = &get_instance();
$CI->load->helper('mailer/phpmailer');
$quote = $CI->mdl_quotes->where('ip_quotes.quote_id', $quote_id)->get()->row();
$base_url = base_url('/quotes/view/' . $quote_id);
$user_email = $quote->user_email;
$subject = sprintf(trans('quote_status_email_subject'),
$quote->client_name,
strtolower(lang($status)),
$quote->quote_number
);
$body = sprintf(nl2br(trans('quote_status_email_body')),
$quote->client_name,
strtolower(lang($status)),
$quote->quote_number,
'<a href="' . $base_url . '">' . $base_url . '</a>'
);
return phpmail_send($user_email, $user_email, $subject, $body);
}

View File

@ -0,0 +1,126 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Create a PDF
*
* @param $html
* @param string $filename
* @param bool $stream
* @param null $password
* @param boolean $isInvoice
* @param null $is_guest
* @param bool $zugferd_invoice
* @param null $associated_files
* @return string
*/
function pdf_create($html, $filename, $stream = true, $password = null, $isInvoice = null, $is_guest = null, $zugferd_invoice = false, $associated_files = null)
{
$CI = &get_instance();
// Get the invoice from the archive if available
$invoice_array = array();
// mPDF loading
if (!defined('_MPDF_TEMP_PATH')) {
define('_MPDF_TEMP_PATH', FCPATH . 'uploads/temp/mpdf/');
define('_MPDF_TTFONTDATAPATH', FCPATH . 'uploads/temp/mpdf/');
}
$mpdf = new \Mpdf\Mpdf();
// mPDF configuration
$mpdf->useAdobeCJK = true;
$mpdf->autoScriptToLang = true;
if (IP_DEBUG) {
// Enable image error logging
$mpdf->showImageErrors = true;
}
// Include zugferd if enabled
if ($zugferd_invoice) {
$CI->load->helper('zugferd');
$mpdf->PDFA = true;
$mpdf->PDFAauto = true;
$mpdf->SetAdditionalXmpRdf(zugferd_rdf());
$mpdf->SetAssociatedFiles($associated_files);
}
// Set a password if set for the voucher
if (!empty($password)) {
$mpdf->SetProtection(array('copy', 'print'), $password, $password);
}
// Check if the archive folder is available
if (!(is_dir('./uploads/archive/') || is_link('./uploads/archive/'))) {
mkdir('./uploads/archive/', '0777');
}
// Set the footer if voucher is invoice and if set in settings
if (!empty($CI->mdl_settings->settings['pdf_invoice_footer'])) {
$mpdf->setAutoBottomMargin = 'stretch';
$mpdf->SetHTMLFooter('<div id="footer">' . $CI->mdl_settings->settings['pdf_invoice_footer'] . '</div>');
}
$mpdf->WriteHTML($html);
if ($isInvoice) {
foreach (glob(UPLOADS_FOLDER . 'archive/*' . $filename . '.pdf') as $file) {
array_push($invoice_array, $file);
}
if (!empty($invoice_array) && !is_null($is_guest)) {
rsort($invoice_array);
if ($stream) {
return $mpdf->Output($filename . '.pdf', 'I');
} else {
return $invoice_array[0];
}
}
$archived_file = UPLOADS_FOLDER . 'archive/' . date('Y-m-d') . '_' . $filename . '.pdf';
$mpdf->Output($archived_file, 'F');
if ($stream) {
return $mpdf->Output($filename . '.pdf', 'I');
} else {
return $archived_file;
}
}
// If $stream is true (default) the PDF will be displayed directly in the browser
// otherwise will be returned as a download
if ($stream) {
return $mpdf->Output($filename . '.pdf', 'I');
} else {
$mpdf->Output(UPLOADS_FOLDER . 'temp/' . $filename . '.pdf', 'F');
// Housekeeping
// Delete any files in temp/ directory that are >1 hrs old
$interval = 3600;
if ($handle = @opendir(preg_replace('/\/$/', '', './uploads/temp/'))) {
while (false !== ($file = readdir($handle))) {
if (($file != '..') && ($file != '.') && !is_dir($file) && ((filemtime('./uploads/temp/' . $file) + $interval) < time()) && (substr($file, 0, 1) !== '.') && ($file != 'remove.txt')) { // mPDF 5.7.3
unlink(UPLOADS_FOLDER . 'temp/' . $file);
}
}
closedir($handle);
}
return UPLOADS_FOLDER . 'temp/' . $filename . '.pdf';
}
}

View File

@ -0,0 +1,70 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Output the amount as a currency amount, e.g. 1.234,56
*
* @param $amount
* @return string
*/
function format_currency($amount)
{
global $CI;
$currency_symbol = $CI->mdl_settings->setting('currency_symbol');
$currency_symbol_placement = $CI->mdl_settings->setting('currency_symbol_placement');
$thousands_separator = $CI->mdl_settings->setting('thousands_separator');
$decimal_point = $CI->mdl_settings->setting('decimal_point');
if ($currency_symbol_placement == 'before') {
return $currency_symbol . number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
} elseif ($currency_symbol_placement == 'afterspace') {
return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator) . '&nbsp;' . $currency_symbol;
} else {
return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator) . $currency_symbol;
}
}
/**
* Output the amount as a currency amount, e.g. 1.234,56
*
* @param null $amount
* @return null|string
*/
function format_amount($amount = null)
{
if ($amount) {
$CI =& get_instance();
$thousands_separator = $CI->mdl_settings->setting('thousands_separator');
$decimal_point = $CI->mdl_settings->setting('decimal_point');
return number_format($amount, ($decimal_point) ? 2 : 0, $decimal_point, $thousands_separator);
}
return null;
}
/**
* Standardize an amount based on the system settings
*
* @param $amount
* @return mixed
*/
function standardize_amount($amount)
{
$CI =& get_instance();
$thousands_separator = $CI->mdl_settings->setting('thousands_separator');
$decimal_point = $CI->mdl_settings->setting('decimal_point');
$amount = str_replace($thousands_separator, '', $amount);
$amount = str_replace($decimal_point, '.', $amount);
return $amount;
}

View File

@ -0,0 +1,41 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Deletes orphaned entries in the database
*/
function delete_orphans()
{
$CI =& get_instance();
$queries = array(
'DELETE FROM ip_invoices WHERE client_id NOT IN (SELECT client_id FROM ip_clients)',
'DELETE FROM ip_quotes WHERE client_id NOT IN (SELECT client_id FROM ip_clients)',
'DELETE FROM ip_invoice_amounts WHERE invoice_id NOT IN (SELECT invoice_id FROM ip_invoices)',
'DELETE FROM ip_quote_amounts WHERE quote_id NOT IN (SELECT quote_id FROM ip_quotes)',
'DELETE FROM ip_payments WHERE invoice_id NOT IN (SELECT invoice_id FROM ip_invoices)',
'DELETE FROM ip_client_custom WHERE client_id NOT IN (SELECT client_id FROM ip_clients)',
'DELETE FROM ip_invoice_custom WHERE invoice_id NOT IN (SELECT invoice_id FROM ip_invoices)',
'DELETE FROM ip_user_custom WHERE user_id NOT IN (SELECT user_id FROM ip_users)',
'DELETE FROM ip_payment_custom WHERE payment_id NOT IN (SELECT payment_id FROM ip_payments)',
'DELETE FROM ip_quote_custom WHERE quote_id NOT IN (SELECT quote_id FROM ip_quotes)',
'DELETE FROM ip_invoice_items WHERE invoice_id NOT IN (SELECT invoice_id FROM ip_invoices)',
'DELETE FROM ip_invoice_item_amounts WHERE item_id NOT IN (SELECT item_id FROM ip_invoice_items)',
'DELETE FROM ip_quote_items WHERE quote_id NOT IN (SELECT quote_id FROM ip_quotes)',
'DELETE FROM ip_quote_item_amounts WHERE item_id NOT IN (SELECT item_id FROM ip_quote_items)',
'DELETE FROM ip_client_notes WHERE client_id NOT IN (SELECT client_id FROM ip_clients)'
);
foreach ($queries as $query) {
$CI->db->query($query);
}
}

View File

@ -0,0 +1,45 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Returns a printable pagination
*
* @param $base_url
* @param $model
* @return string
*/
function pager($base_url, $model)
{
$CI = &get_instance();
$pager = '<div class="model-pager btn-group btn-group-sm">';
if (($previous_page = $CI->$model->previous_offset) >= 0) {
$pager .= '<a class="btn btn-default" href="' . $base_url . '/0" title="' . trans('first') . '"><i class="fa fa-fast-backward no-margin"></i></a>';
$pager .= '<a class="btn btn-default" href="' . $base_url . '/' . $CI->$model->previous_offset . '" title="' . trans('prev') . '"><i class="fa fa-backward no-margin"></i></a>';
} else {
$pager .= '<a class="btn btn-default disabled" href="#" title="' . trans('first') . '"><i class="fa fa-fast-backward no-margin"></i></a>';
$pager .= '<a class="btn btn-default disabled" href="#" title="' . trans('prev') . '"><i class="fa fa-backward no-margin"></i></a>';
}
if (($next_page = $CI->$model->next_offset) <= $CI->$model->last_offset) {
$pager .= '<a class="btn btn-default" href="' . $base_url . '/' . $CI->$model->next_offset . '" title="' . trans('next') . '"><i class="fa fa-forward no-margin"></i></a>';
$pager .= '<a class="btn btn-default" href="' . $base_url . '/' . $CI->$model->last_offset . '" title="' . trans('last') . '"><i class="fa fa-fast-forward no-margin"></i></a>';
} else {
$pager .= '<a class="btn btn-default disabled" href="#" title="' . trans('next') . '"><i class="fa fa-forward no-margin"></i></a>';
$pager .= '<a class="btn btn-default disabled" href="#" title="' . trans('last') . '"><i class="fa fa-fast-forward no-margin"></i></a>';
}
$pager .= '</div>';
return $pager;
}

View File

@ -0,0 +1,258 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Generate the PDF for an invoice
*
* @param $invoice_id
* @param bool $stream
* @param null $invoice_template
* @param null $is_guest
* @return string
*/
function generate_invoice_pdf($invoice_id, $stream = true, $invoice_template = null, $is_guest = null)
{
$CI = &get_instance();
$CI->load->model('invoices/mdl_items');
$CI->load->model('invoices/mdl_invoices');
$CI->load->model('invoices/mdl_invoice_tax_rates');
$CI->load->model('custom_fields/mdl_custom_fields');
$CI->load->model('payment_methods/mdl_payment_methods');
$CI->load->helper('country');
$CI->load->helper('client');
$invoice = $CI->mdl_invoices->get_by_id($invoice_id);
// Override language with system language
set_language($invoice->client_language);
if (!$invoice_template) {
$CI->load->helper('template');
$invoice_template = select_pdf_invoice_template($invoice);
}
$payment_method = $CI->mdl_payment_methods->where('payment_method_id', $invoice->payment_method)->get()->row();
if ($invoice->payment_method == 0) {
$payment_method = false;
}
// Determine if discounts should be displayed
$items = $CI->mdl_items->where('invoice_id', $invoice_id)->get()->result();
// Discount settings
$show_item_discounts = false;
foreach ($items as $item) {
if ($item->item_discount != '0.00') {
$show_item_discounts = true;
}
}
// Get all custom fields
$custom_fields = array(
'invoice' => $CI->mdl_custom_fields->get_values_for_fields('mdl_invoice_custom', $invoice->invoice_id),
'client' => $CI->mdl_custom_fields->get_values_for_fields('mdl_client_custom', $invoice->client_id),
'user' => $CI->mdl_custom_fields->get_values_for_fields('mdl_user_custom', $invoice->user_id),
);
if ($invoice->quote_id) {
$custom_fields['quote'] = $CI->mdl_custom_fields->get_values_for_fields('mdl_quote_custom', $invoice->quote_id);
}
// PDF associated files
$include_zugferd = $CI->mdl_settings->setting('include_zugferd');
if ($include_zugferd) {
$CI->load->helper('zugferd');
$associatedFiles = array(array(
'name' => 'ZUGFeRD-invoice.xml',
'description' => 'ZUGFeRD Invoice',
'AFRelationship' => 'Alternative',
'mime' => 'text/xml',
'path' => generate_invoice_zugferd_xml_temp_file($invoice, $items)
));
} else {
$associatedFiles = null;
}
$data = array(
'invoice' => $invoice,
'invoice_tax_rates' => $CI->mdl_invoice_tax_rates->where('invoice_id', $invoice_id)->get()->result(),
'items' => $items,
'payment_method' => $payment_method,
'output_type' => 'pdf',
'show_item_discounts' => $show_item_discounts,
'custom_fields' => $custom_fields,
);
$html = $CI->load->view('invoice_templates/pdf/' . $invoice_template, $data, true);
$CI->load->helper('mpdf');
return pdf_create($html, trans('invoice') . '_' . str_replace(array('\\', '/'), '_', $invoice->invoice_number),
$stream, $invoice->invoice_password, true, $is_guest, $include_zugferd, $associatedFiles);
}
function generate_invoice_sumex($invoice_id, $stream = true, $client = false)
{
$CI = &get_instance();
$CI->load->model('invoices/mdl_items');
$invoice = $CI->mdl_invoices->get_by_id($invoice_id);
$CI->load->library('Sumex', array(
'invoice' => $invoice,
'items' => $CI->mdl_items->where('invoice_id', $invoice_id)->get()->result()
));
// Append a copy at the end and change the title:
// WARNING: The title depends on what invoice type is (TP, TG)
// and is language-dependant. Fix accordingly if you really need this hack
$temp = tempnam("/tmp", "invsumex_");
$tempCopy = tempnam("/tmp", "invsumex_");
$pdf = new FPDI();
$sumexPDF = $CI->sumex->pdf();
$sha1sum = sha1($sumexPDF);
$shortsum = substr($sha1sum, 0, 8);
$filename = trans('invoice') . '_' . $invoice->invoice_number . '_' . $shortsum;
if (!$client) {
file_put_contents($temp, $sumexPDF);
// Hackish
$sumexPDF = str_replace(
"Giustificativo per la richiesta di rimborso",
"Copia: Giustificativo per la richiesta di rimborso",
$sumexPDF
);
file_put_contents($tempCopy, $sumexPDF);
$pageCount = $pdf->setSourceFile($temp);
for ($pageNo = 1; $pageNo <= $pageCount; $pageNo++) {
$templateId = $pdf->importPage($pageNo);
$size = $pdf->getTemplateSize($templateId);
if ($size['w'] > $size['h']) {
$pageFormat = 'L'; // landscape
} else {
$pageFormat = 'P'; // portrait
}
$pdf->addPage($pageFormat, array($size['w'], $size['h']));
$pdf->useTemplate($templateId);
}
$pageCount = $pdf->setSourceFile($tempCopy);
for ($pageNo = 2; $pageNo <= $pageCount; $pageNo++) {
$templateId = $pdf->importPage($pageNo);
$size = $pdf->getTemplateSize($templateId);
if ($size['w'] > $size['h']) {
$pageFormat = 'L'; // landscape
} else {
$pageFormat = 'P'; // portrait
}
$pdf->addPage($pageFormat, array($size['w'], $size['h']));
$pdf->useTemplate($templateId);
}
unlink($temp);
unlink($tempCopy);
if ($stream) {
header("Content-Type", "application/pdf");
$pdf->Output($filename . '.pdf', 'I');
return;
}
$filePath = UPLOADS_FOLDER . 'temp/' . $filename . '.pdf';
$pdf->Output($filePath, 'F');
return $filePath;
} else {
if ($stream) {
return $sumexPDF;
}
$filePath = UPLOADS_FOLDER . 'temp/' . $filename . '.pdf';
file_put_contents($filePath, $sumexPDF);
return $filePath;
}
}
/**
* Generate the PDF for a quote
*
* @param $quote_id
* @param bool $stream
* @param null $quote_template
* @return string
*/
function generate_quote_pdf($quote_id, $stream = true, $quote_template = null)
{
$CI = &get_instance();
$CI->load->model('quotes/mdl_quotes');
$CI->load->model('quotes/mdl_quote_items');
$CI->load->model('quotes/mdl_quote_tax_rates');
$CI->load->model('custom_fields/mdl_custom_fields');
$CI->load->helper('country');
$CI->load->helper('client');
$quote = $CI->mdl_quotes->get_by_id($quote_id);
// Override language with system language
set_language($quote->client_language);
if (!$quote_template) {
$quote_template = $CI->mdl_settings->setting('pdf_quote_template');
}
// Determine if discounts should be displayed
$items = $CI->mdl_quote_items->where('quote_id', $quote_id)->get()->result();
$show_item_discounts = false;
foreach ($items as $item) {
if ($item->item_discount != '0.00') {
$show_item_discounts = true;
}
}
// Get all custom fields
$custom_fields = array(
'quote' => $CI->mdl_custom_fields->get_values_for_fields('mdl_quote_custom', $quote->quote_id),
'client' => $CI->mdl_custom_fields->get_values_for_fields('mdl_client_custom', $quote->client_id),
'user' => $CI->mdl_custom_fields->get_values_for_fields('mdl_user_custom', $quote->user_id),
);
$data = array(
'quote' => $quote,
'quote_tax_rates' => $CI->mdl_quote_tax_rates->where('quote_id', $quote_id)->get()->result(),
'items' => $items,
'output_type' => 'pdf',
'show_item_discounts' => $show_item_discounts,
'custom_fields' => $custom_fields,
);
$html = $CI->load->view('quote_templates/pdf/' . $quote_template, $data, true);
$CI->load->helper('mpdf');
return pdf_create($html, trans('quote') . '_' . str_replace(array('\\', '/'), '_', $quote->quote_number), $stream, $quote->quote_password);
}

View File

@ -0,0 +1,39 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Redirect the user to a given URL
*
* @param string $fallback_url_string
* @param bool $redirect
* @return mixed
*/
function redirect_to($fallback_url_string, $redirect = true)
{
$CI = &get_instance();
$redirect_url = ($CI->session->userdata('redirect_to')) ? $CI->session->userdata('redirect_to') : $fallback_url_string;
if ($redirect) {
redirect($redirect_url);
}
return $redirect_url;
}
/**
* Sets the current URL in the session
*/
function redirect_to_set()
{
$CI = &get_instance();
$CI->session->set_userdata('redirect_to', $CI->uri->uri_string());
}

View File

@ -0,0 +1,86 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
* InvoicePlane
*
* @author InvoicePlane Developers & Contributors
* @copyright Copyright (c) 2012 - 2017 InvoicePlane.com
* @license https://invoiceplane.com/license.txt
* @link https://invoiceplane.com
*/
/**
* Get a setting value
*
* @param string $setting_key
* @param mixed $default
* @param boolean $escape
* @return string
*/
function get_setting($setting_key, $default = '', $escape = false)
{
$CI = &get_instance();
$value = $CI->mdl_settings->setting($setting_key, $default);
return $escape ? htmlsc($value) : $value;
}
/**
* Get the settings for a payment gateway
*
* @param string $gateway
* @return array
*/
function get_gateway_settings($gateway)
{
$CI = &get_instance();
return $CI->mdl_settings->gateway_settings($gateway);
}
/**
* Compares the two given values and outputs selected="selected"
* if the values match or the operation is true for the single value
*
* Examples
* check_select($option_key, 'key_1') Checks if $option_key equals (==) 'key_1'.
* check_select($option_key, 'key_1', '!=') Checks if $option_key not equals (!=) 'key_1'.
* check_select($option_key) The same like if ($option_key) { ...
* check_select($option_key, null, 'e') Checks if the $option_key value is empty.
* check_select($option_key != 'key_1') If the first param is bool, it is used to validate the select
*
* @param string|integer $value1
* @param string|integer|null $value2
* @param string $operator
* @param bool $checked
* @return void
*/
function check_select($value1, $value2 = null, $operator = '==', $checked = false)
{
$select = $checked ? 'checked="checked"' : 'selected="selected"';
// Instant-validate if $value1 is a bool value
if (is_bool($value1) && $value2 === null) {
echo $value1 ? $select : '';
return;
}
switch ($operator) {
case '==':
$echo_selected = $value1 == $value2 ? true : false;
break;
case '!=':
$echo_selected = $value1 != $value2 ? true : false;
break;
case 'e':
$echo_selected = empty($value1) ? true : false;
break;
case '!e':
$echo_selected = empty($value1) ? true : false;
break;
default:
$echo_selected = $value1 ? true : false;
break;
}
echo $echo_selected ? $select : '';
}

Some files were not shown because too many files have changed in this diff Show More