Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/admin-custom-login/acl-gcaptcha.php
+++ b/admin-custom-login/acl-gcaptcha.php
@@ -1,122 +1,122 @@
-<?php
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
-$g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
-
-if ( isset( $g_page['login_enable_gcaptcha'] ) && ( 'yes' === $g_page['login_enable_gcaptcha'] ) && isset( $g_page['login_v_gcaptcha'] ) && ! empty( $g_page['login_v_gcaptcha'] ) ) {
-
- $login_v_gcaptcha = esc_html( $g_page['login_v_gcaptcha'] );
-
- if ( 'v3' === $login_v_gcaptcha ) {
- add_action( 'login_form', 'acl_captcha3_form' );
- add_action( 'login_enqueue_scripts', 'acl_captcha3_output' );
- add_action( 'wp_authenticate_user', 'acl_validate_captcha3', 10, 2 );
- } elseif ( 'v2' === $login_v_gcaptcha ) {
- add_action( 'login_form', 'acl_captcha2_form' );
- add_action( 'login_enqueue_scripts', 'acl_captcha2_output' );
- add_action( 'wp_authenticate_user', 'acl_validate_captcha2', 10, 2 );
- }
-}
-
-function acl_captcha2_form() {
- $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
- $site_key = isset( $g_page['site_key'] ) ? $g_page['site_key'] : '';
- $acl_gcaptcha_theme = isset( $g_page['acl_gcaptcha_theme'] ) ? $g_page['acl_gcaptcha_theme'] : 'light';
- if ( 'yes' === $acl_gcaptcha_theme ) {
- $acl_gcaptcha_theme = 'light';
- } else {
- $acl_gcaptcha_theme = 'dark';
- }
- ?>
- <div class="g-recaptcha" data-sitekey="<?php echo esc_attr( $site_key ); ?>" data-theme="<?php echo esc_attr( $acl_gcaptcha_theme ); ?>"></div> <br>
- <?php
-}
-
-function acl_captcha2_output() {
- wp_enqueue_script( 'acl-recaptcha-api-js', 'https://www.google.com/recaptcha/api.js' );
-}
-
-/**
- * Undocumented function
- *
- * @param [type] $user
- * @param [type] $password
- * @return void
- */
-function acl_validate_captcha2( $user, $password ) {
- $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
- $secret_key = isset( $g_page['secret_key'] ) ? $g_page['secret_key'] : '';
-
- if ( isset( $_POST['g-recaptcha-response'] ) ) {
- $response = wp_remote_post(
- 'https://www.google.com/recaptcha/api/siteverify',
- array(
- 'body' => array(
- 'secret' => $secret_key,
- 'response' => $_POST['g-recaptcha-response'],
- ),
- )
- );
-
- $data = wp_remote_retrieve_body( $response );
- $data = json_decode( $data );
-
- if ( isset( $data->success ) && $data->success ) {
- return $user;
- }
- }
-
- return new WP_Error( wp_kses_post( 'empty_captcha', '<strong>ERROR</strong>: Please confirm you are not a robot', WEBLIZAR_ACL ) );
-}
-
-function acl_captcha3_form() {
- ?>
- <input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
- <?php
-}
-
-function acl_captcha3_output() {
- $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
- $site_key_v3 = isset( $g_page['site_key_v3'] ) ? $g_page['site_key_v3'] : '';
-
- wp_enqueue_script( 'acl-recaptcha-api-js', "https://www.google.com/recaptcha/api.js?render=$site_key_v3" );
- wp_register_script( 'acl-recaptcha-v3-js', '', array( 'acl-recaptcha-api-js' ) );
- wp_enqueue_script( 'acl-recaptcha-v3-js' );
-
- $script = "grecaptcha.ready(function() {
- grecaptcha.execute('$site_key_v3', {action: 'login'}).then(function(token) {
- document.getElementById('g-recaptcha-response').value = token;
- });
- });";
- wp_add_inline_script( 'acl-recaptcha-v3-js', $script );
-}
-
-function acl_validate_captcha3( $user, $password ) {
- $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
-
- $secret_key_v3 = isset( $g_page['secret_key_v3'] ) ? $g_page['secret_key_v3'] : '';
-
- if ( isset( $_POST['g-recaptcha-response'] ) ) {
- $response = wp_remote_post(
- 'https://www.google.com/recaptcha/api/siteverify',
- array(
- 'body' => array(
- 'secret' => $secret_key_v3,
- 'response' => $_POST['g-recaptcha-response'],
- ),
- )
- );
-
- $data = wp_remote_retrieve_body( $response );
- $data = json_decode( $data );
-
- if ( isset( $data->success ) && $data->success && isset( $data->score ) && $data->score > 0 && isset( $data->action ) && 'login' === $data->action ) {
- return $user;
- }
- }
-
- return new WP_Error( wp_kses_post( 'empty_captcha', '<strong>ERROR</strong>: Please confirm you are not a robot', WEBLIZAR_ACL ) );
-}
-
-?>
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+$g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
+
+if ( isset( $g_page['login_enable_gcaptcha'] ) && ( 'yes' === $g_page['login_enable_gcaptcha'] ) && isset( $g_page['login_v_gcaptcha'] ) && ! empty( $g_page['login_v_gcaptcha'] ) ) {
+
+ $login_v_gcaptcha = esc_html( $g_page['login_v_gcaptcha'] );
+
+ if ( 'v3' === $login_v_gcaptcha ) {
+ add_action( 'login_form', 'acl_captcha3_form' );
+ add_action( 'login_enqueue_scripts', 'acl_captcha3_output' );
+ add_action( 'wp_authenticate_user', 'acl_validate_captcha3', 10, 2 );
+ } elseif ( 'v2' === $login_v_gcaptcha ) {
+ add_action( 'login_form', 'acl_captcha2_form' );
+ add_action( 'login_enqueue_scripts', 'acl_captcha2_output' );
+ add_action( 'wp_authenticate_user', 'acl_validate_captcha2', 10, 2 );
+ }
+}
+
+function acl_captcha2_form() {
+ $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
+ $site_key = isset( $g_page['site_key'] ) ? $g_page['site_key'] : '';
+ $acl_gcaptcha_theme = isset( $g_page['acl_gcaptcha_theme'] ) ? $g_page['acl_gcaptcha_theme'] : 'light';
+ if ( 'yes' === $acl_gcaptcha_theme ) {
+ $acl_gcaptcha_theme = 'light';
+ } else {
+ $acl_gcaptcha_theme = 'dark';
+ }
+ ?>
+ <div class="g-recaptcha" data-sitekey="<?php echo esc_attr( $site_key ); ?>" data-theme="<?php echo esc_attr( $acl_gcaptcha_theme ); ?>"></div> <br>
+ <?php
+}
+
+function acl_captcha2_output() {
+ wp_enqueue_script( 'acl-recaptcha-api-js', 'https://www.google.com/recaptcha/api.js' );
+}
+
+/**
+ * Undocumented function
+ *
+ * @param [type] $user
+ * @param [type] $password
+ * @return void
+ */
+function acl_validate_captcha2( $user, $password ) {
+ $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
+ $secret_key = isset( $g_page['secret_key'] ) ? $g_page['secret_key'] : '';
+
+ if ( isset( $_POST['g-recaptcha-response'] ) ) {
+ $response = wp_remote_post(
+ 'https://www.google.com/recaptcha/api/siteverify',
+ array(
+ 'body' => array(
+ 'secret' => $secret_key,
+ 'response' => $_POST['g-recaptcha-response'],
+ ),
+ )
+ );
+
+ $data = wp_remote_retrieve_body( $response );
+ $data = json_decode( $data );
+
+ if ( isset( $data->success ) && $data->success ) {
+ return $user;
+ }
+ }
+
+ return new WP_Error( wp_kses_post( 'empty_captcha', '<strong>ERROR</strong>: Please confirm you are not a robot', 'admin-custom-login' ) );
+}
+
+function acl_captcha3_form() {
+ ?>
+ <input type="hidden" name="g-recaptcha-response" id="g-recaptcha-response">
+ <?php
+}
+
+function acl_captcha3_output() {
+ $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
+ $site_key_v3 = isset( $g_page['site_key_v3'] ) ? $g_page['site_key_v3'] : '';
+
+ wp_enqueue_script( 'acl-recaptcha-api-js', "https://www.google.com/recaptcha/api.js?render=$site_key_v3" );
+ wp_register_script( 'acl-recaptcha-v3-js', '', array( 'acl-recaptcha-api-js' ) );
+ wp_enqueue_script( 'acl-recaptcha-v3-js' );
+
+ $script = "grecaptcha.ready(function() {
+ grecaptcha.execute('$site_key_v3', {action: 'login'}).then(function(token) {
+ document.getElementById('g-recaptcha-response').value = token;
+ });
+ });";
+ wp_add_inline_script( 'acl-recaptcha-v3-js', $script );
+}
+
+function acl_validate_captcha3( $user, $password ) {
+ $g_page = unserialize( get_option( 'Admin_custome_login_gcaptcha' ) );
+
+ $secret_key_v3 = isset( $g_page['secret_key_v3'] ) ? $g_page['secret_key_v3'] : '';
+
+ if ( isset( $_POST['g-recaptcha-response'] ) ) {
+ $response = wp_remote_post(
+ 'https://www.google.com/recaptcha/api/siteverify',
+ array(
+ 'body' => array(
+ 'secret' => $secret_key_v3,
+ 'response' => $_POST['g-recaptcha-response'],
+ ),
+ )
+ );
+
+ $data = wp_remote_retrieve_body( $response );
+ $data = json_decode( $data );
+
+ if ( isset( $data->success ) && $data->success && isset( $data->score ) && $data->score > 0 && isset( $data->action ) && 'login' === $data->action ) {
+ return $user;
+ }
+ }
+
+ return new WP_Error( wp_kses_post( 'empty_captcha', '<strong>ERROR</strong>: Please confirm you are not a robot', 'admin-custom-login' ) );
+}
+
+?>
--- a/admin-custom-login/admin-custom-login.php
+++ b/admin-custom-login/admin-custom-login.php
@@ -1,68 +1,70 @@
-<?php
-
-/**
- * Plugin Name: Admin Custom Login
- * Version: 3.6.4
- * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
- * Author: Weblizar
- * Author URI: https://weblizar.com/plugins/
- * Plugin URI: https://wordpress.org/plugins/admin-custom-login/
- * Text Domain: admin-custom-login
- * Domain Path: /languages
- */
-
-/** Exit if accessed directly **/
-if (! defined('ABSPATH')) {
- exit;
-}
-define('WEBLIZAR_NALF_PLUGIN_URL', plugin_dir_url(__FILE__));
-define('WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE', plugin_dir_path(__FILE__));
-define('WEBLIZAR_ACL', 'admin-custom-login');
-
-final class WL_ACL_FREE
-{
- private static $instance = null;
-
- private function __construct()
- {
- $this->initialize_hooks();
- }
-
- public static function get_instance()
- {
- if (is_null(self::$instance)) {
- self::$instance = new self();
- }
- return self::$instance;
- }
-
- private function initialize_hooks()
- {
- require_once 'admin/index.php';
- }
-}
-WL_ACL_FREE::get_instance();
-
-/*** Admin Custom Login installation script */
-register_activation_hook(__FILE__, 'ACL_WeblizarDoInstallation');
-function ACL_WeblizarDoInstallation()
-{
- $plugin_data = get_plugin_data(__FILE__);
- require_once 'installation.php';
-}
-
-/**
- * @param $links
- * @return mixed
- */
-function acl_links($links)
-{
- $acl_pro_link = '<a href="https://weblizar.com/plugins/admin-custom-login-pro/" target="_blank">' . esc_html__('Go Pro', WEBLIZAR_ACL) . '</a>';
- $acl_settings_link = '<a href="admin.php?page=admin_custom_login">' . esc_html__('Settings', WEBLIZAR_ACL) . '</a>';
- array_unshift($links, $acl_settings_link);
- array_unshift($links, $acl_pro_link);
- return $links;
-}
-$acl_plugin_name = plugin_basename(__FILE__);
-add_filter("plugin_action_links_$acl_plugin_name", 'acl_links');
-require_once WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE . '/init.php';
+<?php
+
+/**
+ * Plugin Name: Admin Custom Login
+ * Version: 3.6.5
+ * Description: Customize Your WordPress Login Screen Amazingly - Add Own Logo, Add Social Profiles, Login Form Positions, Background Image Slide Show
+ * Author: Weblizar
+ * Author URI: https://weblizar.com/plugins/
+ * Plugin URI: https://wordpress.org/plugins/admin-custom-login/
+ * Text Domain: admin-custom-login
+ * Domain Path: /languages
+ * License: GPLv2 or later
+ */
+
+/** Exit if accessed directly **/
+if (! defined('ABSPATH')) {
+ exit;
+}
+define('WEBLIZAR_NALF_PLUGIN_URL', plugin_dir_url(__FILE__));
+define('WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE', plugin_dir_path(__FILE__));
+define('WEBLIZAR_ACL', 'admin-custom-login');
+define('WEBLIZAR_ACL_VERSION', '3.6.5');
+
+final class WL_ACL_FREE
+{
+ private static $instance = null;
+
+ private function __construct()
+ {
+ $this->initialize_hooks();
+ }
+
+ public static function get_instance()
+ {
+ if (is_null(self::$instance)) {
+ self::$instance = new self();
+ }
+ return self::$instance;
+ }
+
+ private function initialize_hooks()
+ {
+ require_once 'admin/index.php';
+ }
+}
+WL_ACL_FREE::get_instance();
+
+/*** Admin Custom Login installation script */
+register_activation_hook(__FILE__, 'ACL_WeblizarDoInstallation');
+function ACL_WeblizarDoInstallation()
+{
+ $plugin_data = get_plugin_data(__FILE__);
+ require_once 'installation.php';
+}
+
+/**
+ * @param $links
+ * @return mixed
+ */
+function acl_links($links)
+{
+ $acl_pro_link = '<a href="https://weblizar.com/plugins/admin-custom-login-pro/" target="_blank">' . esc_html__('Go Pro', 'admin-custom-login') . '</a>';
+ $acl_settings_link = '<a href="admin.php?page=admin_custom_login">' . esc_html__('Settings', 'admin-custom-login') . '</a>';
+ array_unshift($links, $acl_settings_link);
+ array_unshift($links, $acl_pro_link);
+ return $links;
+}
+$acl_plugin_name = plugin_basename(__FILE__);
+add_filter("plugin_action_links_$acl_plugin_name", 'acl_links');
+require_once WEBLIZAR_ACL_PLUGIN_DIR_PATH_FREE . '/init.php';
--- a/admin-custom-login/admin/inc/admin_menu.php
+++ b/admin-custom-login/admin/inc/admin_menu.php
@@ -1,16 +1,16 @@
-<?php defined( 'ABSPATH' ) or die(); ?>
-<div class="wrap license-container">
- <div class="panel panel-primary panel-default content-panel ">
- <div class="panel-body">
- <img src=" <?php echo esc_url(WEBLIZAR_NALF_PLUGIN_URL. "/images/aclp.jpg") ?>" class="img-responsive">
- </div>
- </div>
- <div class="clearfix"></div>
- <div class="column-6-right">
- <div class="Configuration_btn">
- <a class="conf_btn" href="<?php echo get_admin_url(); ?>admin.php?page=admin_custom_login"><?php esc_html_e( "Plugin Configuration Click Here", WEBLIZAR_ACL ); ?></a>
- <a class="conf_btn" href="<?php echo esc_url('https://weblizar.com/plugins/admin-custom-login-pro/'); ?>" target="_blank"><?php esc_html_e( "Buy Pro", WEBLIZAR_ACL ); echo esc_html("$25"); ?></a>
- <a class="conf_btn" href="<?php echo esc_url('http://demo.weblizar.com/admin-custom-login-pro/wp-login.php'); ?>" target="_blank"><?php esc_html_e( "Admin Demo", WEBLIZAR_ACL ); ?></a>
- </div>
- </div>
-</div>
+<?php defined( 'ABSPATH' ) or die(); ?>
+<div class="wrap license-container">
+ <div class="panel panel-primary panel-default content-panel ">
+ <div class="panel-body">
+ <img src=" <?php echo esc_url(WEBLIZAR_NALF_PLUGIN_URL. "/images/aclp.jpg") ?>" class="img-responsive">
+ </div>
+ </div>
+ <div class="clearfix"></div>
+ <div class="column-6-right">
+ <div class="Configuration_btn">
+ <a class="conf_btn" href="<?php echo esc_url( get_admin_url() ); ?>admin.php?page=admin_custom_login"><?php esc_html_e( "Plugin Configuration Click Here", 'admin-custom-login' ); ?></a>
+ <a class="conf_btn" href="<?php echo esc_url('https://weblizar.com/plugins/admin-custom-login-pro/'); ?>" target="_blank"><?php esc_html_e( "Buy Pro", 'admin-custom-login' ); echo esc_html("$25"); ?></a>
+ <a class="conf_btn" href="<?php echo esc_url('http://demo.weblizar.com/admin-custom-login-pro/wp-login.php'); ?>" target="_blank"><?php esc_html_e( "Admin Demo", 'admin-custom-login' ); ?></a>
+ </div>
+ </div>
+</div>
--- a/admin-custom-login/css/slider-style1.php
+++ b/admin-custom-login/css/slider-style1.php
@@ -1,4 +1,4 @@
-<?php
+<?php if ( ! defined( 'ABSPATH' ) ) { exit; }
$top_page = unserialize(get_option('Admin_custome_login_top'));
$top_slideshow_no = $top_page['top_slideshow_no'];
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
--- a/admin-custom-login/css/slider-style2.php
+++ b/admin-custom-login/css/slider-style2.php
@@ -1,4 +1,4 @@
-<?php
+<?php if ( ! defined( 'ABSPATH' ) ) exit;
$top_page = unserialize(get_option('Admin_custome_login_top'));
$top_slideshow_no = $top_page['top_slideshow_no'];
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
--- a/admin-custom-login/css/slider-style3.php
+++ b/admin-custom-login/css/slider-style3.php
@@ -1,4 +1,4 @@
-<?php
+<?php if ( ! defined( 'ABSPATH' ) ) exit;
$top_page = unserialize(get_option('Admin_custome_login_top'));
$top_slideshow_no = $top_page['top_slideshow_no'];
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
--- a/admin-custom-login/css/slider-style4.php
+++ b/admin-custom-login/css/slider-style4.php
@@ -1,4 +1,4 @@
-<?php
+<?php if ( ! defined( 'ABSPATH' ) ) { exit; }
$top_page = unserialize(get_option('Admin_custome_login_top'));
$top_slideshow_no = $top_page['top_slideshow_no'];
$Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
--- a/admin-custom-login/css/socialcss.php
+++ b/admin-custom-login/css/socialcss.php
@@ -1,4 +1,4 @@
-<?php
+<?php if ( ! defined( 'ABSPATH' ) ) exit;
$Social_page = unserialize(get_option('Admin_custome_login_Social'));
$social_icon_size = $Social_page['social_icon_size'];
$social_icon_layout = $Social_page['social_icon_layout'];
--- a/admin-custom-login/includes/content.php
+++ b/admin-custom-login/includes/content.php
@@ -1,205 +1,205 @@
-<?php
-// Exit if accessed directly
-if (!defined('ABSPATH')) exit;
-
-require_once('get_value.php');
-?>
-
-<div id="wrapper">
- <!-- Navigation -->
- <nav class="navbar navbar-default navbar-static-top" role="navigation">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only"><?php esc_html_e('Toggle navigation', WEBLIZAR_ACL) ?></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="sidebar-toggle hidden-xs" href="javascript:void(0);"><i class="fa fa-bars fa-2x"></i></a>
- <a class="navbar-brand coming-soon-admin-title" href="index.html" style="color:#dc3545;"><?php esc_html_e('Admin Custom Login', WEBLIZAR_ACL); ?></a>
- </div>
- <!-- /.navbar-header -->
- <ul class="nav navbar-top-links navbar-right coming-soon-top">
- <!-- Code for prev Login page-->
- <?php add_thickbox(); ?>
-
- <!-- /.dropdown -->
- <li class="dropdown" style="display:none">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-bell fa-fw"></i>
- </a>
- <!-- /.dropdown-alerts -->
- </li>
- <!-- /.dropdown -->
- <li class="dropdown" style="display:none">
- <a class="dropdown-toggle" data-toggle="dropdown" href="#">
- <i class="fa fa-info fa-fw"></i>
- </a>
- </li>
- <!-- /.dropdown -->
- </ul>
- <!-- /.navbar-top-links -->
- <div class="navbar-default sidebar" role="navigation">
- <div class="sidebar-nav navbar-collapse">
- <ul class="nav " id="side-menu">
- <li>
- <a class="active" href="#" id="ui-id-1">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fas fa-tachometer-alt fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Dashboard', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('application overview', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
- <li>
- <a href="#" id="ui-id-6">
- <span class="sidebar-item-icon fa-stack ">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-paint-brush fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Background Design', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('modify background design here', WEBLIZAR_ACL); ?></span>
- </a>
- <!-- /.nav-second-level -->
- </li>
- <li>
- <a href="#" id="ui-id-8">
- <span class="sidebar-item-icon fa-stack ">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-paint-brush fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Login form Settings', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('modify login design here', WEBLIZAR_ACL); ?></span>
- </a>
- <!-- /.nav-second-level -->
- </li>
- <li>
- <a href="#Text-And-Colour" id="ui-id-7">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fas fa-font fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Font Settings', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('modify login form style here', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
-
- <li>
- <a href="#" id="ui-id-3">
- <span class="sidebar-item-icon fa-stack ">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-wrench fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Logo Settings', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('customize logo settings here', WEBLIZAR_ACL); ?></span>
- </a>
-
- <!-- /.nav-second-level -->
- </li>
- <li>
- <a href="#" id="ui-id-9">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-table fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Social Settings', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('connect with your social profile', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
-
- <li>
- <a href="#" id="ui-id-13">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fab fa-google fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Google Captcha', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('configure captcha settings', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
-
- <li>
- <a href="#" id="ui-id-4">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-upload fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Export / Import', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('import / export plugin settings', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
- <li>
- <a href="#" id="ui-id-2">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-question fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Help And Support', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('ask your queries', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
-
- <li>
- <a href="#" id="ui-id-10">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-star fa-stack-1x fa-inverse"></i>
- </span>
- <!-- <span class="sidebar-item-title"><?php // esc_html_e('Rate & Donate to Us', WEBLIZAR_ACL); ?></span> -->
- <span class="sidebar-item-title"><?php esc_html_e('Rate', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('if you like us', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
-
- <li>
- <a href="<?php echo esc_url('https://weblizar.com/plugins/admin-custom-login-pro/'); ?>" rel="noopener noreferrer" target="_blank">
- <span class="sidebar-item-icon fa-stack">
- <i class="fa fa-square fa-stack-2x text-primary"></i>
- <i class="fa fa-star fa-stack-1x fa-inverse"></i>
- </span>
- <span class="sidebar-item-title"><?php esc_html_e('Get Pro Version', WEBLIZAR_ACL); ?></span>
- <span class="sidebar-item-subtitle"><?php esc_html_e('if love the plugin', WEBLIZAR_ACL); ?></span>
- </a>
- </li>
- </ul>
- </div>
- <!-- /.sidebar-collapse -->
- </div>
- <!-- /.navbar-static-side -->
- </nav>
-
- <div class="page-wrapper ui-tabs-panel active" id="option-ui-id-1">
- <?php require_once('dashboard/dashboard.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-3">
- <?php require_once('settings/page-settings.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-6">
- <?php require_once('design/background.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-7">
- <?php require_once('design/text_and_color.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-8">
- <?php require_once('login-form-setting/login-form-background.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-9">
- <?php require_once('social/social.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-4">
- <?php require_once('import-export-setting/import_export.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-2">
- <?php require_once('help/help.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-10">
- <?php require_once('help/rate.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-13">
- <?php require_once('googlecaptcha-settings/gcaptcha-settings.php'); ?>
- </div>
- <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-18">
- </div>
-</div>
-<!-- /#wrapper -->
+<?php
+// Exit if accessed directly
+if (!defined('ABSPATH')) exit;
+
+require_once('get_value.php');
+?>
+
+<div id="wrapper">
+ <!-- Navigation -->
+ <nav class="navbar navbar-default navbar-static-top" role="navigation">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
+ <span class="sr-only"><?php esc_html_e('Toggle navigation', 'admin-custom-login') ?></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="sidebar-toggle hidden-xs" href="javascript:void(0);"><i class="fa fa-bars fa-2x"></i></a>
+ <a class="navbar-brand coming-soon-admin-title" href="index.html" style="color:#dc3545;"><?php esc_html_e('Admin Custom Login', 'admin-custom-login'); ?></a>
+ </div>
+ <!-- /.navbar-header -->
+ <ul class="nav navbar-top-links navbar-right coming-soon-top">
+ <!-- Code for prev Login page-->
+ <?php add_thickbox(); ?>
+
+ <!-- /.dropdown -->
+ <li class="dropdown" style="display:none">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+ <i class="fa fa-bell fa-fw"></i>
+ </a>
+ <!-- /.dropdown-alerts -->
+ </li>
+ <!-- /.dropdown -->
+ <li class="dropdown" style="display:none">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+ <i class="fa fa-info fa-fw"></i>
+ </a>
+ </li>
+ <!-- /.dropdown -->
+ </ul>
+ <!-- /.navbar-top-links -->
+ <div class="navbar-default sidebar" role="navigation">
+ <div class="sidebar-nav navbar-collapse">
+ <ul class="nav " id="side-menu">
+ <li>
+ <a class="active" href="#" id="ui-id-1">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fas fa-tachometer-alt fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Dashboard', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('application overview', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+ <li>
+ <a href="#" id="ui-id-6">
+ <span class="sidebar-item-icon fa-stack ">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-paint-brush fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Background Design', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('modify background design here', 'admin-custom-login'); ?></span>
+ </a>
+ <!-- /.nav-second-level -->
+ </li>
+ <li>
+ <a href="#" id="ui-id-8">
+ <span class="sidebar-item-icon fa-stack ">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-paint-brush fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Login form Settings', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('modify login design here', 'admin-custom-login'); ?></span>
+ </a>
+ <!-- /.nav-second-level -->
+ </li>
+ <li>
+ <a href="#Text-And-Colour" id="ui-id-7">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fas fa-font fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Font Settings', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('modify login form style here', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+
+ <li>
+ <a href="#" id="ui-id-3">
+ <span class="sidebar-item-icon fa-stack ">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-wrench fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Logo Settings', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('customize logo settings here', 'admin-custom-login'); ?></span>
+ </a>
+
+ <!-- /.nav-second-level -->
+ </li>
+ <li>
+ <a href="#" id="ui-id-9">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-table fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Social Settings', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('connect with your social profile', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+
+ <li>
+ <a href="#" id="ui-id-13">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fab fa-google fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Google Captcha', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('configure captcha settings', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+
+ <li>
+ <a href="#" id="ui-id-4">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-upload fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Export / Import', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('import / export plugin settings', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+ <li>
+ <a href="#" id="ui-id-2">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-question fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Help And Support', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('ask your queries', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+
+ <li>
+ <a href="#" id="ui-id-10">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-star fa-stack-1x fa-inverse"></i>
+ </span>
+ <!-- <span class="sidebar-item-title"><?php // esc_html_e('Rate & Donate to Us', 'admin-custom-login'); ?></span> -->
+ <span class="sidebar-item-title"><?php esc_html_e('Rate', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('if you like us', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+
+ <li>
+ <a href="<?php echo esc_url('https://weblizar.com/plugins/admin-custom-login-pro/'); ?>" rel="noopener noreferrer" target="_blank">
+ <span class="sidebar-item-icon fa-stack">
+ <i class="fa fa-square fa-stack-2x text-primary"></i>
+ <i class="fa fa-star fa-stack-1x fa-inverse"></i>
+ </span>
+ <span class="sidebar-item-title"><?php esc_html_e('Get Pro Version', 'admin-custom-login'); ?></span>
+ <span class="sidebar-item-subtitle"><?php esc_html_e('if love the plugin', 'admin-custom-login'); ?></span>
+ </a>
+ </li>
+ </ul>
+ </div>
+ <!-- /.sidebar-collapse -->
+ </div>
+ <!-- /.navbar-static-side -->
+ </nav>
+
+ <div class="page-wrapper ui-tabs-panel active" id="option-ui-id-1">
+ <?php require_once('dashboard/dashboard.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-3">
+ <?php require_once('settings/page-settings.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-6">
+ <?php require_once('design/background.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-7">
+ <?php require_once('design/text_and_color.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-8">
+ <?php require_once('login-form-setting/login-form-background.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-9">
+ <?php require_once('social/social.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-4">
+ <?php require_once('import-export-setting/import_export.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-2">
+ <?php require_once('help/help.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-10">
+ <?php require_once('help/rate.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-13">
+ <?php require_once('googlecaptcha-settings/gcaptcha-settings.php'); ?>
+ </div>
+ <div class="page-wrapper ui-tabs-panel deactive" id="option-ui-id-18">
+ </div>
+</div>
+<!-- /#wrapper -->
--- a/admin-custom-login/includes/dashboard/dashboard.php
+++ b/admin-custom-login/includes/dashboard/dashboard.php
@@ -1,143 +1,143 @@
-<?php
-// Exit if accessed directly
-if ( ! defined( 'ABSPATH' ) ) exit;
-?>
-<div class="row">
- <div class="post-social-wrapper clearfix">
- <div class="col-md-12 post-social-item">
- <div class="panel panel-default">
- <div class="panel-heading padding-none">
- <div class="post-social post-social-xs" id="post-social-5">
- <div class="text-center padding-all text-center">
- <div class="textbox text-white margin-bottom settings-title">
- <?php esc_html_e('Admin Custom Login Dashboard', WEBLIZAR_ACL); ?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Admin Custom Login', WEBLIZAR_ACL); ?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <span>
- <input type="radio" name="dashboard_status" value="disable" id="dashboard_status1" <?php if($dashboard_status == "disable") echo esc_attr("checked"); ?> /> <label for="dashboard_status1"><?php esc_html_e('Disable', WEBLIZAR_ACL)?></label><br>
- </span>
- <span>
- <input type="radio" name="dashboard_status" value="enable" id="dashboard_status2" <?php if($dashboard_status == "enable") echo esc_attr("checked");?> /> <label for="dashboard_status2"><?php esc_html_e('Enable', WEBLIZAR_ACL)?></label><br>
- </span>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('View Login Page', WEBLIZAR_ACL); ?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <h4><?php esc_html_e('Copy below link and open in another browser where you are not logged in', WEBLIZAR_ACL)?></h4>
- <br>
- <pre><span id="login_form_image" style="color:#ef4238"><?php echo wp_login_url(); ?></span></pre>
-
- <a style="color: #555;" href="javascript:void(0);" onclick="window.open('<?php echo wp_login_url(); ?>')">
- <button type="button" class="preview_btn_custom btn btn-primary" id="preview_btn_custom"><?php esc_html_e('Preview', WEBLIZAR_ACL)?></button>
- </a>
- <button type="button" class="preview_btn_custom_copy btn btn-success" id="preview_btn_custom_copy" value="<?php echo wp_login_url(); ?>"><?php esc_html_e('Copy', WEBLIZAR_ACL)?></button>
- <div id="snackbar"><?php esc_html_e('Copied', WEBLIZAR_ACL)?></div>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <button data-dialog="somedialog" class="dialog-button"><?php esc_html_e('Open Dialog', WEBLIZAR_ACL)?></button>
- <div id="somedialog" class="dialog">
- <div class="dialog__overlay"></div>
- <div class="dialog__content">
- <div class="morph-shape" data-morph-open="M33,0h41c0,0,0,9.871,0,29.871C74,49.871,74,60,74,60H32.666h-0.125H6c0,0,0-10,0-30S6,0,6,0H33" data-morph-close="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33">
- <svg xmlns="" width="100%" height="100%" viewBox="0 0 80 60" preserveAspectRatio="none">
- <path d="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33"></path>
- </svg>
- </div>
- <div class="dialog-inner">
- <h2><strong><?php esc_html_e('Dashboard', WEBLIZAR_ACL);?></strong> <?php esc_html_e('Setting Save Successfully', WEBLIZAR_ACL);?></h2><div><button class="action dialog-button-close" data-dialog-close id="dialog-close-button" ><?php esc_html_e('Close', WEBLIZAR_ACL);?></button></div>
- </div>
- </div>
- </div>
-
- <button data-dialog7="somedialog7" class="dialog-button7"><?php esc_html_e('Open Dialog', WEBLIZAR_ACL)?></button>
- <div id="somedialog7" class="dialog">
- <div class="dialog__overlay"></div>
- <div class="dialog__content">
- <div class="morph-shape" data-morph-open="M33,0h41c0,0,0,9.871,0,29.871C74,49.871,74,60,74,60H32.666h-0.125H6c0,0,0-10,0-30S6,0,6,0H33" data-morph-close="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33">
- <svg xmlns="" width="100%" height="100%" viewBox="0 0 80 60" preserveAspectRatio="none">
- <path d="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33"></path>
- </svg>
- </div>
- <div class="dialog-inner">
- <h2><strong><?php esc_html_e('Dashboard', WEBLIZAR_ACL)?></strong> <?php esc_html_e('Setting Reset Successfully', WEBLIZAR_ACL)?></h2><div><button class="action dialog-button-close" data-dialog-close id="dialog-close-button7" ><?php esc_html_e('Close', WEBLIZAR_ACL)?></button></div>
- </div>
- </div>
- </div>
- <div class="panel panel-primary save-button-block">
- <div class="panel-body">
- <button type="button" onclick="return Custom_login_dashboard('dashboardSave', '');" class="btn btn-info btn-lg"><?php esc_html_e('Save Changes', WEBLIZAR_ACL);?></button>
- <button type="button" onclick="return Custom_login_dashboard('dashboardReset', '');" class="btn btn-primary btn-lg"><?php esc_html_e('Reset Default', WEBLIZAR_ACL);?></button>
- </div>
- </div>
-</div>
-<!-- /row -->
-
-
-<?php
-
-add_action('admin_enqueue_scripts', 'dashboard_print_scripts');
-function dashboard_print_scripts() {
- wp_enqueue_script('wl-acl-dashboard',WEBLIZAR_NALF_PLUGIN_URL.'js/dashboard.js');
- wp_add_inline_script('wl-acl-dashboard');
-}
-
-if(isset($_POST['Action'])) {
- $Action = sanitize_text_field($_POST['Action']);
-
- //Save
- if($Action == "dashboardSave") {
- if( ! wp_verify_nonce( $_POST['nonce_ajax'], 'weblizar_admin_nonce' ) ) {
- die('Not authorized');
- }
- else {
- $dashboard_status = sanitize_text_field($_POST['dashboard_status']);
- // save values in option table
- $dashboard_page= serialize(array(
- 'dashboard_status' => $dashboard_status
- ));
- update_option('Admin_custome_login_dashboard', $dashboard_page);
- }
- }
- if($Action == "dashboardReset") {
- if( ! wp_verify_nonce( $_POST['nonce_ajax'], 'weblizar_admin_nonce' ) ) {
- die('Not authorized');
- }
- else {
- $dashboard_page= serialize(array(
- 'dashboard_status' => 'disable'
- ));
- update_option('Admin_custome_login_dashboard', $dashboard_page);
- }
- }
-}
-?>
+<?php
+// Exit if accessed directly
+if ( ! defined( 'ABSPATH' ) ) exit;
+?>
+<div class="row">
+ <div class="post-social-wrapper clearfix">
+ <div class="col-md-12 post-social-item">
+ <div class="panel panel-default">
+ <div class="panel-heading padding-none">
+ <div class="post-social post-social-xs" id="post-social-5">
+ <div class="text-center padding-all text-center">
+ <div class="textbox text-white margin-bottom settings-title">
+ <?php esc_html_e('Admin Custom Login Dashboard', 'admin-custom-login'); ?>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="panel panel-primary panel-default content-panel">
+ <div class="panel-body">
+ <table class="form-table">
+ <tr>
+ <th scope="row" ><?php esc_html_e('Admin Custom Login', 'admin-custom-login'); ?></th>
+ <td></td>
+ </tr>
+ <tr class="radio-span">
+ <td>
+ <span>
+ <input type="radio" name="dashboard_status" value="disable" id="dashboard_status1" <?php if($dashboard_status == "disable") echo esc_attr("checked"); ?> /> <label for="dashboard_status1"><?php esc_html_e('Disable', 'admin-custom-login')?></label><br>
+ </span>
+ <span>
+ <input type="radio" name="dashboard_status" value="enable" id="dashboard_status2" <?php if($dashboard_status == "enable") echo esc_attr("checked");?> /> <label for="dashboard_status2"><?php esc_html_e('Enable', 'admin-custom-login')?></label><br>
+ </span>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <div class="panel panel-primary panel-default content-panel">
+ <div class="panel-body">
+ <table class="form-table">
+ <tr>
+ <th scope="row" ><?php esc_html_e('View Login Page', 'admin-custom-login'); ?></th>
+ <td></td>
+ </tr>
+ <tr class="radio-span">
+ <td>
+ <h4><?php esc_html_e('Copy below link and open in another browser where you are not logged in', 'admin-custom-login')?></h4>
+ <br>
+ <pre><span id="login_form_image" style="color:#ef4238"><?php echo esc_url( wp_login_url() ); ?></span></pre>
+
+ <a style="color: #555;" href="javascript:void(0);" onclick="window.open('<?php echo esc_url( wp_login_url() ); ?>')">
+ <button type="button" class="preview_btn_custom btn btn-primary" id="preview_btn_custom"><?php esc_html_e('Preview', 'admin-custom-login')?></button>
+ </a>
+ <button type="button" class="preview_btn_custom_copy btn btn-success" id="preview_btn_custom_copy" value="<?php echo esc_url( wp_login_url() ); ?>"><?php esc_html_e('Copy', 'admin-custom-login')?></button>
+ <div id="snackbar"><?php esc_html_e('Copied', 'admin-custom-login')?></div>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+ <button data-dialog="somedialog" class="dialog-button"><?php esc_html_e('Open Dialog', 'admin-custom-login')?></button>
+ <div id="somedialog" class="dialog">
+ <div class="dialog__overlay"></div>
+ <div class="dialog__content">
+ <div class="morph-shape" data-morph-open="M33,0h41c0,0,0,9.871,0,29.871C74,49.871,74,60,74,60H32.666h-0.125H6c0,0,0-10,0-30S6,0,6,0H33" data-morph-close="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33">
+ <svg xmlns="" width="100%" height="100%" viewBox="0 0 80 60" preserveAspectRatio="none">
+ <path d="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33"></path>
+ </svg>
+ </div>
+ <div class="dialog-inner">
+ <h2><strong><?php esc_html_e('Dashboard', 'admin-custom-login');?></strong> <?php esc_html_e('Setting Save Successfully', 'admin-custom-login');?></h2><div><button class="action dialog-button-close" data-dialog-close id="dialog-close-button" ><?php esc_html_e('Close', 'admin-custom-login');?></button></div>
+ </div>
+ </div>
+ </div>
+
+ <button data-dialog7="somedialog7" class="dialog-button7"><?php esc_html_e('Open Dialog', 'admin-custom-login')?></button>
+ <div id="somedialog7" class="dialog">
+ <div class="dialog__overlay"></div>
+ <div class="dialog__content">
+ <div class="morph-shape" data-morph-open="M33,0h41c0,0,0,9.871,0,29.871C74,49.871,74,60,74,60H32.666h-0.125H6c0,0,0-10,0-30S6,0,6,0H33" data-morph-close="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33">
+ <svg xmlns="" width="100%" height="100%" viewBox="0 0 80 60" preserveAspectRatio="none">
+ <path d="M33,0h41c0,0-5,9.871-5,29.871C69,49.871,74,60,74,60H32.666h-0.125H6c0,0-5-10-5-30S6,0,6,0H33"></path>
+ </svg>
+ </div>
+ <div class="dialog-inner">
+ <h2><strong><?php esc_html_e('Dashboard', 'admin-custom-login')?></strong> <?php esc_html_e('Setting Reset Successfully', 'admin-custom-login')?></h2><div><button class="action dialog-button-close" data-dialog-close id="dialog-close-button7" ><?php esc_html_e('Close', 'admin-custom-login')?></button></div>
+ </div>
+ </div>
+ </div>
+ <div class="panel panel-primary save-button-block">
+ <div class="panel-body">
+ <button type="button" onclick="return Custom_login_dashboard('dashboardSave', '');" class="btn btn-info btn-lg"><?php esc_html_e('Save Changes', 'admin-custom-login');?></button>
+ <button type="button" onclick="return Custom_login_dashboard('dashboardReset', '');" class="btn btn-primary btn-lg"><?php esc_html_e('Reset Default', 'admin-custom-login');?></button>
+ </div>
+ </div>
+</div>
+<!-- /row -->
+
+
+<?php
+
+add_action('admin_enqueue_scripts', 'dashboard_print_scripts');
+function dashboard_print_scripts() {
+ wp_enqueue_script('wl-acl-dashboard',WEBLIZAR_NALF_PLUGIN_URL.'js/dashboard.js');
+ wp_add_inline_script('wl-acl-dashboard');
+}
+
+if(isset($_POST['Action'])) {
+ $Action = sanitize_text_field($_POST['Action']);
+
+ //Save
+ if($Action == "dashboardSave") {
+ if( ! wp_verify_nonce( $_POST['nonce_ajax'], 'weblizar_admin_nonce' ) ) {
+ die('Not authorized');
+ }
+ else {
+ $dashboard_status = sanitize_text_field($_POST['dashboard_status']);
+ // save values in option table
+ $dashboard_page= serialize(array(
+ 'dashboard_status' => $dashboard_status
+ ));
+ update_option('Admin_custome_login_dashboard', $dashboard_page);
+ }
+ }
+ if($Action == "dashboardReset") {
+ if( ! wp_verify_nonce( $_POST['nonce_ajax'], 'weblizar_admin_nonce' ) ) {
+ die('Not authorized');
+ }
+ else {
+ $dashboard_page= serialize(array(
+ 'dashboard_status' => 'disable'
+ ));
+ update_option('Admin_custome_login_dashboard', $dashboard_page);
+ }
+ }
+}
+?>
--- a/admin-custom-login/includes/design/background.php
+++ b/admin-custom-login/includes/design/background.php
@@ -1,435 +1,435 @@
-<!-- Dashboard Settings panel content --->
-<?php
-// Exit if accessed directly
-if ( ! defined( 'ABSPATH' ) ) exit;
-?>
-
-<div class="row">
- <div class="post-social-wrapper clearfix">
- <div class="col-md-12 post-social-item">
- <div class="panel panel-default">
- <div class="panel-heading padding-none">
- <div class="post-social post-social-xs" id="post-social-5">
- <div class="text-center padding-all text-center">
- <div class="textbox text-white margin-bottom settings-title">
- <?php esc_html_e('Background Design Setting', WEBLIZAR_ACL)?>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Select Background', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="select-background" class="standard-dropdown" name="select-background" onchange='getComboid()'>
- <option value="no-background" ><?php esc_html_e('No Background Selected', WEBLIZAR_ACL)?></option>
- <optgroup label="<?php esc_html_e('Select Background', WEBLIZAR_ACL)?>">
- <option value="static-background-color" <?php if ( $top_bg_type == 'static-background-color' ) { echo "selected"; } ?>><?php esc_html_e('Static Background Color', WEBLIZAR_ACL)?></option>
- <option value="static-background-image" <?php if ( $top_bg_type == 'static-background-image' ) { echo "selected"; } ?>><?php esc_html_e('Static Background Image', WEBLIZAR_ACL)?></option>
- </optgroup>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div id="div-bakground-color" class="no-background">
- <div class="bg-color">
- <img src="<?php echo esc_url( WEBLIZAR_NALF_PLUGIN_URL .'/images/background-color1.png'); ?>" class="img-responsive" alt="" >
- </div>
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Color', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td id="td-top-background-color">
- <input id="top-background-color" name="top-background-color" type="text" value="<?php echo esc_attr($top_color); ?>" class="my-color-field" data-default-color="#000000" />
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div>
-
- <div id="div-bakground-image" class="no-background">
- <div class="bg-color">
- <img src="<?php echo esc_url(WEBLIZAR_NALF_PLUGIN_URL.'/images/background-image.png'); ?>" class="img-responsive">
- </div>
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Image', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <input type="text" class="pro_text" id="top_image" placeholder="<?php esc_attr_e('No media selected!', WEBLIZAR_ACL)?>" name="upload_image" value="<?php echo esc_attr($top_image); ?>"/>
-
- <input type="button" value="<?php esc_attr_e('Upload', WEBLIZAR_ACL)?>" id="upload-logo" class="button-primary rcsp_media_upload" />
-
- <input type="button" value="<?php esc_attr_e('Preview', WEBLIZAR_ACL)?>" data-toggle="modal" data-target="#top_about_us_image_builder" id="top-image-previewer" title="Font Awesome Icons" class="button " onclick="Acl_show_Image()" />
-
- <input type="button" id="display-logo" value="<?php esc_attr_e('Remove', WEBLIZAR_ACL)?>" class="button" onclick="Acl_top_img_clear();" />
-
- <!-- Modal -->
- <div class="modal " id="top_about_us_image_builder" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog">
- <div class="modal-content">
- <div class="modal-header">
-
- <h4 class="modal-title" id="myModalLabel"><?php esc_html_e('Background Image', WEBLIZAR_ACL)?></h4>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- </div>
-
- <div class="modal-body">
- <img class="show_prev_img" src="" style="width:100%; height:50%" id="top_img_prev"/>
- </div>
-
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal"><?php esc_html_e('Close', WEBLIZAR_ACL)?></button>
- </div>
- </div>
- </div>
- </div>
- <!--End Modal -->
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Stretch', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <input type="checkbox" value="yes" id="bg-strech" name="strech-bg" onclick="OnChangeCheckbox(this)" style="visibility: visible;" <?php if($top_cover=="yes"){echo esc_attr("checked");}?>/> <label for="bg-strech"><?php esc_html_e('Yes', WEBLIZAR_ACL)?></label>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div id="div-on-strech">
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Repeat', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="top_bg_repeat" class="standard-dropdown" name="top_bg_repeat" >
- <option value="no-repeat" ><?php esc_html_e('No Repeat', WEBLIZAR_ACL)?></option>
- <option value="repeat" ><?php esc_html_e('Repeat', WEBLIZAR_ACL)?></option>
- <option value="repeat-x" ><?php esc_html_e('Repeat Horizontally', WEBLIZAR_ACL)?></option>
- <option value="repeat-y" ><?php esc_html_e('Repeat Vertically', WEBLIZAR_ACL)?></option>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Position', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="top_bg_position" class="standard-dropdown" name="top_bg_position" >
- <option value="left top" ><?php esc_html_e('Left Top', WEBLIZAR_ACL)?> </option>
- <option value="left center" ><?php esc_html_e('Left Center', WEBLIZAR_ACL)?> </option>
- <option value="left bottom" ><?php esc_html_e('Left Bottom', WEBLIZAR_ACL)?> </option>
- <option value="right top" ><?php esc_html_e('Right Top', WEBLIZAR_ACL)?> </option>
- <option value="right center" ><?php esc_html_e('Right Center', WEBLIZAR_ACL)?> </option>
- <option value="right bottom" ><?php esc_html_e('Right Bottom', WEBLIZAR_ACL)?></option>
- <option value="center top" ><?php esc_html_e('Center Top', WEBLIZAR_ACL)?> </option>
- <option value="center" ><?php esc_html_e('Center Center', WEBLIZAR_ACL)?> </option>
- <option value="center bottom" ><?php esc_html_e('Center Bottom', WEBLIZAR_ACL)?> </option>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Background Attachment', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="top_bg_attachment" class="standard-dropdown" name="top_bg_attachment">
- <option value="fixed" ><?php esc_html_e('Fixed', WEBLIZAR_ACL)?> </option>
- <option value="scroll" ><?php esc_html_e('Scroll', WEBLIZAR_ACL)?> </option>
- <option value="inherit" ><?php esc_html_e('Inherit', WEBLIZAR_ACL)?> </option>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
- </div><!-- End of div-on-strech -->
- </div><!-- End of div-bakground-image -->
-
- <div id="div-bakground-Slideshow" class="no-background">
- <div class="bg-color">
- <img src="<?php echo esc_url(WEBLIZAR_NALF_PLUGIN_URL.'/images/background-slideshow.png'); ?>" class="img-responsive">
- </div>
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('No. Of Background Slideshow', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="top_slideshow_no" class="standard-dropdown" name="top_slideshow_no" onchange="set_slideshow()">
- <option value="0" ><?php esc_html_e('Select Number of Slide Show', WEBLIZAR_ACL)?> </option>
- <option value="2" ><?php esc_html_e('2', WEBLIZAR_ACL)?> </option>
- <option value="3" ><?php esc_html_e('3', WEBLIZAR_ACL)?> </option>
- <option value="4" ><?php esc_html_e('4', WEBLIZAR_ACL)?> </option>
- <option value="5" ><?php esc_html_e('5', WEBLIZAR_ACL)?> </option>
- <option value="6" ><?php esc_html_e('6', WEBLIZAR_ACL)?> </option>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('No. Of Background Slideshow', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
-
- <tr class="radio-span">
- <td style="width:100% !important" id="tdslider">
- <div class="row">
- <?php
- $Slidshow_image = unserialize(get_option('Admin_custome_login_Slidshow'));
- for($i = 1; $i <= 6; $i++) {
- ?>
- <div class="col-md-4 slideshow_settings" id="slideshow_settings_<?php echo esc_attr($i);?>" style="<?php if($i<=$top_slideshow_no) { echo esc_attr(" "); } else{ ?> display:none <?php } ?>" >
- <div class="rpg-image-entry" id="rpg_img">
- <img src="<?php if($Slidshow_image['Slidshow_image_'.$i] != "") {echo esc_attr($Slidshow_image['Slidshow_image_'.$i]);} else {echo esc_url(WEBLIZAR_NALF_PLUGIN_URL.'images/rpg-default.jpg');} ?>" class="rpg-meta-image" alt="" style="" id="simages-<?php echo esc_attr($i);?>">
- <input type="button" id="upload-background-<?php echo esc_attr($i);?>" name="upload-background" value="Upload Image" class="button-primary" onClick="weblizar_image('<?php echo esc_attr($i);?>')" />
- <input type="text" id="rpg_img_url-<?php echo esc_attr($i);?>" name="rpg_img_url-<?php echo esc_attr($i);?>" class="rpg_label_text-<?php echo esc_attr($i);?>" value="" readonly="readonly" style="display:none;" />
- </div>
- </div>
- <?php
- }// end of foreach
- ?>
- </div>
- </td>
- </tr>
- </table>
- </div>
- </div>
-
- <div class="panel panel-primary panel-default content-panel">
- <div class="panel-body">
- <table class="form-table">
- <tr>
- <th scope="row" ><?php esc_html_e('Slider Animation', WEBLIZAR_ACL)?></th>
- <td></td>
- </tr>
- <tr class="radio-span">
- <td>
- <select id="top_bg_slider_animation" class="standard-dropdown" name="top_bg_slider_animation" >
-
- <option value="slider-style1" ><?php esc_html_e('Slider Animation 1', WEBLIZAR_ACL)?> </option>
- <option value="slider-style2" ><?php esc_html_e('Slider Animation 2', WEBLIZAR_ACL)?> </option>
- <option value="slider-style3" ><?php esc_html_e('Slider Animation 3', WEBLIZAR_ACL)?> </option>
- <option value="slider-style4" ><?php esc_html_e('Slider Animati