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

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

168 lines 5.6 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: 110913
23 Stable tag: 110913
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: w/ s2Member Pro
35 Google® Checkout Compatible: w/ s2Member Pro
36 Authorize.Net® Compatible: w/ s2Member Pro
37 ClickBank® Compatible: w/ s2Member Pro
38 AliPay® Compatible: w/ s2Member Pro
39 ccBill® Compatible: w/ s2Member Pro
40
41 Tested up to: 3.2.1
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 / Prices: http://www.s2member.com/prices/
58 Forum URI: http://www.primothemes.com/forums/viewforum.php?f=4
59 Privacy URI: http://www.primothemes.com/about/privacy-policy/
60 PayPal Pro Integration: http://www.primothemes.com/forums/viewtopic.php?f=4&t=304
61 Professional Installation URI: http://www.s2member.com/professional-installation/
62 Plugin URI: http://www.primothemes.com/post/product/s2member-membership-plugin-with-paypal/
63 Description: s2Member® (Membership w/ PayPal®). Powerful (free) membership capabilities. Protect/secure members only content w/ roles/capabilities for members.
64 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
65
66 -- end section for WordPress® parsing. ------------------------------------------------------------------------------- */
67 if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
68 exit ("Do not access this file directly.");
69 /**
70 * The installed version of s2Member.
71 *
72 * @package s2Member
73 * @since 3.0
74 *
75 * @var str
76 */
77 if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
78 define ("WS_PLUGIN__S2MEMBER_VERSION", "110913");
79 /**
80 * Minimum PHP version required to run s2Member.
81 *
82 * @package s2Member
83 * @since 3.0
84 *
85 * @var str
86 */
87 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION"))
88 define ("WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION", "5.2.3");
89 /**
90 * Minimum WordPress® version required to run s2Member.
91 *
92 * @package s2Member
93 * @since 3.0
94 *
95 * @var str
96 */
97 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION"))
98 define ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION", "3.2");
99 /**
100 * Minimum Pro version required by the Framework.
101 *
102 * @package s2Member
103 * @since 3.0
104 *
105 * @var str
106 */
107 if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
108 define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "110913");
109 /*
110 Several compatibility checks.
111 If all pass, load the s2Member plugin.
112 */
113 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"]))
114 {
115 $GLOBALS["WS_PLUGIN__"]["s2member"]["l"] = __FILE__;
116 /*
117 Hook before loaded.
118 */
119 do_action ("ws_plugin__s2member_before_loaded");
120 /*
121 System configuraton.
122 */
123 include_once dirname (__FILE__) . "/includes/syscon.inc.php";
124 /*
125 Hooks and Filters.
126 */
127 include_once dirname (__FILE__) . "/includes/hooks.inc.php";
128 /*
129 Hook after system config & Hooks are loaded.
130 */
131 do_action ("ws_plugin__s2member_config_hooks_loaded");
132 /*
133 Load a possible Pro module, if/when available.
134 */
135 if (apply_filters ("ws_plugin__s2member_load_pro", true) && file_exists (dirname (__FILE__) . "-pro/pro-module.php"))
136 include_once dirname (__FILE__) . "-pro/pro-module.php";
137 /*
138 Configure options and their defaults.
139 */
140 ws_plugin__s2member_configure_options_and_their_defaults ();
141 /*
142 Function includes.
143 */
144 include_once dirname (__FILE__) . "/includes/funcs.inc.php";
145 /*
146 Include Shortcodes.
147 */
148 include_once dirname (__FILE__) . "/includes/codes.inc.php";
149 /*
150 Hook after loaded.
151 */
152 do_action ("ws_plugin__s2member_after_loaded");
153 }
154 /*
155 Else NOT compatible. Do we need admin compatibility errors now?
156 */
157 else if (is_admin ()) /* Admin compatibility errors. */
158 {
159 if (!version_compare (PHP_VERSION, WS_PLUGIN__S2MEMBER_MIN_PHP_VERSION, ">="))
160 {
161 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>\';'));
162 }
163 else if (!version_compare (get_bloginfo ("version"), WS_PLUGIN__S2MEMBER_MIN_WP_VERSION, ">="))
164 {
165 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>\';'));
166 }
167 }
168 ?>