Version Description
- CSS File updated for RTL language
- Import Export Custom Login Data issue fixed
- Google captcha 3 API added and issue fixed
Download this release
Release Info
Developer | weblizar |
Plugin | Admin Custom Login |
Version | 2.8.7 |
Comparing to | |
See all releases |
Code changes from version 2.8.6 to 2.8.7
- acl-gcaptcha.php +20 -27
- admin-custom-login.php +1 -1
- css/smartech.css +14 -1
- init.php +24 -8
- installation.php +1 -1
- readme.txt +6 -1
acl-gcaptcha.php
CHANGED
@@ -36,24 +36,16 @@ class ACL_gcaptcha_Login_Form {
|
|
36 |
$acl_gcaptcha_theme="dark";
|
37 |
}
|
38 |
?>
|
39 |
-
<script src="https://www.google.com/recaptcha/api.js
|
40 |
-
<
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
</div>
|
50 |
-
<div class="g-re-captcha">
|
51 |
-
<textarea id="g-recaptcha-response" name="g-recaptcha-response"
|
52 |
-
class="g-recaptcha-response" >
|
53 |
-
</textarea>
|
54 |
-
</div>
|
55 |
-
</div>
|
56 |
-
</noscript>
|
57 |
<style type="text/css">
|
58 |
.g-recaptchag-recaptcha{
|
59 |
margin-bottom:20px;
|
@@ -90,8 +82,11 @@ class ACL_gcaptcha_Login_Form {
|
|
90 |
*/
|
91 |
public static function validate_captcha_field( $user, $password ) {
|
92 |
|
93 |
-
if (
|
94 |
-
|
|
|
|
|
|
|
95 |
}
|
96 |
return $user;
|
97 |
}
|
@@ -115,14 +110,12 @@ class ACL_gcaptcha_Login_Form {
|
|
115 |
$site_key = '';
|
116 |
$secret_key = '';
|
117 |
}
|
118 |
-
$request =
|
119 |
-
'https://www.google.com/recaptcha/api/siteverify?secret=' . $secret_key . '&response=' . $response . '&remoteip=' . $remote_ip
|
120 |
-
);
|
121 |
-
|
122 |
// get the request response body
|
123 |
-
|
124 |
-
$
|
125 |
-
|
|
|
126 |
}
|
127 |
}
|
128 |
new ACL_gcaptcha_Login_Form();
|
36 |
$acl_gcaptcha_theme="dark";
|
37 |
}
|
38 |
?>
|
39 |
+
<script src="https://www.google.com/recaptcha/api.js?render=<?php echo $this->public_key ?>"></script>
|
40 |
+
<input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
|
41 |
+
<script>
|
42 |
+
grecaptcha.ready(function() {
|
43 |
+
grecaptcha.execute('<?php echo $this->public_key ; ?>', {action: 'login'}).then(function(token) {
|
44 |
+
// pass the token to the backend script for verification
|
45 |
+
document.getElementById("g-recaptcha-response").value = token;
|
46 |
+
});
|
47 |
+
});
|
48 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
<style type="text/css">
|
50 |
.g-recaptchag-recaptcha{
|
51 |
margin-bottom:20px;
|
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==false && $response1->score < 0.5){
|
88 |
+
return new WP_Error( 'empty_captcha', '<strong>ERROR</strong>:You are a robot' );
|
89 |
+
}
|
90 |
}
|
91 |
return $user;
|
92 |
}
|
110 |
$site_key = '';
|
111 |
$secret_key = '';
|
112 |
}
|
113 |
+
$request = file_get_contents('https://www.google.com/recaptcha/api/siteverify?secret='.$secret_key.'&response='.$response.'');
|
|
|
|
|
|
|
114 |
// get the request response body
|
115 |
+
echo('<script> console.log('.$secret_key.'); </script>');
|
116 |
+
$return = json_decode( $request );
|
117 |
+
|
118 |
+
return $return;
|
119 |
}
|
120 |
}
|
121 |
new ACL_gcaptcha_Login_Form();
|
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.7
|
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/
|
css/smartech.css
CHANGED
@@ -439,6 +439,7 @@ body {
|
|
439 |
|
440 |
#wrapper {
|
441 |
width: 100%;
|
|
|
442 |
background:#29282f;
|
443 |
|
444 |
}
|
@@ -1920,7 +1921,7 @@ display:block;
|
|
1920 |
}
|
1921 |
|
1922 |
|
1923 |
-
|
1924 |
position:fixed;
|
1925 |
bottom:0%;
|
1926 |
right:1%;
|
@@ -1929,6 +1930,18 @@ display:block;
|
|
1929 |
overflow:hidden;
|
1930 |
border-radius:6px;
|
1931 |
z-index:1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1932 |
}
|
1933 |
.save-button-block .btn-info{
|
1934 |
margin-right:15px;
|
439 |
|
440 |
#wrapper {
|
441 |
width: 100%;
|
442 |
+
direction: ltr;
|
443 |
background:#29282f;
|
444 |
|
445 |
}
|
1921 |
}
|
1922 |
|
1923 |
|
1924 |
+
/*.save-button-block{
|
1925 |
position:fixed;
|
1926 |
bottom:0%;
|
1927 |
right:1%;
|
1930 |
overflow:hidden;
|
1931 |
border-radius:6px;
|
1932 |
z-index:1;
|
1933 |
+
}*/
|
1934 |
+
.save-button-block {
|
1935 |
+
position: fixed;
|
1936 |
+
bottom: 0%;
|
1937 |
+
/*left: 20%;*/
|
1938 |
+
text-align: center;
|
1939 |
+
width: auto;
|
1940 |
+
background: rgba(41, 40, 47, 0.78);
|
1941 |
+
overflow: hidden;
|
1942 |
+
border-radius: 6px;
|
1943 |
+
z-index: 1000;
|
1944 |
+
direction: ltr;
|
1945 |
}
|
1946 |
.save-button-block .btn-info{
|
1947 |
margin-right:15px;
|
init.php
CHANGED
@@ -300,7 +300,10 @@ function acl_export_settings() {
|
|
300 |
|
301 |
// Get value of Login page
|
302 |
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
|
|
303 |
$login_form_left = $login_page['login_form_left'];
|
|
|
|
|
304 |
$login_form_top = $login_page['login_form_top'];
|
305 |
$login_bg_type = $login_page['login_bg_type'];
|
306 |
$login_bg_color = $login_page['login_bg_color'];
|
@@ -318,6 +321,7 @@ function acl_export_settings() {
|
|
318 |
$login_shadow_color = $login_page['login_shadow_color'];
|
319 |
$log_form_above_msg = $login_page['log_form_above_msg'];
|
320 |
$login_redirect_force = $login_page['login_redirect_force'];
|
|
|
321 |
$login_force_redirect_url = $login_page['login_force_redirect_url'];
|
322 |
$login_msg_fontsize = $login_page['login_msg_fontsize'];
|
323 |
$login_msg_font_color = $login_page['login_msg_font_color'];
|
@@ -416,9 +420,11 @@ function acl_export_settings() {
|
|
416 |
'top_attachment' => $top_attachment,
|
417 |
'top_slideshow_no' => $top_slideshow_no,
|
418 |
'top_bg_slider_animation' => $top_bg_slider_animation,
|
419 |
-
|
420 |
'login_form_left' => $login_form_left,
|
421 |
-
'
|
|
|
|
|
422 |
'login_bg_type' => $login_bg_type,
|
423 |
'login_bg_color' => $login_bg_color,
|
424 |
'login_bg_effect' => $login_bg_effect,
|
@@ -435,6 +441,7 @@ function acl_export_settings() {
|
|
435 |
'login_shadow_color' => $login_shadow_color,
|
436 |
'log_form_above_msg' => $log_form_above_msg,
|
437 |
'login_redirect_force' => $login_redirect_force,
|
|
|
438 |
'login_force_redirect_url' => $login_force_redirect_url,
|
439 |
'login_msg_fontsize' => $login_msg_fontsize,
|
440 |
'login_msg_font_color' => $login_msg_font_color,
|
@@ -565,9 +572,11 @@ function acl_import_settings() {
|
|
565 |
$top_attachment = $ACL_Settings['top_attachment'];
|
566 |
$top_slideshow_no = $ACL_Settings['top_slideshow_no'];
|
567 |
$top_bg_slider_animation = $ACL_Settings['top_bg_slider_animation'];
|
568 |
-
|
569 |
$login_form_left = $ACL_Settings['login_form_left'];
|
570 |
-
$
|
|
|
|
|
571 |
$login_bg_type = $ACL_Settings['login_bg_type'];
|
572 |
$login_bg_color = $ACL_Settings['login_bg_color'];
|
573 |
$login_bg_effect = $ACL_Settings['login_bg_effect'];
|
@@ -584,7 +593,8 @@ function acl_import_settings() {
|
|
584 |
$login_shadow_color = $ACL_Settings['login_shadow_color'];
|
585 |
$log_form_above_msg = $ACL_Settings['log_form_above_msg'];
|
586 |
$login_redirect_force = $ACL_Settings['login_redirect_force'];
|
587 |
-
|
|
|
588 |
$login_msg_fontsize = $ACL_Settings['login_msg_fontsize'];
|
589 |
$login_msg_font_color = $ACL_Settings['login_msg_font_color'];
|
590 |
$tagline_msg = $ACL_Settings['tagline_msg'];
|
@@ -649,7 +659,7 @@ function acl_import_settings() {
|
|
649 |
$social_youtube_link = $ACL_Settings['social_youtube_link'];
|
650 |
$social_flickr_link = $ACL_Settings['social_flickr_link'];
|
651 |
$social_tumblr_link = $ACL_Settings['social_tumblr_link'];
|
652 |
-
$social_vkontakte_link = $ACL_Settings['social_vkontakte_link'];
|
653 |
$social_skype_link = $ACL_Settings['social_skype_link'];
|
654 |
$social_instagram_link = $ACL_Settings['social_instagram_link'];
|
655 |
$social_telegram_link = $ACL_Settings['social_telegram_link'];
|
@@ -772,8 +782,11 @@ function acl_import_settings() {
|
|
772 |
update_option('Admin_custome_login_top', $top_page);
|
773 |
|
774 |
$login_page= serialize(array(
|
|
|
775 |
'login_form_left' => $login_form_left,
|
776 |
-
'
|
|
|
|
|
777 |
'login_bg_type' => $login_bg_type,
|
778 |
'login_bg_color' => $login_bg_color,
|
779 |
'login_bg_effect' => $login_bg_effect,
|
@@ -791,6 +804,7 @@ function acl_import_settings() {
|
|
791 |
'log_form_above_msg' => $log_form_above_msg,
|
792 |
'login_redirect_force' => $login_redirect_force,
|
793 |
'login_redirect_user' => $login_redirect_user,
|
|
|
794 |
'login_msg_fontsize' => $login_msg_fontsize,
|
795 |
'login_msg_font_color' => $login_msg_font_color,
|
796 |
'tagline_msg' => $tagline_msg,
|
@@ -850,9 +864,11 @@ function acl_import_settings() {
|
|
850 |
'social_youtube_link' => $social_youtube_link,
|
851 |
'social_flickr_link' => $social_flickr_link,
|
852 |
'social_tumblr_link' => $social_tumblr_link,
|
853 |
-
'social_vkontakte_link' => $social_vkontakte_link,
|
854 |
'social_skype_link' => $social_skype_link,
|
855 |
'social_instagram_link' => $social_instagram_link,
|
|
|
|
|
856 |
));
|
857 |
update_option('Admin_custome_login_Social', $Social_page);
|
858 |
|
300 |
|
301 |
// Get value of Login page
|
302 |
$login_page = unserialize(get_option('Admin_custome_login_login'));
|
303 |
+
$login_form_position= $login_page['login_form_position'];
|
304 |
$login_form_left = $login_page['login_form_left'];
|
305 |
+
$login_form_float = $login_page['login_form_float'];
|
306 |
+
$login_custom_css=$login_page['login_custom_css'];
|
307 |
$login_form_top = $login_page['login_form_top'];
|
308 |
$login_bg_type = $login_page['login_bg_type'];
|
309 |
$login_bg_color = $login_page['login_bg_color'];
|
321 |
$login_shadow_color = $login_page['login_shadow_color'];
|
322 |
$log_form_above_msg = $login_page['log_form_above_msg'];
|
323 |
$login_redirect_force = $login_page['login_redirect_force'];
|
324 |
+
$login_redirect_user = $login_page['login_redirect_user'];
|
325 |
$login_force_redirect_url = $login_page['login_force_redirect_url'];
|
326 |
$login_msg_fontsize = $login_page['login_msg_fontsize'];
|
327 |
$login_msg_font_color = $login_page['login_msg_font_color'];
|
420 |
'top_attachment' => $top_attachment,
|
421 |
'top_slideshow_no' => $top_slideshow_no,
|
422 |
'top_bg_slider_animation' => $top_bg_slider_animation,
|
423 |
+
'login_form_position' => $login_form_position,
|
424 |
'login_form_left' => $login_form_left,
|
425 |
+
'login_form_float' => $login_form_float,
|
426 |
+
'login_custom_css' => $login_custom_css,
|
427 |
+
'login_form_top' => $login_form_top,
|
428 |
'login_bg_type' => $login_bg_type,
|
429 |
'login_bg_color' => $login_bg_color,
|
430 |
'login_bg_effect' => $login_bg_effect,
|
441 |
'login_shadow_color' => $login_shadow_color,
|
442 |
'log_form_above_msg' => $log_form_above_msg,
|
443 |
'login_redirect_force' => $login_redirect_force,
|
444 |
+
'login_redirect_user' => $login_redirect_user,
|
445 |
'login_force_redirect_url' => $login_force_redirect_url,
|
446 |
'login_msg_fontsize' => $login_msg_fontsize,
|
447 |
'login_msg_font_color' => $login_msg_font_color,
|
572 |
$top_attachment = $ACL_Settings['top_attachment'];
|
573 |
$top_slideshow_no = $ACL_Settings['top_slideshow_no'];
|
574 |
$top_bg_slider_animation = $ACL_Settings['top_bg_slider_animation'];
|
575 |
+
$login_form_position = $ACL_Settings['login_form_position'];
|
576 |
$login_form_left = $ACL_Settings['login_form_left'];
|
577 |
+
$login_form_float = $ACL_Settings['login_form_float'];
|
578 |
+
$login_custom_css = $ACL_Settings['login_custom_css'];
|
579 |
+
$login_form_top = $ACL_Settings['login_form_top'];
|
580 |
$login_bg_type = $ACL_Settings['login_bg_type'];
|
581 |
$login_bg_color = $ACL_Settings['login_bg_color'];
|
582 |
$login_bg_effect = $ACL_Settings['login_bg_effect'];
|
593 |
$login_shadow_color = $ACL_Settings['login_shadow_color'];
|
594 |
$log_form_above_msg = $ACL_Settings['log_form_above_msg'];
|
595 |
$login_redirect_force = $ACL_Settings['login_redirect_force'];
|
596 |
+
$login_redirect_user = $ACL_Settings['login_redirect_user'];
|
597 |
+
$login_force_redirect_url = $ACL_Settings['login_force_redirect_url'];
|
598 |
$login_msg_fontsize = $ACL_Settings['login_msg_fontsize'];
|
599 |
$login_msg_font_color = $ACL_Settings['login_msg_font_color'];
|
600 |
$tagline_msg = $ACL_Settings['tagline_msg'];
|
659 |
$social_youtube_link = $ACL_Settings['social_youtube_link'];
|
660 |
$social_flickr_link = $ACL_Settings['social_flickr_link'];
|
661 |
$social_tumblr_link = $ACL_Settings['social_tumblr_link'];
|
662 |
+
// $social_vkontakte_link = $ACL_Settings['social_vkontakte_link'];
|
663 |
$social_skype_link = $ACL_Settings['social_skype_link'];
|
664 |
$social_instagram_link = $ACL_Settings['social_instagram_link'];
|
665 |
$social_telegram_link = $ACL_Settings['social_telegram_link'];
|
782 |
update_option('Admin_custome_login_top', $top_page);
|
783 |
|
784 |
$login_page= serialize(array(
|
785 |
+
'login_form_position' => $login_form_position,
|
786 |
'login_form_left' => $login_form_left,
|
787 |
+
'login_form_float' => $login_form_float,
|
788 |
+
'login_custom_css' => $login_custom_css,
|
789 |
+
'login_form_top' => $login_form_top,
|
790 |
'login_bg_type' => $login_bg_type,
|
791 |
'login_bg_color' => $login_bg_color,
|
792 |
'login_bg_effect' => $login_bg_effect,
|
804 |
'log_form_above_msg' => $log_form_above_msg,
|
805 |
'login_redirect_force' => $login_redirect_force,
|
806 |
'login_redirect_user' => $login_redirect_user,
|
807 |
+
'login_force_redirect_url' => $login_force_redirect_url,
|
808 |
'login_msg_fontsize' => $login_msg_fontsize,
|
809 |
'login_msg_font_color' => $login_msg_font_color,
|
810 |
'tagline_msg' => $tagline_msg,
|
864 |
'social_youtube_link' => $social_youtube_link,
|
865 |
'social_flickr_link' => $social_flickr_link,
|
866 |
'social_tumblr_link' => $social_tumblr_link,
|
867 |
+
// 'social_vkontakte_link' => $social_vkontakte_link,
|
868 |
'social_skype_link' => $social_skype_link,
|
869 |
'social_instagram_link' => $social_instagram_link,
|
870 |
+
'social_telegram_link' => $social_telegram_link,
|
871 |
+
'social_whatsapp_link' => $social_telegram_link,
|
872 |
));
|
873 |
update_option('Admin_custome_login_Social', $Social_page);
|
874 |
|
installation.php
CHANGED
@@ -110,7 +110,7 @@ if(!isset($Version)){
|
|
110 |
'social_youtube_link' => 'https://youtube.com',
|
111 |
'social_flickr_link' => 'https://flickr.com',
|
112 |
'social_tumblr_link' => '',
|
113 |
-
'social_vkontakte_link' => '',
|
114 |
'social_skype_link' => '',
|
115 |
'social_instagram_link' => 'https://instagram.com',
|
116 |
'social_telegram_link' => '',
|
110 |
'social_youtube_link' => 'https://youtube.com',
|
111 |
'social_flickr_link' => 'https://flickr.com',
|
112 |
'social_tumblr_link' => '',
|
113 |
+
// 'social_vkontakte_link' => '',
|
114 |
'social_skype_link' => '',
|
115 |
'social_instagram_link' => 'https://instagram.com',
|
116 |
'social_telegram_link' => '',
|
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.6 =
|
176 |
* LetestFont Awesome 5.8.1 Updated
|
177 |
* Minor issue is 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.7
|
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 |
+
= 2.8.7 =
|
176 |
+
* CSS File updated for RTL language
|
177 |
+
* Import Export Custom Login Data issue fixed
|
178 |
+
* Google captcha 3 API added and issue fixed
|
179 |
+
|
180 |
= 2.8.6 =
|
181 |
* LetestFont Awesome 5.8.1 Updated
|
182 |
* Minor issue is fixed
|