PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 3.5.7
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v3.5.7
260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 120219 120301 All 187 releases
s2member / s2member.php

s2member.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 3.5.7, at s2member.php

116 lines 4.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Copyright: © 2009 WebSharks, Inc. ( coded in the USA )
4 <mailto:support@websharks-inc.com> <http://www.websharks-inc.com/>
5
6 Released under the terms of the GNU General Public License.
7 You should have received a copy of the GNU General Public License,
8 along with this software. In the main directory, see: /licensing/
9 If not, see: <http://www.gnu.org/licenses/>.
10 */
11 /*
12 Version: 3.5.7
13 Stable tag: 3.5.7
14 Framework: WS-P-3.5
15
16 SSL Compatible: yes
17 bbPress Compatible: yes
18 WordPress Compatible: yes
19 BuddyPress Compatible: yes
20 WP Multisite Compatible: yes
21 Multisite Blog Farm Compatible: yes
22
23 PayPal® Standard Compatible: yes
24 PayPal® Pro Compatible: w/ s2Member Pro
25 Google® Checkout Compatible: w/ s2Member Pro
26 ClickBank® Compatible: w/ s2Member Pro
27 AliPay® Compatible: w/ s2Member Pro
28
29 Tested up to: 3.1
30 Requires at least: 3.0
31 Requires: WordPress® 3.0+, PHP 5.2+
32
33 Copyright: © 2009 WebSharks, Inc.
34 License: GNU General Public License
35 Contributors: WebSharks, PriMoThemes
36 Author URI: http://www.primothemes.com/
37 Author: PriMoThemes.com / WebSharks, Inc.
38 Donate link: http://www.primothemes.com/donate/
39
40 Plugin Name: s2Member
41 Pro Module / Prices: http://www.s2member.com/prices/
42 Forum URI: http://www.primothemes.com/forums/viewforum.php?f=4
43 PayPal Pro Integration: http://www.primothemes.com/forums/viewtopic.php?f=4&t=304
44 Professional Installation URI: http://www.primothemes.com/forums/viewtopic.php?f=4&t=107
45 Plugin URI: http://www.primothemes.com/post/product/s2member-membership-plugin-with-paypal/
46 Description: Empowers WordPress® with membership capabilities. Integrates seamlessly with PayPal®. Also compatible with Multisite Networking, and even with BuddyPress if you like.
47 Tags: membership, members, member, register, signup, paypal, paypal pro, pay pal, s2member, authorize.net, google checkout, ccbill, clickbank, alipay, subscriber, members only, buddypress, buddy press, buddy press compatible, shopping cart, checkout, api, options panel included, websharks framework, w3c validated code, includes extensive documentation, highly extensible
48 */
49 /*
50 Direct access denial.
51 */
52 if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
53 exit ("Do not access this file directly.");
54 /*
55 Define versions.
56 */
57 @define ("WS_PLUGIN__S2MEMBER_VERSION", "3.5.7");
58 @define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2");
59 @define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.0");
60 @define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "1.5.7");
61 /*
62 Compatibility checks.
63 */
64 if (version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">=") && version_compare (get_bloginfo ("version"), WS_PLUGIN__S2MEMBER_MIN_WP_VERSION, ">=") && !isset ($GLOBALS["WS_PLUGIN__"]["s2member"]))
65 {
66 $GLOBALS["WS_PLUGIN__"]["s2member"]["l"] = __FILE__;
67 /*
68 Hook before loaded.
69 */
70 do_action ("ws_plugin__s2member_before_loaded");
71 /*
72 System configuraton.
73 */
74 include_once dirname (__FILE__) . "/includes/syscon.inc.php";
75 /*
76 Hooks and Filters.
77 */
78 include_once dirname (__FILE__) . "/includes/hooks.inc.php";
79 /*
80 Hook after system config & Hooks are loaded.
81 */
82 do_action ("ws_plugin__s2member_config_hooks_loaded");
83 /*
84 Load a possible Pro module, if/when available.
85 */
86 if (apply_filters ("ws_plugin__s2member_load_pro", true) && file_exists (dirname (__FILE__) . "-pro/pro-module.php"))
87 include_once dirname (__FILE__) . "-pro/pro-module.php";
88 /*
89 Configure options and their defaults.
90 */
91 ws_plugin__s2member_configure_options_and_their_defaults ();
92 /*
93 Function includes.
94 */
95 include_once dirname (__FILE__) . "/includes/funcs.inc.php";
96 /*
97 Include Shortcodes.
98 */
99 include_once dirname (__FILE__) . "/includes/codes.inc.php";
100 /*
101 Hook after loaded.
102 */
103 do_action ("ws_plugin__s2member_after_loaded");
104 }
105 else if (is_admin ()) /* Admin compatibility errors. */
106 {
107 if (!version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">="))
108 {
109 add_action (( (version_compare (get_bloginfo ("version"), "3.1-RC", ">=")) ? "all_admin_notices" : "admin_notices"), create_function ('', 'echo \'<div class="error fade"><p>You need PHP v\' . WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION . \'+ to use the s2Member plugin.</p></div>\';'));
110 }
111 else if (!version_compare (get_bloginfo ("version"), WS_PLUGIN__S2MEMBER_MIN_WP_VERSION, ">="))
112 {
113 add_action (( (version_compare (get_bloginfo ("version"), "3.1-RC", ">=")) ? "all_admin_notices" : "admin_notices"), create_function ('', 'echo \'<div class="error fade"><p>You need WordPress® v\' . WS_PLUGIN__S2MEMBER_MIN_WP_VERSION . \'+ to use the s2Member plugin.</p></div>\';'));
114 }
115 }
116 ?>