PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 260805
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v260805
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-o.php

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

56 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 // @codingStandardsIgnoreFile
3 /**
4 * WordPress with s2Member only.
5 *
6 * Copyright: © 2009-2011
7 * {@link http://websharks-inc.com/ WebSharks, Inc.}
8 * (coded in the USA)
9 *
10 * Released under the terms of the GNU General Public License.
11 * You should have received a copy of the GNU General Public License,
12 * along with this software. In the main directory, see: /licensing/
13 * If not, see: {@link http://www.gnu.org/licenses/}.
14 *
15 * @package s2Member
16 * @since 110912
17 */
18 define ('_WS_PLUGIN__S2MEMBER_ONLY', TRUE);
19
20 include_once dirname(__FILE__).'/src/includes/classes/utils-s2o.inc.php';
21
22 if(($ws_plugin__s2member_o['wp_dir'] = c_ws_plugin__s2member_utils_s2o::wp_dir(dirname(__FILE__), dirname($_SERVER['SCRIPT_FILENAME']))))
23 {
24 if(($ws_plugin__s2member_o['wp_settings_as'] = c_ws_plugin__s2member_utils_s2o::wp_settings_as($ws_plugin__s2member_o['wp_dir'], __FILE__)))
25 {
26 /**
27 * Short initialization mode for WordPress.
28 *
29 * @package s2Member
30 * @since 110912
31 *
32 * @var bool
33 */
34 define ('SHORTINIT', TRUE);
35
36 /**
37 * Flag indicating only s2Member is being loaded.
38 *
39 * @package s2Member
40 * @since 110912
41 *
42 * @var bool
43 */
44 define ('WS_PLUGIN__S2MEMBER_ONLY', TRUE);
45
46 /*
47 Load WordPress.
48 */
49 require($ws_plugin__s2member_o['wp_dir'].'/wp-load.php');
50 eval ('?>'.$ws_plugin__s2member_o['wp_settings_as']);
51 }
52 else // Else fallback on full WordPress.
53 require($ws_plugin__s2member_o['wp_dir'].'/wp-load.php');
54 }
55 unset($ws_plugin__s2member_o);
56