Skip to content

Commit

Permalink
v1.4 released
Browse files Browse the repository at this point in the history
  • Loading branch information
amin0_000 committed Apr 27, 2015
1 parent b5c8c46 commit 5ce4a30
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion software-license-manager/includes/slm-api-listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function creation_api_listener() {
$options = get_option('slm_plugin_options');
$lic_key_prefix = $options['lic_prefix'];

SLM_API_Utility::verify_secret_key(); //Verify the secret key first.
SLM_API_Utility::verify_secret_key_for_creation(); //Verify the secret key first.

$slm_debug_logger->log_debug("API - license creation request received.");

Expand Down
10 changes: 10 additions & 0 deletions software-license-manager/includes/slm-api-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ static function verify_secret_key() {
SLM_API_Utility::output_api_response($args);
}
}

static function verify_secret_key_for_creation() {
$slm_options = get_option('slm_plugin_options');
$right_secret_key = $slm_options['lic_creation_secret'];
$received_secret_key = strip_tags($_REQUEST['secret_key']);
if ($received_secret_key != $right_secret_key) {
$args = (array('result' => 'error', 'message' => 'License Creation API secret key is invalid'));
SLM_API_Utility::output_api_response($args);
}
}

static function insert_license_data_internal($fields) {
/* The fields array should have values for the following keys
Expand Down
5 changes: 4 additions & 1 deletion software-license-manager/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://www.tipsandtricks-hq.com/software-license-manager-plugin-fo
Tags: license key, serial key, manager, license, serial, key, selling, sell, license activation, manage license
Requires at least: 3.0
Tested up to: 4.2
Stable tag: 1.3
Stable tag: 1.4
License: GPLv2 or later

Create and manage license keys for your software applications easily
Expand Down Expand Up @@ -43,6 +43,9 @@ https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress

== Changelog ==

= 1.4 =
* Updated the license key creation API check to use the value from "Secret Key for License Creation" field.

= 1.3 =
* Added more sanitization.

Expand Down
4 changes: 2 additions & 2 deletions software-license-manager/slm_bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Software License Manager
Version: v1.3
Version: v1.4
Plugin URI: https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress
Author: Tips and Tricks HQ
Author URI: https://www.tipsandtricks-hq.com/
Expand All @@ -14,7 +14,7 @@

//Short name/slug "SLM" or "slm"

define('WP_LICENSE_MANAGER_VERSION', "1.3");
define('WP_LICENSE_MANAGER_VERSION', "1.4");
define('WP_LICENSE_MANAGER_DB_VERSION', '1.2');
define('WP_LICENSE_MANAGER_FOLDER', dirname(plugin_basename(__FILE__)));
define('WP_LICENSE_MANAGER_URL', plugins_url('',__FILE__));
Expand Down
11 changes: 0 additions & 11 deletions software-license-manager/to-do.txt

This file was deleted.

0 comments on commit 5ce4a30

Please sign in to comment.