| @@ -459,9 +459,9 @@ | ||
| 459 | 459 | } |
| 460 | 460 | </script> |
| 461 | 461 | |
| 462 | 462 | <hr /> |
| 463 | - <a href="http://loginizer.com" target="_blank">Loginizer</a> '.__('v'.LOGINIZER_VERSION.'. You can report any bugs ','loginizer').'<a href="http://wordpress.org/support/plugin/loginizer" target="_blank">'.__('here','loginizer').'</a>.'; | |
| 463 | + <a href="http://loginizer.com" target="_blank">Loginizer</a> v'.LOGINIZER_VERSION.'. '.__('You can report any bugs ','loginizer').'<a href="http://wordpress.org/support/plugin/loginizer" target="_blank">'.__('here','loginizer').'</a>.'; | |
| 464 | 464 | |
| 465 | 465 | } |
| 466 | 466 | |
| 467 | 467 | echo ' |
| @@ -548,11 +548,24 @@ | ||
| 548 | 548 | // Rename Login |
| 549 | 549 | add_submenu_page('loginizer', __('Security Settings', 'loginizer'), __('Rename Login', 'loginizer'), 'activate_plugins', 'loginizer', 'loginizer_security_settings'); |
| 550 | 550 | |
| 551 | 551 | } |
| 552 | - | |
| 552 | + | |
| 553 | 553 | // Brute Force |
| 554 | 554 | add_submenu_page('loginizer', __('Brute Force Settings', 'loginizer'), __('Brute Force', 'loginizer'), 'activate_plugins', 'loginizer_brute_force', 'loginizer_brute_force_settings'); |
| 555 | + | |
| 556 | + if(defined('LOGINIZER_PREMIUM')){ | |
| 557 | + // WAF Security Firewall | |
| 558 | + $new_badge = '<span style="display: inline-block; font-size:10px; margin-left: 3px; padding: 0px 5px; color: #fff; background-color: #d63638; border-radius: 5px;">'.__('New', 'loginizer').'</span>'; | |
| 559 | + $tag_new = time() < strtotime('2026-03-01') ? $new_badge : ''; | |
| 560 | + | |
| 561 | + add_submenu_page('loginizer', __('Country Block', 'loginizer'), __('Country Block', 'loginizer').' '.$tag_new, 'activate_plugins', 'loginizer_firewall', 'loginizer_firewall_settings'); | |
| 562 | + | |
| 563 | + // Login Page Branding, the check keeps an older Pro from fataling on a newer Free | |
| 564 | + if(defined('LOGINIZER_PRO_DIR') && file_exists(LOGINIZER_PRO_DIR . 'main/settings/loginbranding.php')){ | |
| 565 | + add_submenu_page('loginizer', __('Login Page Branding', 'loginizer'), __('Login Branding', 'loginizer').(time() < strtotime('2026-11-06') ? ' '.$new_badge : ''), 'activate_plugins', 'loginizer_login_branding', 'loginizer_login_branding_settings'); | |
| 566 | + } | |
| 567 | + } | |
| 555 | 568 | |
| 556 | 569 | // PasswordLess |
| 557 | 570 | add_submenu_page('loginizer', __($loginizer['prefix'].'PasswordLess Settings', 'loginizer'), __('PasswordLess', 'loginizer'), 'activate_plugins', 'loginizer_passwordless', 'loginizer_passwordless_settings'); |
| 558 | 571 | |
| @@ -564,21 +577,21 @@ | ||
| 564 | 577 | |
| 565 | 578 | } |
| 566 | 579 | |
| 567 | 580 | // reCaptcha |
| 568 | - add_submenu_page('loginizer', __($loginizer['prefix'].'reCAPTCHA Settings', 'loginizer'), __('reCAPTCHA', 'loginizer'), 'activate_plugins', 'loginizer_recaptcha', 'loginizer_recaptcha_settings'); | |
| 581 | + add_submenu_page('loginizer', $loginizer['prefix'].__('reCAPTCHA Settings', 'loginizer'), __('reCAPTCHA', 'loginizer'), 'activate_plugins', 'loginizer_recaptcha', 'loginizer_recaptcha_settings'); | |
| 569 | 582 | |
| 570 | 583 | // Temporary Login |
| 571 | - add_submenu_page('loginizer', __($loginizer['prefix'].'SSO', 'loginizer'), __('Single Sign On', 'loginizer'). ((time() < strtotime('30 November 2023')) ? ' <span style="color:yellow;">Update</span>' : ''), 'activate_plugins', 'loginizer_sso', 'loginizer_sso_settings'); | |
| 584 | + add_submenu_page('loginizer', $loginizer['prefix'].__('SSO', 'loginizer'), __('Single Sign On', 'loginizer'). ((time() < strtotime('30 November 2023')) ? ' <span style="color:yellow;">Update</span>' : ''), 'activate_plugins', 'loginizer_sso', 'loginizer_sso_settings'); | |
| 572 | 585 | |
| 573 | 586 | // Social Login |
| 574 | - $hook_name = add_submenu_page('loginizer', __($loginizer['prefix'].'social_login', 'loginizer'), __('Social Login', 'loginizer') . (defined('LOGINIZER_PREMIUM') && (time() < strtotime('30 June 2025')) ? ' <span style="color:yellow;font-size:12px;">Updated</span>' : ''), 'activate_plugins', 'loginizer_social_login', 'loginizer_social_login_settings'); | |
| 587 | + $hook_name = add_submenu_page('loginizer', $loginizer['prefix']. __('Social Login', 'loginizer'), __('Social Login', 'loginizer') . (defined('LOGINIZER_PREMIUM') && (time() < strtotime('30 June 2025')) ? ' <span style="color:yellow;font-size:12px;">Updated</span>' : ''), 'activate_plugins', 'loginizer_social_login', 'loginizer_social_login_settings'); | |
| 575 | 588 | |
| 576 | 589 | // Security Settings |
| 577 | 590 | if(!defined('SITEPAD')){ |
| 578 | 591 | |
| 579 | 592 | // Security Settings |
| 580 | - add_submenu_page('loginizer', __($loginizer['prefix'].'Security Settings', 'loginizer'), __('Security Settings', 'loginizer'), 'activate_plugins', 'loginizer_security', 'loginizer_security_settings'); | |
| 593 | + add_submenu_page('loginizer', $loginizer['prefix'].__('Security Settings', 'loginizer'), __('Security Settings', 'loginizer'), 'activate_plugins', 'loginizer_security', 'loginizer_security_settings'); | |
| 581 | 594 | |
| 582 | 595 | // File Checksums |
| 583 | 596 | add_submenu_page('loginizer', __('Loginizer File Checksums', 'loginizer'), __('File Checksums', 'loginizer'), 'activate_plugins', 'loginizer_checksums', 'loginizer_checksums_settings'); |
| 584 | 597 | |
| @@ -608,68 +621,60 @@ | ||
| 608 | 621 | function loginizer_promo(){ |
| 609 | 622 | |
| 610 | 623 | echo ' |
| 611 | 624 | <style> |
| 612 | -.lz_button { | |
| 613 | -background-color: #4CAF50; /* Green */ | |
| 614 | -border: none; | |
| 615 | -color: white; | |
| 616 | -padding: 8px 16px; | |
| 617 | -text-align: center; | |
| 618 | -text-decoration: none; | |
| 619 | -display: inline-block; | |
| 620 | -font-size: 16px; | |
| 621 | -margin: 4px 2px; | |
| 622 | --webkit-transition-duration: 0.4s; /* Safari */ | |
| 623 | -transition-duration: 0.4s; | |
| 624 | -cursor: pointer; | |
| 625 | -} | |
| 626 | - | |
| 627 | -.lz_button:focus{ | |
| 628 | -border: none; | |
| 629 | -color: white; | |
| 630 | -} | |
| 631 | - | |
| 632 | -.lz_button1 { | |
| 633 | -color: white; | |
| 625 | +.wp-core-ui .lz_button1 { | |
| 634 | 626 | background-color: #4CAF50; |
| 635 | -border:3px solid #4CAF50; | |
| 627 | +border-color: transparent; | |
| 628 | +border-radius: 2px; | |
| 629 | +color: #fff; | |
| 636 | 630 | } |
| 637 | 631 | |
| 638 | -.lz_button1:hover { | |
| 639 | -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19); | |
| 640 | -color: white; | |
| 641 | -border:3px solid #4CAF50; | |
| 632 | +.wp-core-ui .lz_button1:hover { | |
| 633 | +background-color:#3b963f; | |
| 634 | +border-color: transparent; | |
| 635 | +border-radius: 2px; | |
| 636 | +color: #fff; | |
| 642 | 637 | } |
| 643 | 638 | |
| 644 | -.lz_button2 { | |
| 645 | -color: white; | |
| 639 | +.wp-core-ui .lz_button2 { | |
| 646 | 640 | background-color: #0085ba; |
| 641 | +border-color: transparent; | |
| 642 | +border-radius: 2px; | |
| 643 | +color: #fff; | |
| 647 | 644 | } |
| 648 | 645 | |
| 649 | -.lz_button2:hover { | |
| 650 | -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19); | |
| 651 | -color: white; | |
| 646 | +.wp-core-ui .lz_button2:hover { | |
| 647 | +background-color: #0175a3; | |
| 648 | +border-color: transparent; | |
| 649 | +border-radius: 2px; | |
| 650 | +color: #fff; | |
| 652 | 651 | } |
| 653 | 652 | |
| 654 | -.lz_button3 { | |
| 655 | -color: white; | |
| 653 | +.wp-core-ui .lz_button3 { | |
| 656 | 654 | background-color: #365899; |
| 655 | +border-color: transparent; | |
| 656 | +border-radius: 2px; | |
| 657 | +color: #fff; | |
| 657 | 658 | } |
| 658 | 659 | |
| 659 | -.lz_button3:hover { | |
| 660 | -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19); | |
| 661 | -color: white; | |
| 660 | +.wp-core-ui .lz_button3:hover { | |
| 661 | +border-color: transparent; | |
| 662 | +background-color: #274785; | |
| 663 | +color:#fff; | |
| 662 | 664 | } |
| 663 | 665 | |
| 664 | -.lz_button4 { | |
| 665 | -color: white; | |
| 666 | -background-color: rgb(66, 184, 221); | |
| 666 | +.wp-core-ui .lz_button4 { | |
| 667 | +background-color: #14171A; | |
| 668 | +border-color: transparent; | |
| 669 | +border-radius: 2px; | |
| 670 | +color: #fff; | |
| 667 | 671 | } |
| 668 | 672 | |
| 669 | -.lz_button4:hover { | |
| 670 | -box-shadow: 0 6px 8px 0 rgba(0,0,0,0.24), 0 9px 25px 0 rgba(0,0,0,0.19); | |
| 671 | -color: white; | |
| 673 | +.wp-core-ui .lz_button4:hover { | |
| 674 | +background-color: #24292E; | |
| 675 | +color: #fff; | |
| 676 | +border-color: transparent; | |
| 672 | 677 | } |
| 673 | 678 | |
| 674 | 679 | .loginizer_promo-close{ |
| 675 | 680 | float:right; |
| @@ -706,12 +711,12 @@ | ||
| 706 | 711 | </a> |
| 707 | 712 | <img src="'.LOGINIZER_URL.'/assets/images/loginizer-200.png" style="float:left; margin:10px 20px 10px 10px" width="100" /> |
| 708 | 713 | <p style="font-size:16px">We are glad you like Loginizer and have been using it since the past few days. It is time to take the next step </p> |
| 709 | 714 | <p> |
| 710 | - <a class="lz_button lz_button1" target="_blank" href="https://loginizer.com/features">Upgrade to Pro</a> | |
| 711 | - <a class="lz_button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a> | |
| 712 | - <a class="lz_button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">Like Us on Facebook</a> | |
| 713 | - <a class="lz_button lz_button4" target="_blank" href="https://twitter.com/home?status='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">Tweet about Loginizer</a> | |
| 715 | + <a class="button lz_button1" target="_blank" href="https://loginizer.com/features">'.esc_html__('Upgrade to Pro', 'loginizer').'</a> | |
| 716 | + <a class="button lz_button2" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/loginizer">Rate it 5★\'s</a> | |
| 717 | + <a class="button lz_button3" target="_blank" href="https://www.facebook.com/Loginizer-815504798591884/">'.esc_html__('Like Us on Facebook', 'loginizer').'</a> | |
| 718 | + <a class="button lz_button4" target="_blank" href="https://x.com/intent/tweet?text='.rawurlencode('I use @loginizer to secure my #WordPress site - https://loginizer.com').'">'.esc_html__('Post on X about Loginizer', 'loginizer').'</a> | |
| 714 | 719 | </p> |
| 715 | 720 | </div>'; |
| 716 | 721 | |
| 717 | 722 | } |
| @@ -761,8 +766,17 @@ | ||
| 761 | 766 | function loginizer_social_login_settings(){ |
| 762 | 767 | include_once LOGINIZER_DIR . '/main/settings/social_login.php'; |
| 763 | 768 | |
| 764 | 769 | loginizer_social_login(); |
| 770 | +} | |
| 771 | + | |
| 772 | +function loginizer_firewall_settings(){ | |
| 773 | + include_once LOGINIZER_PRO_DIR . 'main/settings/waf.php'; | |
| 774 | + loginizer_pro_firewall(); | |
| 775 | +} | |
| 776 | + | |
| 777 | +function loginizer_login_branding_settings(){ | |
| 778 | + \LoginizerPro\Settings\LoginBranding::page(); | |
| 765 | 779 | } |
| 766 | 780 | |
| 767 | 781 | // Hides the interim login poup after successful login. |
| 768 | 782 | function loginizer_social_interim_js(){ |