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