Skip to content

Commit

Permalink
2.3.3.87
Browse files Browse the repository at this point in the history
  • Loading branch information
minimus committed Jun 3, 2017
1 parent 9601d47 commit 8742b7a
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion js/sam.pro.ad.editor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/sam.pro.ad.editor.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/sam.pro.place.editor.min.js

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

2 changes: 1 addition & 1 deletion js/sam.pro.place.editor.min.js.map

Large diffs are not rendered by default.

16 changes: 14 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://uncle-sam.info
Tags: ad, advertising, banner, rotator, simple ads manager
Requires at least: 4.5
Tested up to: 4.8
Stable tag: 2.3.0.83
Stable tag: 2.3.3.87
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -40,7 +40,7 @@ The public version of SAM Pro (Free Edition) also available at [GitHub](https://

**Server**:

* PHP 5.3+
* PHP 5.3.3+
* MySQL 5.1+
* 128 MB memory limit
* 128 MB Wordpress memory limit
Expand Down Expand Up @@ -106,6 +106,12 @@ The data structure of plugin Simple Ads Manager is different from the data struc

== Changelog ==

= 2.3.3.87 =
* Some minor bugs have been resolved
= 2.3.2.85 =
* The bug of the Link Ads action has been resolved
= 2.3.1.84 =
* The bug of using OpenSSL has been resolved
= 2.3.0.83 =
* Deprecated methods of Mcrypt have been replaced with OpenSSL methods (PHP 7.0 warnings)
= 2.2.0.81 =
Expand Down Expand Up @@ -192,6 +198,12 @@ The data structure of plugin Simple Ads Manager is different from the data struc

== Upgrade Notice ==

= 2.3.3.87 =
Some minor bugs have been resolved.
= 2.3.2.85 =
The bug of the Link Ads action has been resolved.
= 2.3.1.84 =
The bug of using OpenSSL has been resolved.
= 2.3.0.83 =
Deprecated methods of Mcrypt have been replaced with OpenSSL methods (PHP 7.0 warnings)
= 2.2.0.81 =
Expand Down
7 changes: 5 additions & 2 deletions sam-pro-admin-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,16 @@ public function doAction() {
if ( $sid != '' && $pid != 0 ) {
$aValues = explode( ',', $sid );
foreach ( $aValues as $val ) {
$values .= ( ( ( $values == '' ) ? '' : ',' ) . "({$pid},{$val})" );
if ( ! empty( $val ) ) {
$values .= ( ( ( $values == '' ) ? '' : ',' ) . "({$pid},{$val})" );
}
}
$sql = "INSERT INTO {$paTable} (pid, aid) VALUES {$values};";
$affected = $wpdb->query( $sql );
$out = array(
'sid' => $sid,
'done' => $affected
'done' => $affected,
'sql' => $sql
);
$sql = "UPDATE {$paTable} spa SET spa.hits = 0 WHERE spa.pid = {$pid};";
$wpdb->query( $sql );
Expand Down
2 changes: 1 addition & 1 deletion sam-pro-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class SamProCore {
);

public function __construct() {
define( 'SAM_PRO_VERSION', '2.3.0.83' );
define( 'SAM_PRO_VERSION', '2.3.3.87' );
define( 'SAM_PRO_DB_VERSION', '1.1' );
define( 'SAM_PRO_PATH', dirname( __FILE__ ) );
define( 'SAM_PRO_URL', plugins_url( '/', __FILE__ ) );
Expand Down
2 changes: 1 addition & 1 deletion sam-pro-free.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: SAM Pro (Free Edition)
Plugin URI: http://uncle-sam.info/
Description: Flexible advertisements management system of the WordPress blog. Visit <a href="http://uncle-sam.info/">plugin Home Site</a> for more details.
Version: 2.3.0.83
Version: 2.3.3.87
Author: minimus
Author URI: http://blogcoding.ru
Text Domain: sam-pro-free
Expand Down
2 changes: 1 addition & 1 deletion sam-pro-front-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function decrypt( $input, $spKey ) {
$txt = base64_decode( $input );
$key = pack( 'H*', $spKey );
$iv = openssl_random_pseudo_bytes( 16 );
$plaintext = openssl_decrypt( $txt, 'AES-128-CBC', $key, 'OPENSSL_RAW_DATA', $iv );
$plaintext = openssl_decrypt( $txt, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv );
$clauses = unserialize( $plaintext );

return $clauses;
Expand Down
2 changes: 1 addition & 1 deletion sam-pro-front.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public function headerScripts() {
$key = pack( 'H*', $options['spkey'] );
$txt = serialize( $this->clause );
$iv = openssl_random_pseudo_bytes( 16 );
$clauses = openssl_encrypt( $txt, 'AES-128-CBC', $key, 'OPENSSL_RAW_DATA', $iv );
$clauses = openssl_encrypt( $txt, 'AES-128-CBC', $key, OPENSSL_RAW_DATA, $iv );
$clauses64 = base64_encode( $clauses );

do_action( 'sam_pro_front_styles', $locale, $postId );
Expand Down

0 comments on commit 8742b7a

Please sign in to comment.