| 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 |
|