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

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

170 lines 5.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The main plugin file.
4 *
5 * This file loads the plugin after checking
6 * PHP, WordPress® and other compatibility requirements.
7 *
8 * Copyright: © 2009-2011
9 * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
10 * ( coded in the USA )
11 *
12 * Released under the terms of the GNU General Public License.
13 * You should have received a copy of the GNU General Public License,
14 * along with this software. In the main directory, see: /licensing/
15 * If not, see: {@link http://www.gnu.org/licenses/}.
16 *
17 * @package s2Member
18 * @since 1.0
19 */
20 /* -- This section for WordPress® parsing. ------------------------------------------------------------------------------
21
22 Version: 111216
23 Stable tag: 111216
24 Framework: WS-P-110523
25
26 SSL Compatible: yes
27 bbPress Compatible: yes
28 WordPress Compatible: yes
29 BuddyPress Compatible: yes
30 WP Multisite Compatible: yes
31 Multisite Blog Farm Compatible: yes
32
33 PayPal® Standard Compatible: yes
34 PayPal® Pro Compatible: yes w/ s2Member Pro
35 Google® Checkout Compatible: yes w/ s2Member Pro
36 Authorize.Net® Compatible: yes w/ s2Member Pro
37 ClickBank® Compatible: yes w/ s2Member Pro
38 AliPay® Compatible: yes w/ s2Member Pro
39 ccBill® Compatible: yes w/ s2Member Pro
40
41 Tested up to: 3.3
42 Requires at least: 3.2
43 Requires: WordPress® 3.2+, PHP 5.2.3+
44
45 Copyright: © 2009 WebSharks, Inc.
46 License: GNU General Public License
47 Contributors: WebSharks, PriMoThemes
48 Author URI: http://www.primothemes.com/
49 Author: PriMoThemes.com / WebSharks, Inc.
50 Donate link: http://www.primothemes.com/donate/
51
52 Text Domain: s2member
53 Domain Path: /includes/translations
54
55 Plugin Name: s2Member
56 Video Tutorials: http://www.s2member.com/videos/
57 Pro Module / Home Page: http://www.s2member.com/
58 Pro Module / Prices: http://www.s2member.com/prices/
59 Forum URI: http://www.primothemes.com/forums/viewforum.php?f=4
60 Privacy URI: http://www.primothemes.com/about/privacy-policy/
61 PayPal Pro Integration: http://www.primothemes.com/forums/viewtopic.php?f=4&t=304
62 Professional Installation URI: http://www.s2member.com/professional-installation/
63 Plugin URI: http://www.primothemes.com/post/product/s2member-membership-plugin-with-paypal/
64 Description: s2Member® (Membership w/ PayPal®). Powerful (free) membership capabilities. Protect/secure members only content w/ roles/capabilities for members.
65 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
66
67 -- end section for WordPress® parsing. ------------------------------------------------------------------------------- */
68 if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
69 exit("Do not access this file directly.");
70 /**
71 * The installed version of s2Member.
72 *
73 * @package s2Member
74 * @since 3.0
75 *
76 * @var str
77 */
78 if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
79 define ("WS_PLUGIN__S2MEMBER_VERSION", "111216");
80 /**
81 * Minimum PHP version required to run s2Member.
82 *
83 * @package s2Member
84 * @since 3.0
85 *
86 * @var str
87 */
88 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION"))
89 define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2.3");
90 /**
91 * Minimum WordPress® version required to run s2Member.
92 *
93 * @package s2Member
94 * @since 3.0
95 *
96 * @var str
97 */
98 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION"))
99 define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.2");
100 /**
101 * Minimum Pro version required by the Framework.
102 *
103 * @package s2Member
104 * @since 3.0
105 *
106 * @var str
107 */
108 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
109 define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "111216");
110 /*
111 Several compatibility checks.
112 If all pass, load the s2Member plugin.
113 */
114 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"]))
115 {
116 $GLOBALS["WS_PLUGIN__"]["s2member"]["l"] = __FILE__;
117 /*
118 Hook before loaded.
119 */
120 do_action("ws_plugin__s2member_before_loaded");
121 /*
122 System configuraton.
123 */
124 include_once dirname (__FILE__) . "/includes/syscon.inc.php";
125 /*
126 Hooks and Filters.
127 */
128 include_once dirname (__FILE__) . "/includes/hooks.inc.php";
129 /*
130 Hook after system config & Hooks are loaded.
131 */
132 do_action("ws_plugin__s2member_config_hooks_loaded");
133 /*
134 Load a possible Pro module, if/when available.
135 */
136 if (apply_filters ("ws_plugin__s2member_load_pro", true) && file_exists (dirname (__FILE__) . "-pro/pro-module.php"))
137 include_once dirname (__FILE__) . "-pro/pro-module.php";
138 /*
139 Configure options and their defaults.
140 */
141 ws_plugin__s2member_configure_options_and_their_defaults ();
142 /*
143 Function includes.
144 */
145 include_once dirname (__FILE__) . "/includes/funcs.inc.php";
146 /*
147 Include Shortcodes.
148 */
149 include_once dirname (__FILE__) . "/includes/codes.inc.php";
150 /*
151 Hooks after loaded.
152 */
153 do_action("ws_plugin__s2member_loaded");
154 do_action("ws_plugin__s2member_after_loaded");
155 }
156 /*
157 Else NOT compatible. Do we need admin compatibility errors now?
158 */
159 else if (is_admin ()) /* Admin compatibility errors. */
160 {
161 if (!version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">="))
162 {
163 add_action ("all_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>\';'));
164 }
165 else if (!version_compare (get_bloginfo ("version"), WS_PLUGIN__S2MEMBER_MIN_WP_VERSION, ">="))
166 {
167 add_action ("all_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>\';'));
168 }
169 }
170 ?>