Skip to content

Commit

Permalink
Version 1.3.15
Browse files Browse the repository at this point in the history
Added Turkish Language
  • Loading branch information
cryptoapi committed Feb 14, 2017
1 parent d5b96a7 commit 3740c3f
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 26 deletions.
4 changes: 2 additions & 2 deletions gourl.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public static function coin_www()
*/
public static function languages()
{
return array('en' => 'English', 'es' => 'Spanish', 'fr' => 'French', 'de' => 'German', 'nl' => 'Dutch', 'it' => 'Italian', 'ru' => 'Russian', 'pl' => 'Polish', 'pt' => 'Portuguese', 'fa' => 'Persian', 'ko' => 'Korean', 'ja' => 'Japanese', 'id' => 'Indonesian', 'ar' => 'Arabic', 'cn' => 'Simplified Chinese', 'zh' => 'Traditional Chinese', 'hi' => 'Hindi');
return array('en' => 'English', 'es' => 'Spanish', 'fr' => 'French', 'de' => 'German', 'nl' => 'Dutch', 'it' => 'Italian', 'ru' => 'Russian', 'pl' => 'Polish', 'pt' => 'Portuguese', 'fa' => 'Persian', 'ko' => 'Korean', 'ja' => 'Japanese', 'id' => 'Indonesian', 'tr' => 'Turkish', 'ar' => 'Arabic', 'cn' => 'Simplified Chinese', 'zh' => 'Traditional Chinese', 'hi' => 'Hindi');
}


Expand Down Expand Up @@ -7439,6 +7439,6 @@ function has_shortcode( $content, $tag ) {
}
}

return false;
return false;
}
}
4 changes: 2 additions & 2 deletions gourl_wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
Plugin URI: https://gourl.io/bitcoin-wordpress-plugin.html
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, Litecoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Feathercoin, Paycoin, Vertcoin, Vericoin, Peercoin, MonetaryUnit, Swiscoin payments online. No Chargebacks, Global, Secure. All in automatic mode.
Version: 1.3.14
Version: 1.3.15
Author: GoUrl.io
Author URI: https://gourl.io
License: GPLv2
Expand Down Expand Up @@ -31,7 +31,7 @@

DEFINE('GOURL', "gourl");
DEFINE('GOURL_PREVIEW', "gourladmin");
DEFINE('GOURL_VERSION', "1.3.14");
DEFINE('GOURL_VERSION', "1.3.15");
DEFINE('GOURL_ADMIN', admin_url("admin.php?page="));
DEFINE('GOURL_DIR', $dir_arr["basedir"]."/".GOURL.'/');
DEFINE('GOURL_DIR2', $dir_arr["baseurl"]."/".GOURL.'/');
Expand Down
30 changes: 20 additions & 10 deletions includes/cryptobox.callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
* ##########################################
*
*
* Cryptobox Server Callbacks
* Cryptobox Server Callbacks
*
* @package Cryptobox callbacks
* @copyright 2014-2017 Delta Consultants
* @category Libraries
* @website https://gourl.io
* @version 1.7.10
* @version 1.7.11
*
*
* This file processes call-backs from Cryptocoin Payment Box server when new payment
Expand Down Expand Up @@ -42,18 +42,28 @@
if ($_POST) foreach ($_POST as $k => $v) if (is_string($v)) $_POST[$k] = trim($v);


// b.
if (isset($_POST["plugin_ver"]) && !isset($_POST["status"]) && isset($_POST["private_key"]) && strlen($_POST["private_key"]) == 50 && in_array($_POST["private_key"], explode("^", CRYPTOBOX_PRIVATE_KEYS)))
// b. check if private key valid
$valid_key = false;
if (isset($_POST["private_key_hash"]) && strlen($_POST["private_key_hash"]) == 128 && preg_replace('/[^A-Za-z0-9]/', '', $_POST["private_key_hash"]) == $_POST["private_key_hash"])
{
$keyshash = array();
$arr = explode("^", CRYPTOBOX_PRIVATE_KEYS);
foreach ($arr as $v) $keyshash[] = strtolower(hash("sha512", $v));
if (in_array(strtolower($_POST["private_key_hash"]), $keyshash)) $valid_key = true;
}


// c.
if (isset($_POST["plugin_ver"]) && !isset($_POST["status"]) && $valid_key)
{
echo "cryptoboxver_" . (CRYPTOBOX_WORDPRESS ? "wordpress_" . GOURL_VERSION : "php_" . CRYPTOBOX_VERSION);
die;
}


// c.
// d.
if (isset($_POST["status"]) && in_array($_POST["status"], array("payment_received", "payment_received_unrecognised")) &&
$_POST["box"] && is_numeric($_POST["box"]) && $_POST["box"] > 0 && $_POST["amount"] && is_numeric($_POST["amount"]) && $_POST["amount"] > 0 &&
strlen($_POST["private_key"]) == 50 && preg_replace('/[^A-Za-z0-9]/', '', $_POST["private_key"]) == $_POST["private_key"] && in_array($_POST["private_key"], explode("^", CRYPTOBOX_PRIVATE_KEYS)))
$_POST["box"] && is_numeric($_POST["box"]) && $_POST["box"] > 0 && $_POST["amount"] && is_numeric($_POST["amount"]) && $_POST["amount"] > 0 && $valid_key)
{

foreach ($_POST as $k => $v)
Expand Down Expand Up @@ -110,9 +120,9 @@
}

else
$box_status = "Only POST Data Allowed";
$box_status = "Only POST Data Allowed";


echo $box_status; // don't delete it
echo $box_status; // don't delete it

?>
22 changes: 15 additions & 7 deletions includes/cryptobox.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* ##########################################
*
*
* PHP Cryptocurrency Payment Class
* PHP Cryptocurrency Payment Class
*
* @package GoUrl PHP Bitcoin/Altcoin Payments and Crypto Captcha
* @copyright 2014-2017 Delta Consultants
Expand All @@ -15,7 +15,7 @@
* @example https://gourl.io/bitcoin-payment-gateway-api.html
* @gitHub https://github.com/cryptoapi/Payment-Gateway
* @license Free GPLv2
* @version 1.7.10
* @version 1.7.11
*
*
* CLASS CRYPTOBOX - LIST OF METHODS:
Expand Down Expand Up @@ -66,7 +66,7 @@
elseif (!defined('ABSPATH')) exit; // Wordpress


define("CRYPTOBOX_VERSION", "1.7.10");
define("CRYPTOBOX_VERSION", "1.7.11");

// GoUrl supported crypto currencies
define("CRYPTOBOX_COINS", json_encode(array('bitcoin', 'litecoin', 'paycoin', 'dogecoin', 'dash', 'speedcoin', 'reddcoin', 'potcoin', 'feathercoin', 'vertcoin', 'vericoin', 'peercoin', 'monetaryunit', 'swiscoin')));
Expand All @@ -87,7 +87,7 @@ class Cryptobox {
* User will pay you all times the actual price which is linked on current exchange price in USD on the datetime of purchase.
* You can use in cryptobox options one variable only: amount or amountUSD. You cannot place values of those two variables together. */
private $period = ""; // period after which the payment becomes obsolete and new cryptobox will be shown; allow values: NOEXPIRY, 1 MINUTE..90 MINUTE, 1 HOUR..90 HOURS, 1 DAY..90 DAYS, 1 WEEK..90 WEEKS, 1 MONTH..90 MONTHS
private $language = "en"; // cryptobox localisation; en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi
private $language = "en"; // cryptobox localisation; en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, tr - Turkish, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi
private $iframeID = ""; // optional, html iframe element id; allow symbols: a..Z0..9_-
private $orderID = ""; // your page name / product name or order name (not unique); allow symbols: a..Z0..9_-@.; max size: 50 symbols
private $userID = ""; // optional, manual setup unique identifier for each of your users; allow symbols: a..Z0..9_-@.; max size: 50 symbols
Expand Down Expand Up @@ -117,7 +117,7 @@ class Cryptobox {
private $boxType = ""; // cryptobox type - 'paymentbox' or 'captchabox'
private $processed = false; // optional - set flag to paid & processed
private $cookieName = ""; // user cookie/session name (if cookies/sessions use)
private $localisation = ""; // localisation; en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi
private $localisation = ""; // localisation; en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, tr - Turkish, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi


public function __construct($options = array())
Expand Down Expand Up @@ -153,7 +153,7 @@ public function __construct($options = array())
if (!$this->amount || $this->amount <= 0) $this->amount = 0;
if (!$this->amountUSD || $this->amountUSD <= 0) $this->amountUSD = 0;

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");
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."' )");

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");
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");
Expand Down Expand Up @@ -1163,7 +1163,7 @@ function run_sql($sql)
}


// en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi
// en - English, es - Spanish, fr - French, de - German, nl - Dutch, it - Italian, ru - Russian, pl - Polish, pt - Portuguese, fa - Persian, ko - Korean, ja - Japanese, id - Indonesian, tr - Turkish, ar - Arabic, cn - Simplified Chinese, zh - Traditional Chinese, hi - Hindi
$cryptobox_localisation = array(
"en" => array("name" => "English",
/*36*/ "button" => "Click Here if you have already sent %coinNames%",
Expand Down Expand Up @@ -1269,6 +1269,14 @@ function run_sql($sql)
"payment" => "Pilih Metode Pembayaran",
"pay_in" => "Pembayaran dalam bentuk %coinName%"),

"tr" => array("name" => "Turkish",
"button" => "%coinName% g&#246;nderdiyseniz, buraya t&#305;klay&#305;n",
"msg_not_received" => "<b>%coinNames% hen&#252;z al&#305;namad&#305;.</b><br> De&#287;i&#351;ik yada yanl&#305;&#351; bir mebl&#226; verdiyseniz, sistem kabul etmemi&#351; olabilir. Bu durumda g&#246;derme i&#351;leminizi birka&#231; dakika bekleyerek tekrarlay&#305;n. Veya site sahibinden yard&#305;m isteyin.",
"msg_received" => "%coinName% &#246;deme sistemine %amountPaid% %coinLabel% ba&#351;ar&#305;yla gelmi&#351;tir !",
"msg_received2" => "%coinName% Capcha`ya %amountPaid% %coinLabel% ba&#351;ar&#305;yla gelmi&#351;tir !",
"payment" => "&#214;deme metodunu se&#231;iniz",
"pay_in" => "%coinName% ile &#246;deme"),

"ar" => array("name" => "Arabic",
"button" => "&#1575;&#1590;&#1594;&#1591; &#1607;&#1606;&#1575; &#1601;&#1610; &#1581;&#1575;&#1604;&#1577; &#1602;&#1605;&#1578; &#1601;&#1593;&#1604;&#1575;&#1611; &#1576;&#1575;&#1604;&#1575;&#1585;&#1587;&#1575;&#1604; %coinNames%",
"msg_not_received" => "<b>%coinNames% &#1604;&#1605; &#1610;&#1578;&#1605; &#1575;&#1587;&#1578;&#1604;&#1575;&#1605;&#1607;&#1575; &#1576;&#1593;&#1583;.</b><br> &#1573;&#1584;&#1575; &#1602;&#1605;&#1578; &#1576;&#1573;&#1585;&#1587;&#1575;&#1604;&#1607;&#1575; %coinNames% (&#1576;&#1575;&#1604;&#1592;&#1576;&#1591; %coinName% &#1605;&#1576;&#1604;&#1594; &#1601;&#1610; &#1583;&#1601;&#1593; &#1608;&#1575;&#1581;&#1583;), &#1610;&#1585;&#1580;&#1609; &#1575;&#1604;&#1573;&#1606;&#1578;&#1592;&#1575;&#1585; &#1576;&#1590;&#1593; &#1583;&#1602;&#1575;&#1574;&#1602; &#1604;&#1573;&#1587;&#1578;&#1604;&#1575;&#1605;&#1607;&#1605; &#1605;&#1606; &#1582;&#1604;&#1575;&#1604; %coinName% &#1606;&#1592;&#1575;&#1605; &#1575;&#1604;&#1583;&#1601;&#1593;. &#1573;&#1584;&#1575; &#1602;&#1605;&#1578; &#1576;&#1573;&#1585;&#1587;&#1575;&#1604; &#1605;&#1576;&#1575;&#1604;&#1594; &#1571;&#1582;&#1585;&#1609;, &#1606;&#1592;&#1575;&#1605; &#1575;&#1604;&#1583;&#1601;&#1593; &#1587;&#1608;&#1601; &#1610;&#1580;&#1575;&#1607;&#1604; &#1575;&#1604;&#1589;&#1601;&#1602;&#1577;&#1548; &#1608;&#1587;&#1608;&#1601; &#1578;&#1581;&#1578;&#1575;&#1580; &#1604;&#1573;&#1585;&#1587;&#1575;&#1604; &#1575;&#1604;&#1605;&#1576;&#1604;&#1594; &#1575;&#1604;&#1589;&#1581;&#1610;&#1581; &#1605;&#1585;&#1577; &#1571;&#1582;&#1585;&#1609;",
Expand Down
2 changes: 1 addition & 1 deletion js/cryptobox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership
-----------------------------------------------------------

Version 1.3.14
Version 1.3.15


**GoUrl Official Bitcoin/Altcoin Payment Gateway for Wordpress 3.5 or higher version**
Expand All @@ -16,7 +16,7 @@ Accept Bitcoin, Litecoin, Dogecoin, Dash, Speedcoin, Reddcoin, Potcoin, Featherc
* Screenshots - [https://gourl.io/bitcoin-wordpress-plugin.html#screenshot](https://gourl.io/bitcoin-wordpress-plugin.html#screenshot)
* Requires at least: 3.5
* Tested up to: 4.8
* Stable Tag: 1.3.14
* Stable Tag: 1.3.15
* License: GNU Version 2 or Any Later Version


Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Tags: bitcoin, bitcoin payments, bitcoins, affiliate program, cryptocurrency, af

Requires at least: 3.5
Tested up to: 4.8
Stable Tag: 1.3.14
Stable Tag: 1.3.15
License: GNU Version 2 or Any Later Version
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -180,6 +180,9 @@ Yes, we offer [Free Technical Support](https://gourl.io/view/contact/Contact_Us.

== Changelog ==

= 1.3.15 =
* Added Turkish Language (Thanks to Gezgin)

= 1.3.14 =
* Added Italian Language (Thanks to Lorenzo)

Expand Down Expand Up @@ -267,4 +270,3 @@ Add Pay-Per-Product, Pay-Per-Membership
This is the first version of GoUrl Bitcoin Payment Gateway & Paid Downloads & Membership Plugin



0 comments on commit 3740c3f

Please sign in to comment.