Source Code Documentation


pro\s2member-pro\includes\menu-pages\unlimited-level-instructions.inc.php


  1. <?php
  2. /**
  3. * Menu page for s2Member Pro (Unlimited Level Instructions).
  4. *
  5. * Copyright: © 2009-2011
  6. * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
  7. * (coded in the USA)
  8. *
  9. * This WordPress® plugin (s2Member Pro) is comprised of two parts:
  10. *
  11. * o (1) Its PHP code is licensed under the GPL license, as is WordPress®.
  12. * You should have received a copy of the GNU General Public License,
  13. * along with this software. In the main directory, see: /licensing/
  14. * If not, see: {@link http://www.gnu.org/licenses/}.
  15. *
  16. * o (2) All other parts of (s2Member Pro); including, but not limited to:
  17. * the CSS code, some JavaScript code, images, and design;
  18. * are licensed according to the license purchased.
  19. * See: {@link http://www.s2member.com/prices/}
  20. *
  21. * Unless you have our prior written consent, you must NOT directly or indirectly license,
  22. * sub-license, sell, resell, or provide for free; part (2) of the s2Member Pro Module;
  23. * or make an offer to do any of these things. All of these things are strictly
  24. * prohibited with part (2) of the s2Member Pro Module.
  25. *
  26. * Your purchase of s2Member Pro includes free lifetime upgrades via s2Member.com
  27. * (i.e. new features, bug fixes, updates, improvements); along with full access
  28. * to our video tutorial library: {@link http://www.s2member.com/videos/}
  29. *
  30. * @package s2Member\Menu_Pages
  31. * @since 1.5
  32. */
  33. if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
  34. exit ("Do not access this file directly.");
  35.  
  36. if (!class_exists ("c_ws_plugin__s2member_pro_menu_page_unlimited_level_instructions"))
  37. {
  38. /**
  39. * Menu page for s2Member Pro (Unlimited Level Instructions).
  40. *
  41. * @package s2Member\Menu_Pages
  42. * @since 110706
  43. */
  44. class c_ws_plugin__s2member_pro_menu_page_unlimited_level_instructions
  45. {
  46. public function __construct ()
  47. {
  48. if (!is_multisite () || !c_ws_plugin__s2member_utils_conds::is_multisite_farm () || is_main_site ())
  49. {
  50. echo '<div class="ws-menu-page-hr"></div>' . "\n";
  51.  
  52. echo '<p><strong>Unlimited Membership Levels (via <code>/wp-config.php</code>)</strong><br />' . "\n";
  53. echo 'With s2Member Pro installed, you may configure an unlimited number of Membership Levels. You can set the number of Membership Levels by adding this line to the top of your <a href="http://codex.wordpress.org/Editing_wp-config.php" target="_blank" rel="external">/wp-config.php</a> file: <code><span style="color:#000000"><span style="color:#0000BB">define</span><span style="color:#007700">(</span><span style="color:#DD0000">"MEMBERSHIP_LEVELS"</span><span style="color:#007700">,&nbsp;</span><span style="color:#0000BB">4</span><span style="color:#007700">);</span></span></code>. This line should be inserted at the top of your <code>/wp-config.php</code> file, right after the <code>&lt;?php</code> tag. Feel free to change the default value of <code>4</code> to whatever you need. The minimum allowed value is <code>' . esc_html ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["min_levels"]) . '</code>. The recommended maximum is <code>' . esc_html ($GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["max_levels"]) . '</code> <em>(when/if needed)</em>.</p>' . "\n";
  54.  
  55. echo '<div class="ws-menu-page-hr" style="margin-bottom:0;"></div>' . "\n";
  56. }
  57. }
  58. }
  59. }
  60.  
  61. new c_ws_plugin__s2member_pro_menu_page_unlimited_level_instructions ();
  62. ?>

pro\s2member-pro\includes\menu-pages\unlimited-level-instructions.inc.php

Source Code Documentation