| 1 |
<?php |
| 2 |
// @codingStandardsIgnoreFile |
| 3 |
/** |
| 4 |
* Loads functions created by the s2Member plugin. |
| 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 3.0 |
| 17 |
*/ |
| 18 |
if(!defined('WPINC')) // MUST have WordPress. |
| 19 |
exit ('Do not access this file directly.'); |
| 20 |
/* |
| 21 |
Include all of the functions that came with this plugin. |
| 22 |
*/ |
| 23 |
if(is_dir($ws_plugin__s2member_temp_dir = dirname(__FILE__).'/functions')) |
| 24 |
foreach(scandir($ws_plugin__s2member_temp_dir) as $ws_plugin__s2member_temp_s) |
| 25 |
if(preg_match('/\.php$/', $ws_plugin__s2member_temp_s) && $ws_plugin__s2member_temp_s !== 'index.php') |
| 26 |
include_once $ws_plugin__s2member_temp_dir.'/'.$ws_plugin__s2member_temp_s; |
| 27 |
unset($ws_plugin__s2member_temp_dir, $ws_plugin__s2member_temp_s); |
| 28 |
|