Skip to content

Commit 294dcbb

Browse files
committed
ver 1.4
update
1 parent 5bee0fb commit 294dcbb

10 files changed

+1669
-1396
lines changed

css/style.admin.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
.gourlnowrap { white-space: nowrap; }
23

34
.gourladmin h2 {
45
font-family: 'Tenor Sans', sans-serif;
@@ -317,10 +318,9 @@
317318
.gourladmin .gourlwidetable .column-addr { overflow: hidden; white-space:nowrap; text-align: right; }
318319

319320
.gourladmin .gourlwidetable .gourlnofilecolumn .column-orderID { width: 11%; text-align: left; }
320-
.gourladmin .gourlwidetable .gourlnofilecolumn .column-userID { width: 11%; }
321+
.gourladmin .gourlwidetable .gourlnofilecolumn .column-amount { width: 8.5%; }
321322
.gourladmin .gourlwidetable .gourlnofilecolumn .column-amountUSD { width: 8%; }
322323
.gourladmin .gourlwidetable .gourlnofilecolumn .column-txDate { width: 7.5%; }
323-
.gourladmin .gourlwidetable .gourlnofilecolumn .column-unrecognised { width: 4.7%; }
324324
.gourladmin .gourlwidetable .gourlnofilecolumn .column-txConfirmed { width: 4.7%; }
325325

326326

css/style.front.css

+3-1
Original file line numberDiff line numberDiff line change
@@ -214,4 +214,6 @@
214214

215215
.edd-order-tx-id span {
216216
word-break: break-all;
217-
}
217+
}
218+
219+
.woocommerce > .woocommerce-order > ul.woocommerce-thankyou-order-details li { margin-bottom: 15px; }

gourl.php

+387-149
Large diffs are not rendered by default.

gourl_wordpress.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
44
Plugin URI: https://gourl.io/bitcoin-wordpress-plugin.html
55
Description: Official <a href="https://gourl.io">GoUrl.io</a> Bitcoin Payment Gateway Plugin for Wordpress. Provides <a href="https://gourl.io/lib/examples/pay-per-product-multi.php">Pay-Per-Product</a>, <a href="https://gourl.io/lib/examples/pay-per-download-multi.php">Pay-Per-Download</a>, <a href="https://gourl.io/lib/examples/pay-per-membership-multi.php">Pay-Per-Membership</a>, <a href="https://gourl.io/lib/examples/pay-per-page-multi.php">Pay-Per-View</a> and bitcoin/altcoin payment gateways for - <a href='https://gourl.io/bitcoin-payments-woocommerce.html'>WooCommerce</a>, <a href='https://gourl.io/bitcoin-payments-wp-ecommerce.html'>WP eCommerce</a>, <a href='https://gourl.io/bitcoin-payments-jigoshop.html'>Jigoshop</a>, <a href='https://gourl.io/bitcoin-payments-wpmudev-marketpress.html'>MarketPress</a>, <a href='https://gourl.io/bitcoin-appthemes-classipress-jobroller-vantage-etc.html'>AppThemes</a>, <a href='https://gourl.io/bitcoin-payments-paid-memberships-pro.html'>Paid Memberships Pro</a>, <a href='https://gourl.io/bbpress-premium-membership.html'>bbPress</a>, <a href='https://gourl.io/bitcoin-donations-wordpress-plugin.html'>Give Donations</a>, etc. Accept Bitcoin, BitcoinCash, Litecoin, Dash, Dogecoin, Speedcoin, Reddcoin, Potcoin, Feathercoin, Vertcoin, Peercoin, MonetaryUnit payments online. No Chargebacks, Global, Secure. All in automatic mode.
6-
Version: 1.3.18
6+
Version: 1.4.0
77
Author: GoUrl.io
88
Author URI: https://gourl.io
99
License: GPLv2
@@ -31,10 +31,11 @@
3131

3232
DEFINE('GOURL', "gourl");
3333
DEFINE('GOURL_PREVIEW', "gourladmin");
34-
DEFINE('GOURL_VERSION', "1.3.18");
34+
DEFINE('GOURL_VERSION', "1.4.0");
3535
DEFINE('GOURL_ADMIN', admin_url("admin.php?page="));
3636
DEFINE('GOURL_DIR', $dir_arr["basedir"]."/".GOURL.'/');
3737
DEFINE('GOURL_DIR2', $dir_arr["baseurl"]."/".GOURL.'/');
38+
DEFINE('GOURL_IMG', plugins_url('/images/', __FILE__));
3839
DEFINE('GOURL_BASENAME', plugin_basename(__FILE__));
3940
DEFINE("GOURL_PERMISSION", "add_users");
4041

@@ -47,6 +48,8 @@
4748
DEFINE('GOURL_LOCK_START', "<!-- start_gourlpayment_box -->");
4849
DEFINE('GOURL_LOCK_END', "<!-- end_gourlpayment_box -->");
4950

51+
DEFINE('GOURL_RATES', json_encode(array("USD" => "US Dollar", "EUR" => "Euro", "GBP" => "British Pound", "AUD" => "Australian Dollar", "BRL" => "Brazilian Real", "CAD" => "Canadian Dollar", "CHF" => "Swiss Franc", "CLP" => "Chilean Peso", "CNY" => "Chinese Yuan Renminbi", "DKK" => "Danish Krone", "HKD"=> "Hong Kong Dollar", "INR" => "Indian Rupee", "ISK" => "Icelandic Krona", "JPY" => "Japanese Yen", "KRW" => "South Korean Won", "NZD" => "New Zealand Dollar", "PLN" => "Polish Zloty", "RUB" => "Russian Ruble", "SEK" => "Swedish Krona", "SGD" => "Singapore Dollar", "THB" => "Thai Baht", "TWD" => "Taiwan New Dollar")));
52+
5053
DEFINE('CRYPTOBOX_WORDPRESS', true);
5154

5255
unset($dir_arr);
@@ -64,4 +67,4 @@
6467
add_action('plugins_loaded', 'gourl_load_textdomain');
6568

6669
if (function_exists( 'mb_stripos' ) && function_exists( 'mb_strripos' ) && function_exists( 'curl_init' ) && function_exists( 'mysqli_connect' ) && version_compare(phpversion(), '5.4.0', '>=')) $gourl = new gourlclass();
67-
70+

includes/cryptobox.class.php

+7-5
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public function __construct($options = array())
164164

165165
if (($this->amount <= 0 && $this->amountUSD <= 0) || ($this->amount > 0 && $this->amountUSD > 0)) die("You can use in cryptobox options one of variable only: amount or amountUSD. You cannot place values in that two variables together (submitted amount = '".$this->amount."' and amountUSD = '".$this->amountUSD."' )");
166166

167-
if ($this->amount && (!is_numeric($this->amount) || $this->amount < 0.0001 || $this->amount > 50000000)) die("Invalid Amount - $this->amount $this->coinLabel. Allowed range: 0.0001 .. 50,000,000");
168-
if ($this->amountUSD && (!is_numeric($this->amountUSD) || $this->amountUSD < 0.01 || $this->amountUSD > 1000000)) die("Invalid amountUSD - $this->amountUSD USD. Allowed range: 0.01 .. 1,000,000");
167+
if ($this->amount && (!is_numeric($this->amount) || $this->amount < 0.0001 || $this->amount > 500000000)) die("Invalid Amount - ".sprintf('%.8f', $this->amount)." $this->coinLabel. Allowed range: 0.0001 .. 500,000,000");
168+
if ($this->amountUSD && (!is_numeric($this->amountUSD) || $this->amountUSD < 0.01 || $this->amountUSD > 1000000)) die("Invalid amountUSD - ".sprintf('%.8f', $this->amountUSD)." USD. Allowed range: 0.01 .. 1,000,000");
169169

170170
$this->period = trim(strtoupper(str_replace(" ", "", $this->period)));
171171
if (substr($this->period, -1) == "S") $this->period = substr($this->period, 0, -1);
@@ -1235,14 +1235,16 @@ function convert_currency_live($from_Currency, $to_Currency, $amount)
12351235
if ($from_Currency == "TRL") $from_Currency = "TRY"; // fix for Turkish Lyra
12361236
if ($from_Currency == "ZWD") $from_Currency = "ZWL"; // fix for Zimbabwe Dollar
12371237
if ($from_Currency == "RIAL") $from_Currency = "IRR"; // fix for Iranian Rial
1238+
if ($from_Currency == "RM") $from_Currency = "MYR"; // fix for Malaysian Ringgit
12381239

12391240
$url = "https://finance.google.com/finance/converter?a=".$amount."&from=".$from_Currency."&to=".$to_Currency;
12401241

12411242
$ch = curl_init();
12421243
curl_setopt ($ch, CURLOPT_URL, $url);
12431244
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE);
12441245
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
1245-
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko");
1246+
curl_setopt ($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4 );
1247+
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko");
12461248
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 20);
12471249
curl_setopt ($ch, CURLOPT_TIMEOUT, 20);
12481250
$res = curl_exec($ch);
@@ -1518,14 +1520,14 @@ function run_sql($sql)
15181520
);
15191521

15201522
if(!defined("CRYPTOBOX_LOCALISATION")) define("CRYPTOBOX_LOCALISATION", json_encode($cryptobox_localisation));
1521-
unset($cryptobox_localisation);
1523+
unset($cryptobox_localisation);
15221524

15231525
if (!CRYPTOBOX_WORDPRESS || defined("CRYPTOBOX_PRIVATE_KEYS"))
15241526
{
15251527
$cryptobox_private_keys = explode("^", CRYPTOBOX_PRIVATE_KEYS);
15261528
foreach ($cryptobox_private_keys as $v)
15271529
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."));
15281530

1529-
unset($v); unset($cryptobox_private_keys);
1531+
unset($v); unset($cryptobox_private_keys);
15301532
}
15311533
?>

0 commit comments

Comments
 (0)