Version Description
- Google reCaptcha version3, minor issue fixed
- Some other minor issue fixed
Download this release
Release Info
Developer | weblizar |
Plugin | Admin Custom Login |
Version | 2.8.8 |
Comparing to | |
See all releases |
Code changes from version 2.8.7 to 2.8.8
- acl-gcaptcha.php +11 -5
- admin-custom-login.php +1 -1
- includes/googlecaptcha-settings/gcaptcha-settings.php +2 -2
- init.php +5 -3
- readme.txt +6 -1
acl-gcaptcha.php
CHANGED
@@ -81,14 +81,20 @@ class ACL_gcaptcha_Login_Form {
|
|
81 |
* @return WP_Error|WP_user
|
82 |
*/
|
83 |
public static function validate_captcha_field( $user, $password ) {
|
84 |
-
|
85 |
if ( isset( $_POST['g-recaptcha-response'] ) || self::captcha_verification() ) {
|
86 |
$response1=self::captcha_verification();
|
87 |
-
if($response1->success
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
}
|
91 |
-
|
92 |
}
|
93 |
|
94 |
/**
|
81 |
* @return WP_Error|WP_user
|
82 |
*/
|
83 |
public static function validate_captcha_field( $user, $password ) {
|
|
|
84 |
if ( isset( $_POST['g-recaptcha-response'] ) || self::captcha_verification() ) {
|
85 |
$response1=self::captcha_verification();
|
86 |
+
if( $response1->success && $response1->score ){
|
87 |
+
if($response1->success!=false && $response1->score < 0.5){
|
88 |
+
//var_dump($response1);
|
89 |
+
return new WP_Error( 'empty_captcha', '<strong>ERROR</strong>:You are a robot' );
|
90 |
+
}else{
|
91 |
+
return $user;
|
92 |
+
}
|
93 |
+
}else{
|
94 |
+
return new WP_Error( 'empty_captcha', '<strong>ERROR</strong>: Please Enter the reCaptcha valid Key' );
|
95 |
+
}
|
96 |
}
|
97 |
+
|
98 |
}
|
99 |
|
100 |
/**
|
admin-custom-login.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
-
* Version: 2.8.
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: Admin Custom Login
|
4 |
+
* Version: 2.8.8
|
5 |
* Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
|
6 |
* Author: Weblizar
|
7 |
* Author URI: https://weblizar.com/plugins/
|
includes/googlecaptcha-settings/gcaptcha-settings.php
CHANGED
@@ -50,7 +50,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
50 |
<div class="panel-body">
|
51 |
<table class="form-table">
|
52 |
<tr>
|
53 |
-
<th scope="row" ><?php _e('Google Captcha Settings',WEBLIZAR_ACL)?></th>
|
54 |
<td></td>
|
55 |
</tr>
|
56 |
<tr class="radio-span">
|
@@ -108,7 +108,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
|
|
108 |
<input type="radio" name="acl_gcaptcha_theme" value="no" id="acl_gcaptcha_theme2" <?php if($acl_gcaptcha_theme=="no")echo "checked"; ?> /> <?php _e('Dark', WEBLIZAR_ACL)?><br>
|
109 |
</span>
|
110 |
</td>
|
111 |
-
</tr>
|
112 |
</table>
|
113 |
</div>
|
114 |
</div>
|
50 |
<div class="panel-body">
|
51 |
<table class="form-table">
|
52 |
<tr>
|
53 |
+
<th scope="row" ><?php _e('Google Captcha v3 Settings',WEBLIZAR_ACL)?></th>
|
54 |
<td></td>
|
55 |
</tr>
|
56 |
<tr class="radio-span">
|
108 |
<input type="radio" name="acl_gcaptcha_theme" value="no" id="acl_gcaptcha_theme2" <?php if($acl_gcaptcha_theme=="no")echo "checked"; ?> /> <?php _e('Dark', WEBLIZAR_ACL)?><br>
|
109 |
</span>
|
110 |
</td>
|
111 |
+
</tr>
|
112 |
</table>
|
113 |
</div>
|
114 |
</div>
|
init.php
CHANGED
@@ -19,9 +19,11 @@ if($login_redirect_force=="yes"){
|
|
19 |
|
20 |
|
21 |
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
|
|
22 |
if(isset($g_page['login_enable_gcaptcha'])){
|
23 |
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
24 |
-
|
|
|
25 |
// Gcaptcha code
|
26 |
include('acl-gcaptcha.php');
|
27 |
}
|
@@ -233,7 +235,7 @@ function acl_footer_func() {
|
|
233 |
}
|
234 |
?>
|
235 |
<?php if($Social_page['enable_social_icon'] == "inner" || $Social_page['enable_social_icon'] == "both") {?>
|
236 |
-
jQuery( ".forgetmenot, #lostpasswordform" ).append('<div class="acl-social-inner" style="padding-top:16px"><div class="acl-social-text" style="color:<?php echo $heading_font_color; ?>; font-size:<?php echo $heading_font_size;?>px; "><?php _e('Find Us On Social Media',WEBLIZAR_ACL); ?></div><div style="padding-top:5px"><?php if($Social_page['social_twitter_link']!=''){ ?><a href="<?php echo $Social_page['social_twitter_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){ ?> <a href="<?php echo $Social_page['social_facebook_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){ ?> <a href="<?php echo $Social_page['social_google_plus_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){ ?> <a href="<?php echo $Social_page['social_linkedin_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button linkedin"> <i class="fab fa-linkedin-in"> </i> <span></span> </a> <?php } if($Social_page['social_pinterest_link']!=''){ ?><a href="<?php echo $Social_page['social_pinterest_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button pinterest"><i class="fab fa-
|
237 |
<?php } ?>
|
238 |
<!--enable Social Icon In outer login form-->
|
239 |
<?php if ( ! empty( $Social_page['social_link_new_window'] ) && $Social_page['social_link_new_window'] == 'yes' ) {
|
@@ -406,7 +408,7 @@ function acl_export_settings() {
|
|
406 |
$site_key = $g_page['site_key'];
|
407 |
$secret_key = $g_page['secret_key'];
|
408 |
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
409 |
-
if(isset($g_page['acl_gcaptcha_theme'])){ $acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme']; }else { $acl_gcaptcha_theme = 'light'; }
|
410 |
|
411 |
|
412 |
$ACL_ALL_Settings= serialize(array(
|
19 |
|
20 |
|
21 |
$g_page = unserialize(get_option('Admin_custome_login_gcaptcha'));
|
22 |
+
$dashboard_page = unserialize(get_option('Admin_custome_login_dashboard'));
|
23 |
if(isset($g_page['login_enable_gcaptcha'])){
|
24 |
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
25 |
+
$dashboard_status = $dashboard_page['dashboard_status'];
|
26 |
+
if($login_enable_gcaptcha=="yes" && $dashboard_status=="enable"){
|
27 |
// Gcaptcha code
|
28 |
include('acl-gcaptcha.php');
|
29 |
}
|
235 |
}
|
236 |
?>
|
237 |
<?php if($Social_page['enable_social_icon'] == "inner" || $Social_page['enable_social_icon'] == "both") {?>
|
238 |
+
jQuery( ".forgetmenot, #lostpasswordform" ).append('<div class="acl-social-inner" style="padding-top:16px"><div class="acl-social-text" style="color:<?php echo $heading_font_color; ?>; font-size:<?php echo $heading_font_size;?>px; "><?php _e('Find Us On Social Media',WEBLIZAR_ACL); ?></div><div style="padding-top:5px"><?php if($Social_page['social_twitter_link']!=''){ ?><a href="<?php echo $Social_page['social_twitter_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button twitter"><i class="fab fa-twitter"></i><span></span></a><?php } if($Social_page['social_facebook_link']!=''){ ?> <a href="<?php echo $Social_page['social_facebook_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button facebook"><i class="fab fa-facebook-f"></i><span></span></a> <?php } if($Social_page['social_google_plus_link']!=''){ ?> <a href="<?php echo $Social_page['social_google_plus_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button google-plus"><i class="fab fa-google-plus-g"></i><span></span></a><?php } if($Social_page['social_linkedin_link']!=''){ ?> <a href="<?php echo $Social_page['social_linkedin_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button linkedin"> <i class="fab fa-linkedin-in"> </i> <span></span> </a> <?php } if($Social_page['social_pinterest_link']!=''){ ?><a href="<?php echo $Social_page['social_pinterest_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button pinterest"><i class="fab fa-pinterest-p"></i><span></span></a><?php } if($Social_page['social_digg_link']!=''){ ?><a href="<?php echo $Social_page['social_digg_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button digg"><i class="fab fa-digg"></i><span></span></a><?php } if($Social_page['social_youtube_link']!=''){ ?><a href="<?php echo $Social_page['social_youtube_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button youtube"><i class="fab fa-youtube-square"></i><span></span></a><?php } if($Social_page['social_flickr_link']!=''){ ?><a href="<?php echo $Social_page['social_flickr_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button flickr"><i class="fab fa-flickr"></i><span></span></a><?php } if($Social_page['social_tumblr_link']!=''){ ?><a href="<?php echo $Social_page['social_tumblr_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button tumblr"><i class="fab fa-tumblr"></i><span></span></a><?php } if($Social_page['social_skype_link']!=''){ ?><a href="<?php echo $Social_page['social_skype_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button skype"><i class="fab fa-skype"></i><span></span></a><?php } if($Social_page['social_instagram_link']!=''){ ?><a href="<?php echo $Social_page['social_instagram_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button instagram"><i class="fab fa-instagram"></i><span></span></a><?php } if($Social_page['social_telegram_link']!=''){ ?><a href="<?php echo $Social_page['social_telegram_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button telegram"><i class="fab fa-telegram-plane"></i><span></span></a><?php }if($Social_page['social_whatsapp_link']!=''){ ?><a href="<?php echo $Social_page['social_whatsapp_link'];?>" target="<?php echo esc_attr( $target ); ?>" class="icon-button whatsapp"><i class="fab fa-whatsapp"></i><span></span></a><?php } ?><div></div>' );
|
239 |
<?php } ?>
|
240 |
<!--enable Social Icon In outer login form-->
|
241 |
<?php if ( ! empty( $Social_page['social_link_new_window'] ) && $Social_page['social_link_new_window'] == 'yes' ) {
|
408 |
$site_key = $g_page['site_key'];
|
409 |
$secret_key = $g_page['secret_key'];
|
410 |
$login_enable_gcaptcha = $g_page['login_enable_gcaptcha'];
|
411 |
+
if(isset($g_page['acl_gcaptcha_theme'])){ $acl_gcaptcha_theme = $g_page['acl_gcaptcha_theme']; } else { $acl_gcaptcha_theme = 'light'; }
|
412 |
|
413 |
|
414 |
$ACL_ALL_Settings= serialize(array(
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.weblizar.com/
|
|
4 |
Tags: custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.1.1
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -172,6 +172,11 @@ If you have any question contact us at here: [Plugin Support Forum ](http://word
|
|
172 |
|
173 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
174 |
|
|
|
|
|
|
|
|
|
|
|
175 |
= 2.8.7 =
|
176 |
* CSS File updated for RTL language
|
177 |
* Import Export Custom Login Data issue fixed
|
4 |
Tags: custom login page, custom admin login, custom login, customize wordpress login page, design wordpress login
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.1.1
|
7 |
+
Stable tag: 2.8.8
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
172 |
|
173 |
For more information, see [Weblizar](http://www.weblizar.com/)
|
174 |
|
175 |
+
|
176 |
+
= 2.8.8 =
|
177 |
+
* Google reCaptcha version3, minor issue fixed
|
178 |
+
* Some other minor issue fixed
|
179 |
+
|
180 |
= 2.8.7 =
|
181 |
* CSS File updated for RTL language
|
182 |
* Import Export Custom Login Data issue fixed
|