Source Code Documentation


s2member\s2member-o.php


  1. <?php
  2. /**
  3. * WordPress® with s2Member only.
  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 110912
  16. */
  17. include_once dirname (__FILE__) . "/includes/classes/utils-s2o.inc.php";
  18.  
  19. if (($ws_plugin__s2member_o["wp_dir"] = c_ws_plugin__s2member_utils_s2o::wp_dir (dirname (__FILE__), dirname ($_SERVER["SCRIPT_FILENAME"]))))
  20. {
  21. if (($ws_plugin__s2member_o["wp_settings_as"] = c_ws_plugin__s2member_utils_s2o::wp_settings_as ($ws_plugin__s2member_o["wp_dir"], __FILE__)))
  22. {
  23. /**
  24. * Short initialization mode for WordPress®.
  25. *
  26. * @package s2Member
  27. * @since 110912
  28. *
  29. * @var bool
  30. */
  31. define ("SHORTINIT", true);
  32. /**
  33. * Flag indicating only s2Member is being loaded.
  34. *
  35. * @package s2Member
  36. * @since 110912
  37. *
  38. * @var bool
  39. */
  40. define ("WS_PLUGIN__S2MEMBER_ONLY", true);
  41. /*
  42. Load WordPress®.
  43. */
  44. require($ws_plugin__s2member_o["wp_dir"] . "/wp-load.php");
  45. eval ("?>" . /* Settings after ``SHORTINIT``. */ $ws_plugin__s2member_o["wp_settings_as"]);
  46. }
  47. else // Else fallback on full WordPress®.
  48. require($ws_plugin__s2member_o["wp_dir"] . "/wp-load.php");
  49. }
  50. unset ($ws_plugin__s2member_o);
  51. ?>

s2member\s2member-o.php

Source Code Documentation