Changeset 856577
- Timestamp:
- 02/12/2014 07:02:56 PM (12 years ago)
- Location:
- agreeable
- Files:
-
- 1 added
- 2 edited
- 3 copied
-
tags/0.1.2.1 (added)
-
tags/0.1.2.1/agreeable-options.php (copied) (copied from agreeable/trunk/agreeable-options.php) (1 diff)
-
tags/0.1.2.1/agreeable.php (copied) (copied from agreeable/trunk/agreeable.php) (5 diffs)
-
tags/0.1.2.1/readme.txt (copied) (copied from agreeable/trunk/readme.txt)
-
trunk/agreeable-options.php (modified) (1 diff)
-
trunk/agreeable.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
agreeable/tags/0.1.2.1/agreeable-options.php
r856507 r856577 4 4 5 5 $dbfail = $_POST['ag_fail']; 6 $db termm= stripslashes($dbfail);6 $dbfail = stripslashes($dbfail); 7 7 update_option('ag_fail', $dbfail); 8 8 -
agreeable/tags/0.1.2.1/agreeable.php
r856571 r856577 4 4 Plugin URI: http://wordpress.org/extend/plugins/agreeable 5 5 Description: Add a required "Agree to terms" checkbox to login and/or register forms. Based on the I-Agree plugin by Michael Stursberg. 6 Version: 0.1.2 6 Version: 0.1.2.1 7 7 Author: buildcreate, thesturs 8 8 Author URI: http://buildcreate.com … … 14 14 $dbregister = get_option('ag_register'); 15 15 16 if( in_array($GLOBALS['pagenow'], array('wp-login.php')) && $dblogin == 1 || in_array($GLOBALS['pagenow'], array('wp-register.php', 'index.php')) && $dbregister == 1) {16 if($GLOBALS['pagenow'] == 'wp-login.php' && $dblogin == 1 || in_array('login', $body_class) && $dblogin == 1 || $GLOBALS['pagenow'] == 'wp-register.php' && $dbregister == 1 || in_array('register', $body_class) && $dbregister == 1 ) { 17 17 18 18 $dbfail = get_option('ag_fail'); … … 50 50 51 51 // Add an element to the login form, which must be checked 52 echo '<div id="terms-accept"><label><input type="checkbox" name="login_accept" id="login_accept" /> <a target="_BLANK" href="'.$dburl.'">'.$dbtermm.'</a></label></div> ';52 echo '<div id="terms-accept"><label><input type="checkbox" name="login_accept" id="login_accept" /> <a target="_BLANK" href="'.$dburl.'">'.$dbtermm.'</a></label></div><br>'; 53 53 } 54 54 } … … 67 67 // Add it to the appropriate hooks 68 68 add_filter('wp_authenticate_user', 'wp_authenticate_user_acc', 99999, 2); 69 add_filter('registration_errors', 'wp_authenticate_user_acc', 99999, 2); 69 70 add_filter('bp_signup_validate', 'wp_authenticate_user_acc', 9999, 2); 70 71 … … 106 107 107 108 function send_feedback() { 108 if( $_POST['feedback_email'] && $_POST['feedback_content']) {109 if(isset($_POST['feedback_email']) && isset($_POST['feedback_content'])) { 109 110 110 111 $to = '[email protected]'; -
agreeable/trunk/agreeable-options.php
r856507 r856577 4 4 5 5 $dbfail = $_POST['ag_fail']; 6 $db termm= stripslashes($dbfail);6 $dbfail = stripslashes($dbfail); 7 7 update_option('ag_fail', $dbfail); 8 8 -
agreeable/trunk/agreeable.php
r856571 r856577 4 4 Plugin URI: http://wordpress.org/extend/plugins/agreeable 5 5 Description: Add a required "Agree to terms" checkbox to login and/or register forms. Based on the I-Agree plugin by Michael Stursberg. 6 Version: 0.1.2 6 Version: 0.1.2.1 7 7 Author: buildcreate, thesturs 8 8 Author URI: http://buildcreate.com … … 14 14 $dbregister = get_option('ag_register'); 15 15 16 if( in_array($GLOBALS['pagenow'], array('wp-login.php')) && $dblogin == 1 || in_array($GLOBALS['pagenow'], array('wp-register.php', 'index.php')) && $dbregister == 1) {16 if($GLOBALS['pagenow'] == 'wp-login.php' && $dblogin == 1 || in_array('login', $body_class) && $dblogin == 1 || $GLOBALS['pagenow'] == 'wp-register.php' && $dbregister == 1 || in_array('register', $body_class) && $dbregister == 1 ) { 17 17 18 18 $dbfail = get_option('ag_fail'); … … 50 50 51 51 // Add an element to the login form, which must be checked 52 echo '<div id="terms-accept"><label><input type="checkbox" name="login_accept" id="login_accept" /> <a target="_BLANK" href="'.$dburl.'">'.$dbtermm.'</a></label></div> ';52 echo '<div id="terms-accept"><label><input type="checkbox" name="login_accept" id="login_accept" /> <a target="_BLANK" href="'.$dburl.'">'.$dbtermm.'</a></label></div><br>'; 53 53 } 54 54 } … … 67 67 // Add it to the appropriate hooks 68 68 add_filter('wp_authenticate_user', 'wp_authenticate_user_acc', 99999, 2); 69 add_filter('registration_errors', 'wp_authenticate_user_acc', 99999, 2); 69 70 add_filter('bp_signup_validate', 'wp_authenticate_user_acc', 9999, 2); 70 71 … … 106 107 107 108 function send_feedback() { 108 if( $_POST['feedback_email'] && $_POST['feedback_content']) {109 if(isset($_POST['feedback_email']) && isset($_POST['feedback_content'])) { 109 110 110 111 $to = '[email protected]';
Note: See TracChangeset
for help on using the changeset viewer.