diff --git a/Examples/example_basic.php b/Examples/example_basic.php index a220001..ba2bb16 100644 --- a/Examples/example_basic.php +++ b/Examples/example_basic.php @@ -143,21 +143,29 @@ * "datetime": "2015-01-02 16:16:28" * ); */ - function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") - { - /**** Move this function to the bottom of the file cryptobox.class.php or create a separate file ****/ - // Your code here to handle a successful cryptocoin payment/captcha verification + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + // .... .... return true; - } + } - ?> diff --git a/Examples/index.htm b/Examples/index.html similarity index 100% rename from Examples/index.htm rename to Examples/index.html diff --git a/Examples/pay-per-download-multi.php b/Examples/pay-per-download-multi.php index f26ed65..4943859 100644 --- a/Examples/pay-per-download-multi.php +++ b/Examples/pay-per-download-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p2 - * @live_demo http://gourl.io/lib/examples/pay-per-download-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-download-multi.php */ require_once( "../cryptobox.class.php" ); @@ -130,6 +130,30 @@ // Optional - Coin selection list (html code) $coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0"); + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-download.php b/Examples/pay-per-download.php index 995c04f..c21f325 100644 --- a/Examples/pay-per-download.php +++ b/Examples/pay-per-download.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p2 - * @live_demo http://gourl.io/lib/examples/pay-per-download.php + * @live_demo https://gourl.io/lib/examples/pay-per-download.php */ require_once( "../cryptobox.class.php" ); @@ -91,6 +91,31 @@ // Optional - Language selection list for payment box (html code) $languages_list = display_language_box($def_language); + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-membership-multi.php b/Examples/pay-per-membership-multi.php index 82d21d4..36dbc9d 100644 --- a/Examples/pay-per-membership-multi.php +++ b/Examples/pay-per-membership-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p6 - * @live_demo http://gourl.io/lib/examples/pay-per-membership-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-membership-multi.php */ require_once( "../cryptobox.class.php" ); @@ -112,6 +112,33 @@ // Optional - Coin selection list (html code) $coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0"); } + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + + + ?> diff --git a/Examples/pay-per-page-multi.php b/Examples/pay-per-page-multi.php index 7ff8b58..ebf30d8 100644 --- a/Examples/pay-per-page-multi.php +++ b/Examples/pay-per-page-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p5 - * @live_demo http://gourl.io/lib/examples/pay-per-page-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-page-multi.php */ require_once( "../cryptobox.class.php" ); @@ -93,7 +93,31 @@ // Optional - Coin selection list (html code) if (!$box->is_paid()) $coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0"); - + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-page.php b/Examples/pay-per-page.php index 5d7949c..d206da7 100644 --- a/Examples/pay-per-page.php +++ b/Examples/pay-per-page.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p5 - * @live_demo http://gourl.io/lib/examples/pay-per-page.php + * @live_demo https://gourl.io/lib/examples/pay-per-page.php */ require_once( "../cryptobox.class.php" ); @@ -56,6 +56,31 @@ // Optional - Language selection list for payment box (html code) $languages_list = display_language_box($def_language); + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-post-multi.php b/Examples/pay-per-post-multi.php index d103714..cc8dfc1 100644 --- a/Examples/pay-per-post-multi.php +++ b/Examples/pay-per-post-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p3 - * @live_demo http://gourl.io/lib/examples/pay-per-post-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-post-multi.php */ require_once( "../cryptobox.class.php" ); @@ -135,6 +135,33 @@ } } // -------------------------- + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + + + ?> diff --git a/Examples/pay-per-post.php b/Examples/pay-per-post.php index 6f51042..c5bda4d 100644 --- a/Examples/pay-per-post.php +++ b/Examples/pay-per-post.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p3 - * @live_demo http://gourl.io/lib/examples/pay-per-post.php + * @live_demo https://gourl.io/lib/examples/pay-per-post.php */ require_once( "../cryptobox.class.php" ); @@ -95,6 +95,33 @@ } } // -------------------------- + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + + + ?> diff --git a/Examples/pay-per-product-multi.php b/Examples/pay-per-product-multi.php index 6b7fd89..6d3ca7c 100644 --- a/Examples/pay-per-product-multi.php +++ b/Examples/pay-per-product-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p1 - * @live_demo http://gourl.io/lib/examples/pay-per-product-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-product-multi.php */ require_once( "../cryptobox.class.php" ); @@ -122,7 +122,31 @@ // Optional - Coin selection list (html code) if (!$box->is_paid()) $coins_list = display_currency_box($available_payments, $def_payment, $def_language, 60, "margin: 80px 0 0 0"); - + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-product.php b/Examples/pay-per-product.php index bb92688..e4dcc5a 100644 --- a/Examples/pay-per-product.php +++ b/Examples/pay-per-product.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p1 - * @live_demo http://gourl.io/lib/examples/pay-per-product.php + * @live_demo https://gourl.io/lib/examples/pay-per-product.php */ require_once( "../cryptobox.class.php" ); @@ -81,6 +81,31 @@ // Optional - Language selection list for payment box (html code) $languages_list = display_language_box($def_language); + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + ?> diff --git a/Examples/pay-per-registration-multi.php b/Examples/pay-per-registration-multi.php index e15c778..302a1fd 100644 --- a/Examples/pay-per-registration-multi.php +++ b/Examples/pay-per-registration-multi.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p4 - * @live_demo http://gourl.io/lib/examples/pay-per-registration-multi.php + * @live_demo https://gourl.io/lib/examples/pay-per-registration-multi.php */ require_once( "../cryptobox.class.php" ); @@ -137,6 +137,32 @@ } } // -------------------------- + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + + ?> diff --git a/Examples/pay-per-registration.php b/Examples/pay-per-registration.php index 7779e49..c19bfa2 100644 --- a/Examples/pay-per-registration.php +++ b/Examples/pay-per-registration.php @@ -5,7 +5,7 @@ * copyright (c) 2014-2015 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/bitcoin-payment-gateway-api.html#p4 - * @live_demo http://gourl.io/lib/examples/pay-per-registration.php + * @live_demo https://gourl.io/lib/examples/pay-per-registration.php */ require_once( "../cryptobox.class.php" ); @@ -96,6 +96,32 @@ } } // -------------------------- + + + + + + + /********************************************************************************************************/ + /** This IPN function is used every time a new payment from any user is received successfully **/ + /** Function receives paymentID - current payment ID (record id in your mysql table crypto_payments), **/ + /** payment details as array and box_status - 'cryptobox_newrecord' OR 'cryptobox_updated'. **/ + /** **/ + /** Move this function to the bottom of the file cryptobox.class.php or create a separate file **/ + /** More info: https://gourl.io/api-php.html#ipn **/ + /********************************************************************************************************/ + function cryptobox_new_payment($paymentID = 0, $payment_details = array(), $box_status = "") + { + // Your php code here to handle a successful cryptocoin payment/captcha verification + // for example, send confirmation email to user + // update user membership, etc - https://gourl.io/api-php.html#ipn + + // .... .... + + return true; + } + + ?> diff --git a/cryptobox.callback.php b/cryptobox.callback.php index a3a951c..360cb1a 100644 --- a/cryptobox.callback.php +++ b/cryptobox.callback.php @@ -142,7 +142,7 @@ * $payment_details = Array * { * "status":"payment_received_unrecognised" - * "err":"An incorrect dogecoin amount has been received" + * "err":"An incorrect bitcoin amount has been received" * "private_key":"1206lO6HX76cw9Bitcoin77DOGED82Y8eyBExZ9kZpX" * "box":"120" * "boxtype":"paymentbox" @@ -168,7 +168,7 @@ } else - $box_status = "Only POST Data Allowed"; + $box_status = "Only POST Data Allowed"; echo $box_status; // don't delete it diff --git a/cryptobox.class.php b/cryptobox.class.php index 463a3aa..9c1c7d5 100644 --- a/cryptobox.class.php +++ b/cryptobox.class.php @@ -29,7 +29,7 @@ * 10.function payment_date() // Returns payment/transaction datetime in GMT format * 11.function payment_info() // Returns object with current user payment details - amount, txID, datetime, usercointry, etc * 12.function cryptobox_reset() // Optional, Delete cookies/sessions and new cryptobox with new payment amount will be displayed. Use this function only if you have not set userID manually. - * 13.function coin_name() // Returns coin name (dogecoin, bitcoin, etc) + * 13.function coin_name() // Returns coin name (bitcoin, dogecoin, etc) * 14.function coin_label() // Returns coin label (DOGE, BTC, etc) * 15.function iframe_id() // Returns payment box frame id * @@ -556,7 +556,7 @@ public function cryptobox_reset() /* 13. Function coin_name() * - * Returns coin name (dogecoin, bitcoin, litecoin, etc) + * Returns coin name (bitcoin, dogecoin, litecoin, etc) */ public function coin_name() { @@ -1023,7 +1023,7 @@ function cryptobox_selcoin($coins = array(), $defCoin = "") */ function get_country_name($countryID, $reverse = false) { - $arr = array("AFG"=>"Afghanistan", "ALA"=>"Aland Islands", "ALB"=>"Albania", "DZA"=>"Algeria", "ASM"=>"American Samoa", "AND"=>"Andorra", "AGO"=>"Angola", "AIA"=>"Anguilla", "ATA"=>"Antarctica", "ATG"=>"Antigua and Barbuda", "ARG"=>"Argentina", "ARM"=>"Armenia", "ABW"=>"Aruba", "AUS"=>"Australia", "AUT"=>"Austria", "AZE"=>"Azerbaijan", "BHS"=>"Bahamas", "BHR"=>"Bahrain", "BGD"=>"Bangladesh", "BRB"=>"Barbados", "BLR"=>"Belarus", "BEL"=>"Belgium", "BLZ"=>"Belize", "BEN"=>"Benin", "BMU"=>"Bermuda", "BTN"=>"Bhutan", "BOL"=>"Bolivia", "BIH"=>"Bosnia and Herzegovina", "BWA"=>"Botswana", "BVT"=>"Bouvet Island", "BRA"=>"Brazil", "IOT"=>"British Indian Ocean Territory", "BRN"=>"Brunei", "BGR"=>"Bulgaria", "BFA"=>"Burkina Faso", "BDI"=>"Burundi", "KHM"=>"Cambodia", "CMR"=>"Cameroon", "CAN"=>"Canada", "CPV"=>"Cape Verde", "BES"=>"Caribbean Netherlands", "CYM"=>"Cayman Islands", "CAF"=>"Central African Republic", "TCD"=>"Chad", "CHL"=>"Chile", "CHN"=>"China", "CXR"=>"Christmas Island", "CCK"=>"Cocos (Keeling) Islands", "COL"=>"Colombia", "COM"=>"Comoros", "COG"=>"Congo", "COD"=>"Congo, Democratic Republic", "COK"=>"Cook Islands", "CRI"=>"Costa Rica", "CIV"=>"Côte d’Ivoire", "HRV"=>"Croatia", "CUB"=>"Cuba", "CUW"=>"Curacao", "CBR"=>"Cyberbunker", "CYP"=>"Cyprus", "CZE"=>"Czech Republic", "DNK"=>"Denmark", "DJI"=>"Djibouti", "DMA"=>"Dominica", "DOM"=>"Dominican Republic", "TMP"=>"East Timor", "ECU"=>"Ecuador", "EGY"=>"Egypt", "SLV"=>"El Salvador", "GNQ"=>"Equatorial Guinea", "ERI"=>"Eritrea", "EST"=>"Estonia", "ETH"=>"Ethiopia", "EUR"=>"European Union", "FLK"=>"Falkland Islands", "FRO"=>"Faroe Islands", "FJI"=>"Fiji Islands", "FIN"=>"Finland", "FRA"=>"France", "GUF"=>"French Guiana", "PYF"=>"French Polynesia", "ATF"=>"French Southern territories", "GAB"=>"Gabon", "GMB"=>"Gambia", "GEO"=>"Georgia", "DEU"=>"Germany", "GHA"=>"Ghana", "GIB"=>"Gibraltar", "GRC"=>"Greece", "GRL"=>"Greenland", "GRD"=>"Grenada", "GLP"=>"Guadeloupe", "GUM"=>"Guam", "GTM"=>"Guatemala", "GGY"=>"Guernsey", "GIN"=>"Guinea", "GNB"=>"Guinea-Bissau", "GUY"=>"Guyana", "HTI"=>"Haiti", "HMD"=>"Heard Island and McDonald Islands", "HND"=>"Honduras", "HKG"=>"Hong Kong", "HUN"=>"Hungary", "ISL"=>"Iceland", "IND"=>"India", "IDN"=>"Indonesia", "IRN"=>"Iran", "IRQ"=>"Iraq", "IRL"=>"Ireland", "IMN"=>"Isle of Man", "ISR"=>"Israel", "ITA"=>"Italy", "JAM"=>"Jamaica", "JPN"=>"Japan", "JEY"=>"Jersey", "JOR"=>"Jordan", "KAZ"=>"Kazakstan", "KEN"=>"Kenya", "KIR"=>"Kiribati", "KWT"=>"Kuwait", "KGZ"=>"Kyrgyzstan", "LAO"=>"Laos", "LVA"=>"Latvia", "LBN"=>"Lebanon", "LSO"=>"Lesotho", "LBR"=>"Liberia", "LBY"=>"Libya", "LIE"=>"Liechtenstein", "LTU"=>"Lithuania", "LUX"=>"Luxembourg", "MAC"=>"Macao", "MKD"=>"Macedonia", "MDG"=>"Madagascar", "MWI"=>"Malawi", "MYS"=>"Malaysia", "MDV"=>"Maldives", "MLI"=>"Mali", "MLT"=>"Malta", "MHL"=>"Marshall Islands", "MTQ"=>"Martinique", "MRT"=>"Mauritania", "MUS"=>"Mauritius", "MYT"=>"Mayotte", "MEX"=>"Mexico", "FSM"=>"Micronesia, Federated States", "MDA"=>"Moldova", "MCO"=>"Monaco", "MNG"=>"Mongolia", "MNE"=>"Montenegro", "MSR"=>"Montserrat", "MAR"=>"Morocco", "MOZ"=>"Mozambique", "MMR"=>"Myanmar", "NAM"=>"Namibia", "NRU"=>"Nauru", "NPL"=>"Nepal", "NLD"=>"Netherlands", "ANT"=>"Netherlands Antilles", "NCL"=>"New Caledonia", "NZL"=>"New Zealand", "NIC"=>"Nicaragua", "NER"=>"Niger", "NGA"=>"Nigeria", "NIU"=>"Niue", "NFK"=>"Norfolk Island", "PRK"=>"North Korea", "MNP"=>"Northern Mariana Islands", "NOR"=>"Norway", "OMN"=>"Oman", "PAK"=>"Pakistan", "PLW"=>"Palau", "PSE"=>"Palestine", "PAN"=>"Panama", "PNG"=>"Papua New Guinea", "PRY"=>"Paraguay", "PER"=>"Peru", "PHL"=>"Philippines", "PCN"=>"Pitcairn", "POL"=>"Poland", "PRT"=>"Portugal", "PRI"=>"Puerto Rico", "QAT"=>"Qatar", "REU"=>"Réunion", "ROM"=>"Romania", "RUS"=>"Russia", "RWA"=>"Rwanda", "BLM"=>"Saint Barthelemy", "SHN"=>"Saint Helena", "KNA"=>"Saint Kitts and Nevis", "LCA"=>"Saint Lucia", "MAF"=>"Saint Martin", "SPM"=>"Saint Pierre and Miquelon", "VCT"=>"Saint Vincent and the Grenadines", "WSM"=>"Samoa", "SMR"=>"San Marino", "STP"=>"Sao Tome and Principe", "SAU"=>"Saudi Arabia", "SEN"=>"Senegal", "SRB"=>"Serbia", "SYC"=>"Seychelles", "SLE"=>"Sierra Leone", "SGP"=>"Singapore", "SXM"=>"Sint Maarten", "SVK"=>"Slovakia", "SVN"=>"Slovenia", "SLB"=>"Solomon Islands", "SOM"=>"Somalia", "ZAF"=>"South Africa", "SGS"=>"South Georgia and the South Sandwich Islands", "KOR"=>"South Korea", "SSD"=>"South Sudan", "ESP"=>"Spain", "LKA"=>"Sri Lanka", "SDN"=>"Sudan", "SUR"=>"Suriname", "SJM"=>"Svalbard and Jan Mayen", "SWZ"=>"Swaziland", "SWE"=>"Sweden", "CHE"=>"Switzerland", "SYR"=>"Syria", "TWN"=>"Taiwan", "TJK"=>"Tajikistan", "TZA"=>"Tanzania", "THA"=>"Thailand", "TGO"=>"Togo", "TKL"=>"Tokelau", "TON"=>"Tonga", "TTO"=>"Trinidad and Tobago", "TUN"=>"Tunisia", "TUR"=>"Turkey", "TKM"=>"Turkmenistan", "TCA"=>"Turks and Caicos Islands", "TUV"=>"Tuvalu", "UGA"=>"Uganda", "UKR"=>"Ukraine", "ARE"=>"United Arab Emirates", "GBR"=>"United Kingdom", "UMI"=>"United States Minor Outlying Islands", "URY"=>"Uruguay", "USA"=>"USA", "UZB"=>"Uzbekistan", "VUT"=>"Vanuatu", "VAT"=>"Vatican (Holy See)", "VEN"=>"Venezuela", "VNM"=>"Vietnam", "VGB"=>"Virgin Islands, British", "VIR"=>"Virgin Islands, U.S.", "WLF"=>"Wallis and Futuna", "ESH"=>"Western Sahara", "YEM"=>"Yemen", "ZMB"=>"Zambia", "ZWE"=>"Zimbabwe"); + $arr = array("AFG"=>"Afghanistan", "ALA"=>"Aland Islands", "ALB"=>"Albania", "DZA"=>"Algeria", "ASM"=>"American Samoa", "AND"=>"Andorra", "AGO"=>"Angola", "AIA"=>"Anguilla", "ATA"=>"Antarctica", "ATG"=>"Antigua and Barbuda", "ARG"=>"Argentina", "ARM"=>"Armenia", "ABW"=>"Aruba", "AUS"=>"Australia", "AUT"=>"Austria", "AZE"=>"Azerbaijan", "BHS"=>"Bahamas", "BHR"=>"Bahrain", "BGD"=>"Bangladesh", "BRB"=>"Barbados", "BLR"=>"Belarus", "BEL"=>"Belgium", "BLZ"=>"Belize", "BEN"=>"Benin", "BMU"=>"Bermuda", "BTN"=>"Bhutan", "BOL"=>"Bolivia", "BIH"=>"Bosnia and Herzegovina", "BWA"=>"Botswana", "BVT"=>"Bouvet Island", "BRA"=>"Brazil", "IOT"=>"British Indian Ocean Territory", "BRN"=>"Brunei", "BGR"=>"Bulgaria", "BFA"=>"Burkina Faso", "BDI"=>"Burundi", "KHM"=>"Cambodia", "CMR"=>"Cameroon", "CAN"=>"Canada", "CPV"=>"Cape Verde", "BES"=>"Caribbean Netherlands", "CYM"=>"Cayman Islands", "CAF"=>"Central African Republic", "TCD"=>"Chad", "CHL"=>"Chile", "CHN"=>"China", "CXR"=>"Christmas Island", "CCK"=>"Cocos (Keeling) Islands", "COL"=>"Colombia", "COM"=>"Comoros", "COG"=>"Congo", "COD"=>"Congo, Democratic Republic", "COK"=>"Cook Islands", "CRI"=>"Costa Rica", "CIV"=>"Côte d’Ivoire", "HRV"=>"Croatia", "CUB"=>"Cuba", "CUW"=>"Curacao", "CBR"=>"Cyberbunker", "CYP"=>"Cyprus", "CZE"=>"Czech Republic", "DNK"=>"Denmark", "DJI"=>"Djibouti", "DMA"=>"Dominica", "DOM"=>"Dominican Republic", "TMP"=>"East Timor", "ECU"=>"Ecuador", "EGY"=>"Egypt", "SLV"=>"El Salvador", "GNQ"=>"Equatorial Guinea", "ERI"=>"Eritrea", "EST"=>"Estonia", "ETH"=>"Ethiopia", "EUR"=>"European Union", "FLK"=>"Falkland Islands", "FRO"=>"Faroe Islands", "FJI"=>"Fiji Islands", "FIN"=>"Finland", "FRA"=>"France", "GUF"=>"French Guiana", "PYF"=>"French Polynesia", "ATF"=>"French Southern territories", "GAB"=>"Gabon", "GMB"=>"Gambia", "GEO"=>"Georgia", "DEU"=>"Germany", "GHA"=>"Ghana", "GIB"=>"Gibraltar", "GRC"=>"Greece", "GRL"=>"Greenland", "GRD"=>"Grenada", "GLP"=>"Guadeloupe", "GUM"=>"Guam", "GTM"=>"Guatemala", "GGY"=>"Guernsey", "GIN"=>"Guinea", "GNB"=>"Guinea-Bissau", "GUY"=>"Guyana", "HTI"=>"Haiti", "HMD"=>"Heard Island and McDonald Islands", "HND"=>"Honduras", "HKG"=>"Hong Kong", "HUN"=>"Hungary", "ISL"=>"Iceland", "IND"=>"India", "IDN"=>"Indonesia", "IRN"=>"Iran", "IRQ"=>"Iraq", "IRL"=>"Ireland", "IMN"=>"Isle of Man", "ISR"=>"Israel", "ITA"=>"Italy", "JAM"=>"Jamaica", "JPN"=>"Japan", "JEY"=>"Jersey", "JOR"=>"Jordan", "KAZ"=>"Kazakstan", "KEN"=>"Kenya", "KIR"=>"Kiribati", "KWT"=>"Kuwait", "KGZ"=>"Kyrgyzstan", "LAO"=>"Laos", "LVA"=>"Latvia", "LBN"=>"Lebanon", "LSO"=>"Lesotho", "LBR"=>"Liberia", "LBY"=>"Libya", "LIE"=>"Liechtenstein", "LTU"=>"Lithuania", "LUX"=>"Luxembourg", "MAC"=>"Macao", "MKD"=>"Macedonia", "MDG"=>"Madagascar", "MWI"=>"Malawi", "MYS"=>"Malaysia", "MDV"=>"Maldives", "MLI"=>"Mali", "MLT"=>"Malta", "MHL"=>"Marshall Islands", "MTQ"=>"Martinique", "MRT"=>"Mauritania", "MUS"=>"Mauritius", "MYT"=>"Mayotte", "MEX"=>"Mexico", "FSM"=>"Micronesia, Federated States", "MDA"=>"Moldova", "MCO"=>"Monaco", "MNG"=>"Mongolia", "MNE"=>"Montenegro", "MSR"=>"Montserrat", "MAR"=>"Morocco", "MOZ"=>"Mozambique", "MMR"=>"Myanmar", "NAM"=>"Namibia", "NRU"=>"Nauru", "NPL"=>"Nepal", "NLD"=>"Netherlands", "ANT"=>"Netherlands Antilles", "NCL"=>"New Caledonia", "NZL"=>"New Zealand", "NIC"=>"Nicaragua", "NER"=>"Niger", "NGA"=>"Nigeria", "NIU"=>"Niue", "NFK"=>"Norfolk Island", "PRK"=>"North Korea", "MNP"=>"Northern Mariana Islands", "NOR"=>"Norway", "OMN"=>"Oman", "PAK"=>"Pakistan", "PLW"=>"Palau", "PSE"=>"Palestine", "PAN"=>"Panama", "PNG"=>"Papua New Guinea", "PRY"=>"Paraguay", "PER"=>"Peru", "PHL"=>"Philippines", "PCN"=>"Pitcairn", "POL"=>"Poland", "PRT"=>"Portugal", "PRI"=>"Puerto Rico", "QAT"=>"Qatar", "REU"=>"Réunion", "ROM"=>"Romania", "RUS"=>"Russia", "RWA"=>"Rwanda", "BLM"=>"Saint Barthelemy", "SHN"=>"Saint Helena", "KNA"=>"Saint Kitts and Nevis", "LCA"=>"Saint Lucia", "MAF"=>"Saint Martin", "SPM"=>"Saint Pierre and Miquelon", "VCT"=>"Saint Vincent and the Grenadines", "WSM"=>"Samoa", "SMR"=>"San Marino", "STP"=>"Sao Tome and Principe", "SAU"=>"Saudi Arabia", "SEN"=>"Senegal", "SRB"=>"Serbia", "SYC"=>"Seychelles", "SLE"=>"Sierra Leone", "SGP"=>"Singapore", "SXM"=>"Sint Maarten", "SVK"=>"Slovakia", "SVN"=>"Slovenia", "SLB"=>"Solomon Islands", "SOM"=>"Somalia", "ZAF"=>"South Africa", "SGS"=>"South Georgia and the South Sandwich Islands", "KOR"=>"South Korea", "SSD"=>"South Sudan", "ESP"=>"Spain", "LKA"=>"Sri Lanka", "SDN"=>"Sudan", "SUR"=>"Suriname", "SJM"=>"Svalbard and Jan Mayen", "SWZ"=>"Swaziland", "SWE"=>"Sweden", "CHE"=>"Switzerland", "SYR"=>"Syria", "TWN"=>"Taiwan", "TJK"=>"Tajikistan", "TZA"=>"Tanzania", "THA"=>"Thailand", "TGO"=>"Togo", "TKL"=>"Tokelau", "TON"=>"Tonga", "TTO"=>"Trinidad and Tobago", "TUN"=>"Tunisia", "TUR"=>"Turkey", "TKM"=>"Turkmenistan", "TCA"=>"Turks and Caicos Islands", "TUV"=>"Tuvalu", "UGA"=>"Uganda", "UKR"=>"Ukraine", "ARE"=>"United Arab Emirates", "GBR"=>"United Kingdom", "UMI"=>"United States Minor Outlying Islands", "URY"=>"Uruguay", "USA"=>"USA", "UZB"=>"Uzbekistan", "VUT"=>"Vanuatu", "VAT"=>"Vatican (Holy See)", "VEN"=>"Venezuela", "VNM"=>"Vietnam", "VGB"=>"Virgin Islands, British", "VIR"=>"Virgin Islands, U.S.", "WLF"=>"Wallis and Futuna", "ESH"=>"Western Sahara", "XKX"=>"Kosovo", "YEM"=>"Yemen", "ZMB"=>"Zambia", "ZWE"=>"Zimbabwe"); if ($reverse) $result = array_search(ucwords(mb_strtolower($countryID)), $arr); elseif (isset($arr[strtoupper($countryID)])) $result = $arr[strtoupper($countryID)]; diff --git a/images/index.htm b/images/index.html similarity index 100% rename from images/index.htm rename to images/index.html diff --git a/index.htm b/index.html similarity index 100% rename from index.htm rename to index.html