s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members) - Version 110605

Version Description

  • (s2Member). Bug fix. If File Download protection was enabled, changes introduced in the previous release, were causing some site Administrators to receive a "File Download Limit Exceeded" error under the right circumstances. This has been corrected in the release of s2Member v110605.
Download this release

Release Info

Developer PriMoThemes
Plugin Icon 128x128 s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members)
Version 110605
Comparing to
See all releases

Code changes from version 110604 to 110605

Files changed (3) hide show
  1. includes/classes/files.inc.php +3 -2
  2. readme.txt +5 -2
  3. s2member.php +8 -8
includes/classes/files.inc.php CHANGED
@@ -110,7 +110,7 @@ if (!class_exists ("c_ws_plugin__s2member_files"))
110
{
111
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
112
{
113
- if ($user->has_cap ("s2member_level" . $n)) /* In other words, is this their Role? */
114
{
115
if (!empty ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed"]))
116
if (!empty ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed_days"]))
@@ -118,7 +118,8 @@ if (!class_exists ("c_ws_plugin__s2member_files"))
118
$allowed = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed"];
119
$allowed_days = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed_days"];
120
}
121
- break; /* Break now, no need to continue searching. */
122
}
123
}
124
/**/
110
{
111
for ($n = 0; $n <= $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["levels"]; $n++)
112
{
113
+ if ($user->has_cap ("access_s2member_level" . $n)) /* Do they have access? */
114
{
115
if (!empty ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed"]))
116
if (!empty ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed_days"]))
118
$allowed = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed"];
119
$allowed_days = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["level" . $n . "_file_downloads_allowed_days"];
120
}
121
+ if ($user->has_cap ("s2member_level" . $n)) /* We can stop now, if this is their Role. */
122
+ break; /* Break now. */
123
}
124
}
125
/**/
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
=== s2Member® ( Membership w/ PayPal® ) ===
2
3
- Version: 110604
4
- Stable tag: 110604
5
Framework: WS-P-110523
6
7
SSL Compatible: yes
@@ -173,6 +173,9 @@ Please visit s2Member.com for [video tutorials](http://www.s2member.com/videos/)
173
174
== Changelog ==
175
176
= 110604 ( instead of s2Member v3.6 ) =
177
* **(s2Member/s2Member Pro). Versioning.** Starting with this release, s2Member and s2Member Pro will be released with dated versions following this format: `yymmdd`. The version for this release is: `110604`.
178
* **(s2Member/s2Member Pro). s2Member Security Badge.** An s2Member® Security Badge ( optional ), can be used to express your site's concern for security; demonstrating to all Users/Members that your site ( and the s2Member software ), takes security seriously. However, in order to qualify your site, you MUST generate a Security Encryption Key and pass other security standards. For more information, please check your Dashboard under: `s2Member -> General Options -> Security Badge`.
1
=== s2Member® ( Membership w/ PayPal® ) ===
2
3
+ Version: 110605
4
+ Stable tag: 110605
5
Framework: WS-P-110523
6
7
SSL Compatible: yes
173
174
== Changelog ==
175
176
+ = 110605 =
177
+ * **(s2Member). Bug fix.** If File Download protection was enabled, changes introduced in the previous release, were causing some site Administrators to receive a "File Download Limit Exceeded" error under the right circumstances. This has been corrected in the release of s2Member v110605.
178
+
179
= 110604 ( instead of s2Member v3.6 ) =
180
* **(s2Member/s2Member Pro). Versioning.** Starting with this release, s2Member and s2Member Pro will be released with dated versions following this format: `yymmdd`. The version for this release is: `110604`.
181
* **(s2Member/s2Member Pro). s2Member Security Badge.** An s2Member® Security Badge ( optional ), can be used to express your site's concern for security; demonstrating to all Users/Members that your site ( and the s2Member software ), takes security seriously. However, in order to qualify your site, you MUST generate a Security Encryption Key and pass other security standards. For more information, please check your Dashboard under: `s2Member -> General Options -> Security Badge`.
s2member.php CHANGED
@@ -19,8 +19,8 @@
19
*/
20
/* -- This section for WordPress® parsing. ------------------------------------------------------------------------------
21
22
- Version: 110604
23
- Stable tag: 110604
24
Framework: WS-P-110523
25
26
SSL Compatible: yes
@@ -60,7 +60,7 @@ Tags: membership, members, member, register, signup, paypal, paypal pro, pay pal
60
61
-- end section for WordPress® parsing. ------------------------------------------------------------------------------- */
62
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
63
- exit ("Do not access this file directly.");
64
/**
65
* The installed version of s2Member.
66
*
@@ -70,7 +70,7 @@ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
70
* @var str
71
*/
72
if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
73
- define ("WS_PLUGIN__S2MEMBER_VERSION", "110604");
74
/**
75
* Minimum PHP version required to run s2Member.
76
*
@@ -100,7 +100,7 @@ if (!defined ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION"))
100
* @var str
101
*/
102
if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
103
- define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "110604");
104
/*
105
Several compatibility checks.
106
If all pass, load the s2Member plugin.
@@ -111,7 +111,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">=") &&
111
/*
112
Hook before loaded.
113
*/
114
- do_action ("ws_plugin__s2member_before_loaded");
115
/*
116
System configuraton.
117
*/
@@ -123,7 +123,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">=") &&
123
/*
124
Hook after system config & Hooks are loaded.
125
*/
126
- do_action ("ws_plugin__s2member_config_hooks_loaded");
127
/*
128
Load a possible Pro module, if/when available.
129
*/
@@ -144,7 +144,7 @@ if (version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">=") &&
144
/*
145
Hook after loaded.
146
*/
147
- do_action ("ws_plugin__s2member_after_loaded");
148
}
149
/*
150
Else NOT compatible. Do we need admin compatibility errors now?
19
*/
20
/* -- This section for WordPress® parsing. ------------------------------------------------------------------------------
21
22
+ Version: 110605
23
+ Stable tag: 110605
24
Framework: WS-P-110523
25
26
SSL Compatible: yes
60
61
-- end section for WordPress® parsing. ------------------------------------------------------------------------------- */
62
if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
63
+ exit("Do not access this file directly.");
64
/**
65
* The installed version of s2Member.
66
*
70
* @var str
71
*/
72
if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
73
+ define ("WS_PLUGIN__S2MEMBER_VERSION", "110605");
74
/**
75
* Minimum PHP version required to run s2Member.
76
*
100
* @var str
101
*/
102
if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
103
+ define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "110605");
104
/*
105
Several compatibility checks.
106
If all pass, load the s2Member plugin.
111
/*
112
Hook before loaded.
113
*/
114
+ do_action("ws_plugin__s2member_before_loaded");
115
/*
116
System configuraton.
117
*/
123
/*
124
Hook after system config & Hooks are loaded.
125
*/
126
+ do_action("ws_plugin__s2member_config_hooks_loaded");
127
/*
128
Load a possible Pro module, if/when available.
129
*/
144
/*
145
Hook after loaded.
146
*/
147
+ do_action("ws_plugin__s2member_after_loaded");
148
}
149
/*
150
Else NOT compatible. Do we need admin compatibility errors now?