Source Code Documentation


s2member-pro\includes\menu-pages\gen-ops-captcha-ops.inc.php


  1. <?php
  2. /**
  3. * Menu page for s2Member Pro ( Login Welcome Page / One-Time-Offers ).
  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 111203
  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_gen_ops_captcha_ops"))
  37. {
  38. /**
  39. * Menu page for s2Member Pro ( Captcha Anti-Spam Preferences ).
  40. *
  41. * @package s2Member\Menu_Pages
  42. * @since 111203
  43. */
  44. class c_ws_plugin__s2member_pro_menu_page_gen_ops_captcha_ops
  45. {
  46. public function __construct ()
  47. {
  48. echo '<div class="ws-menu-page-group" title="CAPTCHA Anti-Spam Security">' . "\n";
  49. /**/
  50. echo '<div class="ws-menu-page-section ws-plugin--s2member-pro-captchas-section">' . "\n";
  51. echo '<h3>CAPTCHA Anti-Spam Security ( for s2Member Pro Forms )</h3>' . "\n";
  52. echo '<p>Please note. s2Member does NOT introduce a <a href="http://www.s2member.com/captcha-definition" target="_blank" rel="external">CAPTCHA</a> <em>( i.e. a challenge-response )</em>, into any core feature for WordPress®. We\'ve <strong>excluded</strong> this functionality on purpose, because many site owners prefer to use a more comprehensive CAPTCHA plugin that encompasses all aspects of their site. We recommend <a href="http://wordpress.org/extend/plugins/si-captcha-for-wordpress/" target="_blank" rel="external">this one</a>. <strong>However</strong>, s2Member Pro Forms for PayPal® Pro and Authorize.Net® <em>( including Free Registration Forms )</em> CAN be configured with s2Member, to use Google\'s reCAPTCHA™ service <em>( which is free )</em>. Just add this Attribute to your Pro Form Shortcode: <code>captcha="clean"</code>.</p>' . "\n";
  53. echo '<p><strong>Regarding s2Member Pro Forms.</strong> s2Member comes with a default set of reCAPTCHA™ Keys, both Public and Private. If you leave the fields below empty, s2Member will simply use its own default set of Keys for reCAPTCHA™. However, if you\'re using s2Member Pro Forms, we DO suggest that you acquire your own set of reCAPTCHA™ Keys <em>( it\'s free )</em>. It\'s better to have your own set of Keys, specifically for your domain. Please follow <a href="http://www.s2member.com/recaptcha-create-keys" target="_blank" rel="external">this link</a> to obtain Public/Private Keys for the reCAPTCHA™ service.</p>' . "\n";
  54. /**/
  55. echo '<table class="form-table">' . "\n";
  56. echo '<tbody>' . "\n";
  57. echo '<tr>' . "\n";
  58. /**/
  59. echo '<th>' . "\n";
  60. echo '<label for="ws-plugin--s2member-pro-recaptcha-public-key">' . "\n";
  61. echo 'reCAPTCHA™ Public Key:' . "\n";
  62. echo '</label>' . "\n";
  63. echo '</th>' . "\n";
  64. /**/
  65. echo '</tr>' . "\n";
  66. echo '<tr>' . "\n";
  67. /**/
  68. echo '<td>' . "\n";
  69. echo '<input type="text" autocomplete="off" name="ws_plugin__s2member_pro_recaptcha_public_key" id="ws-plugin--s2member-pro-recaptcha-public-key" value="' . format_to_edit ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_recaptcha_public_key"]) . '" />' . "\n";
  70. echo '</td>' . "\n";
  71. /**/
  72. echo '</tr>' . "\n";
  73. echo '<tr>' . "\n";
  74. /**/
  75. echo '<th>' . "\n";
  76. echo '<label for="ws-plugin--s2member-pro-recaptcha-private-key">' . "\n";
  77. echo 'reCAPTCHA™ Private Key:' . "\n";
  78. echo '</label>' . "\n";
  79. echo '</th>' . "\n";
  80. /**/
  81. echo '</tr>' . "\n";
  82. echo '<tr>' . "\n";
  83. /**/
  84. echo '<td>' . "\n";
  85. echo '<input type="password" autocomplete="off" name="ws_plugin__s2member_pro_recaptcha_private_key" id="ws-plugin--s2member-pro-recaptcha-private-key" value="' . format_to_edit ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["pro_recaptcha_private_key"]) . '" />' . "\n";
  86. echo '</td>' . "\n";
  87. /**/
  88. echo '</tr>' . "\n";
  89. echo '</tbody>' . "\n";
  90. echo '</table>' . "\n";
  91. echo '</div>' . "\n";
  92. /**/
  93. echo '</div>' . "\n";
  94. }
  95. }
  96. }
  97. /**/
  98. new c_ws_plugin__s2member_pro_menu_page_gen_ops_captcha_ops ();
  99. ?>

s2member-pro\includes\menu-pages\gen-ops-captcha-ops.inc.php

Source Code Documentation