diff --git a/COPYING b/COPYING index 67dd545..a0afa77 100644 --- a/COPYING +++ b/COPYING @@ -1,5 +1,5 @@ -Copyright (c) 2014-2015 Delta Consultants -Copyright (c) 2014-2015 GoUrl.io Developers +Copyright (c) 2014-2016 Delta Consultants +Copyright (c) 2014-2016 GoUrl.io Developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Examples/example_basic.php b/Examples/example_basic.php index ba2bb16..653d58b 100644 --- a/Examples/example_basic.php +++ b/Examples/example_basic.php @@ -2,7 +2,7 @@ /** * @category Basic Example * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 Delta Consultants * @crypto Supported Cryptocoins - Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit * @website https://gourl.io/api-php.html */ diff --git a/Examples/pay-per-download-multi.php b/Examples/pay-per-download-multi.php index 4943859..97369b8 100644 --- a/Examples/pay-per-download-multi.php +++ b/Examples/pay-per-download-multi.php @@ -2,7 +2,7 @@ /** * @category Example4 - Pay-Per-Download (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-download-multi.php diff --git a/Examples/pay-per-download.php b/Examples/pay-per-download.php index c21f325..20620f4 100644 --- a/Examples/pay-per-download.php +++ b/Examples/pay-per-download.php @@ -2,7 +2,7 @@ /** * @category Example3 - Pay-Per-Download (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-download.php diff --git a/Examples/pay-per-membership-multi.php b/Examples/pay-per-membership-multi.php index 36dbc9d..bb350b0 100644 --- a/Examples/pay-per-membership-multi.php +++ b/Examples/pay-per-membership-multi.php @@ -2,7 +2,7 @@ /** * @category Example12 - Pay-Per-Membership (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-membership-multi.php diff --git a/Examples/pay-per-membership.php b/Examples/pay-per-membership.php index d3fe7fa..882da48 100644 --- a/Examples/pay-per-membership.php +++ b/Examples/pay-per-membership.php @@ -2,7 +2,7 @@ /** * @category Example11 - Pay-Per-Membership (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-membership.php diff --git a/Examples/pay-per-page-multi.php b/Examples/pay-per-page-multi.php index ebf30d8..fc9c9af 100644 --- a/Examples/pay-per-page-multi.php +++ b/Examples/pay-per-page-multi.php @@ -2,7 +2,7 @@ /** * @category Example10 - Pay-Per-Page Access (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-page-multi.php diff --git a/Examples/pay-per-page.php b/Examples/pay-per-page.php index d206da7..619927a 100644 --- a/Examples/pay-per-page.php +++ b/Examples/pay-per-page.php @@ -2,7 +2,7 @@ /** * @category Example9 - Pay-Per-Page Access (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-page.php diff --git a/Examples/pay-per-post-multi.php b/Examples/pay-per-post-multi.php index cc8dfc1..636419b 100644 --- a/Examples/pay-per-post-multi.php +++ b/Examples/pay-per-post-multi.php @@ -2,7 +2,7 @@ /** * @category Example6 - Pay-Per-Post (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-post-multi.php diff --git a/Examples/pay-per-post.php b/Examples/pay-per-post.php index c5bda4d..345094f 100644 --- a/Examples/pay-per-post.php +++ b/Examples/pay-per-post.php @@ -2,7 +2,7 @@ /** * @category Example5 - Pay-Per-Post (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-post.php diff --git a/Examples/pay-per-product-multi.php b/Examples/pay-per-product-multi.php index 6d3ca7c..f835050 100644 --- a/Examples/pay-per-product-multi.php +++ b/Examples/pay-per-product-multi.php @@ -2,7 +2,7 @@ /** * @category Example2 - Pay-Per-Product (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-product-multi.php diff --git a/Examples/pay-per-product.php b/Examples/pay-per-product.php index e4dcc5a..7a1bd1a 100644 --- a/Examples/pay-per-product.php +++ b/Examples/pay-per-product.php @@ -2,7 +2,7 @@ /** * @category Example1 - Pay-Per-Product (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-product.php diff --git a/Examples/pay-per-registration-multi.php b/Examples/pay-per-registration-multi.php index 302a1fd..b7057dc 100644 --- a/Examples/pay-per-registration-multi.php +++ b/Examples/pay-per-registration-multi.php @@ -2,7 +2,7 @@ /** * @category Example8 - Pay-Per-Registration (payments in multiple cryptocurrencies, you can use original price in USD) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-registration-multi.php diff --git a/Examples/pay-per-registration.php b/Examples/pay-per-registration.php index c19bfa2..8ea7726 100644 --- a/Examples/pay-per-registration.php +++ b/Examples/pay-per-registration.php @@ -2,7 +2,7 @@ /** * @category Example7 - Pay-Per-Registration (single crypto currency in payment box) * @package GoUrl Cryptocurrency Payment API - * copyright (c) 2014-2015 Delta Consultants + * copyright (c) 2014-2016 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 https://gourl.io/lib/examples/pay-per-registration.php diff --git a/Screenshots/index.html b/Screenshots/index.html new file mode 100644 index 0000000..ea20f4b --- /dev/null +++ b/Screenshots/index.html @@ -0,0 +1,10 @@ + +
+Directory access is forbidden.
+ + + \ No newline at end of file diff --git a/cryptobox.callback.php b/cryptobox.callback.php index 360cb1a..690aeb2 100644 --- a/cryptobox.callback.php +++ b/cryptobox.callback.php @@ -4,10 +4,10 @@ * Cryptobox Server Callbacks * * @package Cryptobox callbacks - * @copyright 2014-2015 Delta Consultants + * @copyright 2014-2016 Delta Consultants * @category Libraries * @website https://gourl.io - * @version 1.7.3 + * @version 1.7.4 * * * This file processes call-backs from Cryptocoin Payment Box server when new payment diff --git a/cryptobox.class.php b/cryptobox.class.php index 9c1c7d5..06fa0e1 100644 --- a/cryptobox.class.php +++ b/cryptobox.class.php @@ -1,17 +1,17 @@ paymentID = $diff = $diff2 = 0; + $this->paymentID = $diff = 0; $obj = run_sql("SELECT paymentID, amount, amountUSD, txConfirmed, txCheckDate, txDate, processed, boxType FROM crypto_payments WHERE boxID = $this->boxID && orderID = '$this->orderID' && userID = '$this->userID' ".($this->period=="NOEXPIRY"?"":"&& txDate >= DATE_SUB('".gmdate("Y-m-d H:i:s")."', INTERVAL ".$this->period.")")." ORDER BY txDate DESC LIMIT 1"); @@ -609,12 +609,11 @@ private function check_payment($remotedb = false) $this->boxType = $obj->boxType; $this->processed = ($obj->processed) ? true : false; $diff = strtotime(gmdate('Y-m-d H:i:s')) - strtotime($obj->txCheckDate); - $diff2 = strtotime($obj->txCheckDate) - strtotime($obj->txDate); } if (!$obj && isset($_POST["cryptobox_live_"]) && $_POST["cryptobox_live_"] == md5($this->iframeID.$this->private_key.$this->userID)) $remotedb = true; - if ((!$obj && $remotedb) || ($obj && !$this->confirmed && $diff > ($this->coinLabel=='BTC'?35:12)*60 && $diff2 < 44*60*60)) + if ((!$obj && $remotedb) || ($obj && !$this->confirmed && ($diff > (($this->coinLabel=='BTC'?35:12)*60) || $diff < 0))) // if $diff < 0 - user have incorrect time on local computer { $this->check_payment_live(); } @@ -1259,6 +1258,6 @@ function run_sql($sql) foreach ($cryptobox_private_keys as $v) if (strpos($v, " ") !== false || strpos($v, "PRV") === false || strpos($v, "AA") === false || strpos($v, "77") === false) die("Invalid Private Key - ". (CRYPTOBOX_WORDPRESS ? "please setup it on your plugin settings page" : "$v in variable \$cryptobox_private_keys, file cryptobox.config.php.")); - unset($v); unset($cryptobox_private_keys); + unset($v); unset($cryptobox_private_keys); } ?> \ No newline at end of file diff --git a/cryptobox.js b/cryptobox.js index 963b63b..27b5a39 100644 --- a/cryptobox.js +++ b/cryptobox.js @@ -3,11 +3,11 @@ * Cryptocoin Payment Box Javascript * * @package GoUrl Bitcoin/Altcoin Payment Box and Crypto Captcha - * @copyright 2014-2015 Delta Consultants + * @copyright 2014-2016 Delta Consultants * @category Javascript * @website https://gourl.io * @api https://gourl.io/api.html - * @version 1.7.3 + * @version 1.7.4 * */ diff --git a/cryptobox.min.js b/cryptobox.min.js index 9da29e4..63ac100 100644 --- a/cryptobox.min.js +++ b/cryptobox.min.js @@ -3,11 +3,11 @@ * Cryptocoin Payment Box Javascript * * @package GoUrl Bitcoin/Altcoin Payment Box and Crypto Captcha - * @copyright 2014-2015 Delta Consultants + * @copyright 2014-2016 Delta Consultants * @category Javascript * @website https://gourl.io * @api https://gourl.io/api.html - * @version 1.7.3 + * @version 1.7.4 * */ diff --git a/readme.md b/readme.md index e841431..9e337cb 100644 --- a/readme.md +++ b/readme.md @@ -2,7 +2,7 @@ GoUrl.io Cryptocoin Payment Gateway API ----------------------------------------- -Version 1.7.3 +Version 1.7.4 **Accept Bitcoin, Litecoin, Paycoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit Payments Online on your website** @@ -35,7 +35,7 @@ Our Payment Gateway with Instant Checkout allows you to easily organise your web Information ------------------------------------ -Copyright © 2014-2015 [Delta Consultants](https://gourl.io) +Copyright © 2014-2016 [Delta Consultants](https://gourl.io) Website: [https://gourl.io](https://gourl.io)