Captcha Code - Version 2.6.2

Version Description

Download this release

Release Info

Developer vinoj.cardoza
Plugin Icon wp plugin Captcha Code
Version 2.6.2
Comparing to
See all releases

Code changes from version 2.6.1 to 2.6.2

Files changed (2) hide show
  1. readme.txt +4 -1
  2. wpCaptcha.php +17 -17
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vinoj.cardoza
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vinoj%2ecardoza%40gmail%2ecom&currency_code=GBP&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: captcha, captcha code, wordpress, wordpress captcha, captcha for wordpress, form captcha, forms captcha, captcha security, security
5
  Requires at least: 3.0
6
- Tested up to: 4.5.3
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
 
@@ -71,6 +71,9 @@ Uninstalling is as simple as deactivating the plugin.
71
 
72
  == Change Log ==
73
 
 
 
 
74
  = Version 2.6.1 =
75
  * Tested compatibility with Wordpress version 4.5.3
76
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=vinoj%2ecardoza%40gmail%2ecom&currency_code=GBP&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: captcha, captcha code, wordpress, wordpress captcha, captcha for wordpress, form captcha, forms captcha, captcha security, security
5
  Requires at least: 3.0
6
+ Tested up to: 4.6
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
 
71
 
72
  == Change Log ==
73
 
74
+ = Version 2.6.1 =
75
+ * Minor corrections
76
+
77
  = Version 2.6.1 =
78
  * Tested compatibility with Wordpress version 4.5.3
79
 
wpCaptcha.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Captcha Code
4
  Plugin URI: http://www.vinojcardoza.com/captcha-code-authentication/
5
  Description: Adds Captcha Code anti-spam methods to User front-end WordPress forms.
6
- Version: 2.6.1
7
  Author: Vinoj Cardoza
8
  Author URI: http://www.vinojcardoza.com
9
  License: GPL2
@@ -65,19 +65,19 @@ if($login_captcha == 'yes'){
65
  /* Function to include captcha for login form */
66
  function include_wp_captcha_login(){
67
  echo '<p class="login-form-captcha">
68
- <label for="captcha"><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
69
  <span class="required">*</span>
70
  <div style="clear:both;"></div>
71
- <img src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
72
  <div style="clear:both;"></div>';
73
 
74
  /* Will retrieve the get varibale and prints a message from url if the captcha is wrong */
75
  if(isset($_GET['captcha']) && $_GET['captcha'] == 'confirm_error' ) {
76
- echo '<label style="color:#FF0000;" id="capt_err" for="captcha_code_error">'.$_SESSION['captcha_error'].'</label><div style="clear:both;"></div>';;
77
  $_SESSION['captcha_error'] = '';
78
  }
79
 
80
- echo '<label for="captcha_code">'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
81
  <input id="captcha_code" name="captcha_code" size="15" type="text" tabindex="30" />
82
  </p>';
83
  return true;
@@ -131,12 +131,12 @@ function include_captcha_comment_form(){
131
  return true;
132
  }
133
  echo '<p class="comment-form-captcha">
134
- <label for="captcha"><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
135
  <span class="required">*</span>
136
  <div style="clear:both;"></div>
137
- <img src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
138
  <div style="clear:both;"></div>
139
- <label for="captcha_code">'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
140
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
141
  <div style="clear:both;"></div>
142
  </p>';
@@ -151,12 +151,12 @@ function include_wp_captcha_comment_form_wp3(){
151
  }
152
 
153
  echo '<p class="comment-form-captcha">
154
- <label for="captcha"><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
155
  <span class="required">*</span>
156
  <div style="clear:both;"></div>
157
- <img src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
158
  <div style="clear:both;"></div>
159
- <label for="captcha_code">'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
160
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
161
  <div style="clear:both;"></div>
162
  </p>';
@@ -209,12 +209,12 @@ if($register_captcha == 'yes'){
209
  /* Function to include captcha for register form */
210
  function include_wp_captcha_register($default){
211
  echo '<p class="register-form-captcha">
212
- <label for="captcha"><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
213
  <span class="required">*</span>
214
  <div style="clear:both;"></div>
215
- <img src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
216
  <div style="clear:both;"></div>
217
- <label for="captcha_code">'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
218
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
219
  </p>';
220
  return true;
@@ -263,12 +263,12 @@ if($lost_captcha == 'yes'){
263
  /* Function to include captcha for lost password form */
264
  function include_wp_captcha_lostpassword($default){
265
  echo '<p class="lost-form-captcha">
266
- <label for="captcha"><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
267
  <span class="required">*</span>
268
  <div style="clear:both;"></div>
269
- <img src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
270
  <div style="clear:both;"></div>
271
- <label for="captcha_code">'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
272
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
273
  </p>';
274
  }
3
  Plugin Name: Captcha Code
4
  Plugin URI: http://www.vinojcardoza.com/captcha-code-authentication/
5
  Description: Adds Captcha Code anti-spam methods to User front-end WordPress forms.
6
+ Version: 2.6.2
7
  Author: Vinoj Cardoza
8
  Author URI: http://www.vinojcardoza.com
9
  License: GPL2
65
  /* Function to include captcha for login form */
66
  function include_wp_captcha_login(){
67
  echo '<p class="login-form-captcha">
68
+ <label><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
69
  <span class="required">*</span>
70
  <div style="clear:both;"></div>
71
+ <img alt="code" src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
72
  <div style="clear:both;"></div>';
73
 
74
  /* Will retrieve the get varibale and prints a message from url if the captcha is wrong */
75
  if(isset($_GET['captcha']) && $_GET['captcha'] == 'confirm_error' ) {
76
+ echo '<label style="color:#FF0000;" id="capt_err">'.$_SESSION['captcha_error'].'</label><div style="clear:both;"></div>';;
77
  $_SESSION['captcha_error'] = '';
78
  }
79
 
80
+ echo '<label>'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
81
  <input id="captcha_code" name="captcha_code" size="15" type="text" tabindex="30" />
82
  </p>';
83
  return true;
131
  return true;
132
  }
133
  echo '<p class="comment-form-captcha">
134
+ <label><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
135
  <span class="required">*</span>
136
  <div style="clear:both;"></div>
137
+ <img alt="code" src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
138
  <div style="clear:both;"></div>
139
+ <label>'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
140
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
141
  <div style="clear:both;"></div>
142
  </p>';
151
  }
152
 
153
  echo '<p class="comment-form-captcha">
154
+ <label><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
155
  <span class="required">*</span>
156
  <div style="clear:both;"></div>
157
+ <img alt="code" src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
158
  <div style="clear:both;"></div>
159
+ <label>'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
160
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
161
  <div style="clear:both;"></div>
162
  </p>';
209
  /* Function to include captcha for register form */
210
  function include_wp_captcha_register($default){
211
  echo '<p class="register-form-captcha">
212
+ <label><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
213
  <span class="required">*</span>
214
  <div style="clear:both;"></div>
215
+ <img alt="code" src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
216
  <div style="clear:both;"></div>
217
+ <label>'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
218
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
219
  </p>';
220
  return true;
263
  /* Function to include captcha for lost password form */
264
  function include_wp_captcha_lostpassword($default){
265
  echo '<p class="lost-form-captcha">
266
+ <label><b>'. __('Captcha', 'wpcaptchadomain').' </b></label>
267
  <span class="required">*</span>
268
  <div style="clear:both;"></div>
269
+ <img alt="code" src="'.WP_CAPTCHA_DIR_URL.'captcha_code_file.php?rand='.rand().'" />
270
  <div style="clear:both;"></div>
271
+ <label>'.__('Type the text displayed above', 'wpcaptchadomain').':</label>
272
  <input id="captcha_code" name="captcha_code" size="15" type="text" />
273
  </p>';
274
  }