Source Code Documentation


s2member\includes\funcs.inc.php


  1. <?php
  2. /**
  3. * Loads functions created by the s2Member plugin.
  4. *
  5. * Copyright: © 2009-2011
  6. * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
  7. * (coded in the USA)
  8. *
  9. * Released under the terms of the GNU General Public License.
  10. * You should have received a copy of the GNU General Public License,
  11. * along with this software. In the main directory, see: /licensing/
  12. * If not, see: {@link http://www.gnu.org/licenses/}.
  13. *
  14. * @package s2Member
  15. * @since 3.0
  16. */
  17. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  18. exit ("Do not access this file directly.");
  19. /*
  20. Include all of the functions that came with this plugin.
  21. */
  22. if (is_dir ($ws_plugin__s2member_temp_dir = dirname (__FILE__) . "/functions"))
  23. foreach (scandir ($ws_plugin__s2member_temp_dir) as $ws_plugin__s2member_temp_s)
  24. if (preg_match ("/\.php$/", $ws_plugin__s2member_temp_s) && $ws_plugin__s2member_temp_s !== "index.php")
  25. include_once $ws_plugin__s2member_temp_dir . "/" . $ws_plugin__s2member_temp_s;
  26. unset ($ws_plugin__s2member_temp_dir, $ws_plugin__s2member_temp_s);
  27. ?>

s2member\includes\funcs.inc.php

Source Code Documentation