Subscribe2 - Version 10.20.6

Version Description

Download this release

Release Info

Developer tanaylakhani
Plugin Icon 128x128 Subscribe2
Version 10.20.6
Comparing to
See all releases

Code changes from version 10.20.5 to 10.20.6

ChangeLog.txt CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  = 10.20.5 =
2
 
3
  * Make monetization absolutely optional and opt-in
1
+ = 10.20.6 =
2
+
3
+ * Security Fix for readygraph
4
+ * Provide delete readygraph option in more clear way
5
+
6
  = 10.20.5 =
7
 
8
  * Make monetization absolutely optional and opt-in
ReadMe.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://plugins.readygraph.com/donate/
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.1
7
- Stable tag: 10.20.5
8
  License: GPL3
9
 
10
  Sends a list of subscribers emails when you publish new posts. Automate user growth and revenue with ReadyGraph integration.
4
  Tags: posts, subscription, email, subscribe, notify, notification
5
  Requires at least: 3.3
6
  Tested up to: 4.1
7
+ Stable tag: 10.20.6
8
  License: GPL3
9
 
10
  Sends a list of subscribers emails when you publish new posts. Automate user growth and revenue with ReadyGraph integration.
admin/settings.php CHANGED
@@ -157,10 +157,11 @@ echo "<div class=\"wrap\">";
157
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
160
- if( file_exists(plugin_dir_path( __FILE__ ).'/readygraph-extension.php' )) {
 
161
  wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
162
 
163
- echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p></div>';}
164
 
165
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
166
  'templates' => __('Templates', 'subscribe2'),
157
  if ( version_compare($GLOBALS['wp_version'], '3.8', '<=') ) {
158
  echo "<div id=\"icon-options-general\" class=\"icon32\"></div>";
159
  }
160
+
161
+ if( file_exists(plugin_dir_path(dirname(__FILE__ )).'readygraph-extension.php') && (!get_option('readygraph_access_token') || strlen(get_option('readygraph_access_token')) <= 0)) {
162
  wp_enqueue_style('s2_rg_admin_template', S2URL . 'extension/readygraph/assets/css/upgrade.css');
163
 
164
+ echo '<div class="rg_info rg_message"><img src="'.S2URL . 'include/Sign-Alert-icon.png" style="float: left;height: 50px;padding-right: 10px;"><a href="admin.php?page=readygraph-app"><button class="button-warning pure-button" style="float: right; margin-right: 15px;">Connect ReadyGraph</button></a><h3 style="color:white">Grow your site traffic faster: Activate Subscribe2\'s User Growth Engine (ReadyGraph)</h3><p style="color: whitesmoke">Promotion to New Users | Viral Signup Form | Site Update emails | Import Existing Users</p><div class="aa_close"><a href="' . $_SERVER["PHP_SELF"] . '&readygraph_notice=dismiss"><img src="'.S2URL.'extension/readygraph/assets/dialog_close.png"></a></div></div>';}
165
 
166
  $tabs = array('email' => __('Email Settings', 'subscribe2'),
167
  'templates' => __('Templates', 'subscribe2'),
extension/readygraph/admin.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/assets/css/upgrade.css CHANGED
@@ -55,7 +55,11 @@
55
  background-position: -80px 0;
56
  }
57
  }
58
-
 
 
 
 
59
  .pure-button{display:inline-block;*display:inline;zoom:1;line-height:normal;white-space:nowrap;vertical-align:baseline;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button{font-family:inherit;font-size:100%;*font-size:90%;*overflow:visible;padding:1em 1em;color:#444;color:rgba(0,0,0,.8);*color:#444;border:1px solid #999;border:0 rgba(0,0,0,0);background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:hover,.pure-button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:-moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));background-image:-o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset}.pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active{border:0;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4;cursor:not-allowed;box-shadow:none}.pure-button-hidden{display:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}
60
  .button-warning {
61
  color: white;
55
  background-position: -80px 0;
56
  }
57
  }
58
+ .aa_close {
59
+ position: absolute;
60
+ right: 18px;
61
+ top: 18px;
62
+ }
63
  .pure-button{display:inline-block;*display:inline;zoom:1;line-height:normal;white-space:nowrap;vertical-align:baseline;text-align:center;cursor:pointer;-webkit-user-drag:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button{font-family:inherit;font-size:100%;*font-size:90%;*overflow:visible;padding:1em 1em;color:#444;color:rgba(0,0,0,.8);*color:#444;border:1px solid #999;border:0 rgba(0,0,0,0);background-color:#E6E6E6;text-decoration:none;border-radius:2px}.pure-button-hover,.pure-button:hover,.pure-button:focus{filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#1a000000', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,from(transparent),color-stop(40%,rgba(0,0,0,.05)),to(rgba(0,0,0,.1)));background-image:-webkit-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:-moz-linear-gradient(top,rgba(0,0,0,.05) 0,rgba(0,0,0,.1));background-image:-o-linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1));background-image:linear-gradient(transparent,rgba(0,0,0,.05) 40%,rgba(0,0,0,.1))}.pure-button:focus{outline:0}.pure-button-active,.pure-button:active{box-shadow:0 0 0 1px rgba(0,0,0,.15) inset,0 0 6px rgba(0,0,0,.2) inset}.pure-button[disabled],.pure-button-disabled,.pure-button-disabled:hover,.pure-button-disabled:focus,.pure-button-disabled:active{border:0;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);filter:alpha(opacity=40);-khtml-opacity:.4;-moz-opacity:.4;opacity:.4;cursor:not-allowed;box-shadow:none}.pure-button-hidden{display:none}.pure-button::-moz-focus-inner{padding:0;border:0}.pure-button-primary,.pure-button-selected,a.pure-button-primary,a.pure-button-selected{background-color:#0078e7;color:#fff}
64
  .button-warning {
65
  color: white;
extension/readygraph/customize-emails.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/deactivate-readygraph.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/extension.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  // ReadyGraph Extension
3
  //
4
 
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  // ReadyGraph Extension
4
  //
5
 
extension/readygraph/faq.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/footer.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
-
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/functions.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
 
3
  /**
4
  * Represents the view for the administration dashboard.
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
 
4
  /**
5
  * Represents the view for the administration dashboard.
extension/readygraph/go-premium.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/header.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
@@ -116,4 +117,17 @@ include("functions.php");
116
  <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
117
  </div>
118
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  <?php } ?>
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
117
  <p><a href="https://readygraph.com/accounts/payment/?email=<?php echo get_option('readygraph_email', '') ?>" target="_blank" style="color: #b1c1ca" ><img src="<?php echo plugin_dir_url( __FILE__ );?>assets/go-premium.png" height="40px" style="margin:5px" /></a></p>
118
  </div>
119
  </div>
120
+ <?php } else { ?>
121
+ <div style="clear;both;float:right;display:block;width: 10%; height: 50px;margin-right: 3.5%;z-index:999999">
122
+ <div class="btn-group pull-right" style="margin: 15px 10px 0 0;z-index:999999">
123
+ <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" style="background: rgb(66, 139, 202); border-color: #ffffff; color: #ffffff;z-index:999999 ">
124
+ <span class="email-address" style="text-shadow: none;">Settings</span> <span class="caret"></span>
125
+ </button>
126
+ <ul class="dropdown-menu">
127
+ <li><a class="delete" href="<?php $current_url = explode("&", $_SERVER['REQUEST_URI']); echo $current_url[0];?>&action=<?php echo base64_encode("deleteaccount");?>">Delete ReadyGraph</a></li>
128
+ </ul>
129
+ </div>
130
+
131
+ </div>
132
+
133
  <?php } ?>
extension/readygraph/index.php CHANGED
@@ -1 +1,2 @@
1
- <?php // Silence is golden
 
1
+ <?php // Silence is golden
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
extension/readygraph/invitation-email-not-used.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/monetization.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/signup-popup.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/site-profile.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
extension/readygraph/social-feed.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  /**
3
  * Represents the view for the administration dashboard.
4
  *
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  /**
4
  * Represents the view for the administration dashboard.
5
  *
readygraph-extension.php CHANGED
@@ -1,4 +1,5 @@
1
  <?php
 
2
  // Extension Configuration
3
  $s2_plugin_slug = basename(dirname(__FILE__));
4
  $s2_menu_slug = 'readygraph-app';
1
  <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit;
3
  // Extension Configuration
4
  $s2_plugin_slug = basename(dirname(__FILE__));
5
  $s2_menu_slug = 'readygraph-app';
subscribe2.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
- Version: 10.20.5
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
@@ -55,7 +55,7 @@ if ( is_plugin_active_for_network(plugin_basename(__FILE__)) ) {
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
- define( 'S2VERSION', '10.20.5' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );
3
  Plugin Name: Subscribe2
4
  Plugin URI: http://subscribe2.wordpress.com
5
  Description: Notifies an email list when new entries are posted.
6
+ Version: 10.20.6
7
  Author: Matthew Robinson, Tanay Lakhani
8
  Author URI: http://subscribe2.wordpress.com
9
  Licence: GPL3
55
 
56
  // our version number. Don't touch this or any line below
57
  // unless you know exactly what you are doing
58
+ define( 'S2VERSION', '10.20.6' );
59
  define( 'S2PATH', trailingslashit(dirname(__FILE__)) );
60
  define( 'S2DIR', trailingslashit(dirname(plugin_basename(__FILE__))) );
61
  define( 'S2URL', plugin_dir_url(dirname(__FILE__)) . S2DIR );