$view Prepared by Admin::render(). */ use CodingCush\LoginGuard\Log; defined( 'ABSPATH' ) || exit; $cclg_v = $view['values']; $cclg_admin = $view['admin']; $cclg_name = static function ( $key ) { return CCLG_OPTION . '[' . $key . ']'; }; $cclg_ev = Log::events(); $cclg_fmt = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $cclg_time = static function ( $gmt ) use ( $cclg_fmt ) { return $gmt ? wp_date( $cclg_fmt, strtotime( $gmt . ' UTC' ) ) : ''; }; $cclg_num = static function ( $key, $label, $hint, $suffix = '' ) use ( $cclg_v, $cclg_name ) { $schema = CodingCush\LoginGuard\Settings::schema()[ $key ]; ?>

array( 'dashicons-chart-area', __( 'Overview', 'codingcush-login-guard' ) ), 'limits' => array( 'dashicons-lock', __( 'Login limits', 'codingcush-login-guard' ) ), 'ip' => array( 'dashicons-admin-site-alt3', __( 'IP rules', 'codingcush-login-guard' ) ), 'turnstile' => array( 'dashicons-shield', __( 'Turnstile', 'codingcush-login-guard' ) ), 'recovery' => array( 'dashicons-email-alt', __( 'Unlock & alerts', 'codingcush-login-guard' ) ), 'tools' => array( 'dashicons-admin-tools', __( 'Tools', 'codingcush-login-guard' ) ), ); $cclg_ts_on = '' !== $cclg_v['ts_site_key'] && '' !== $cclg_v['ts_secret_key']; $cclg_pages = (int) ceil( $view['total'] / $view['per_page'] ); ?>

<?php esc_attr_e( 'CodingCush', 'codingcush-login-guard' ); ?>

v

:

button( 'allow_me', __( 'Add my IP to the allow list', 'codingcush-login-guard' ) ); } ?>

button( 'unlock', __( 'Unlock', 'codingcush-login-guard' ), array( 'ip' => (string) $cclg_row['ip'] ) ); ?>

1 ) : ?>
add_query_arg( 'cclg_p', '%#%' ), 'format' => '', 'current' => $view['page_num'], 'total' => $cclg_pages, ) ) ); ?>

__( 'Direct connection (REMOTE_ADDR)', 'codingcush-login-guard' ), 'cf' => __( 'Cloudflare (CF-Connecting-IP)', 'codingcush-login-guard' ), 'xff' => __( 'Proxy or load balancer (X-Forwarded-For)', 'codingcush-login-guard' ), 'xri' => __( 'Nginx proxy (X-Real-IP)', 'codingcush-login-guard' ), ); foreach ( $cclg_sources as $cclg_key => $cclg_label ) : ?>

    $cclg_value ) : ?>
  • →
button( 'import', __( 'Import these settings', 'codingcush-login-guard' ), array(), 'cclg-btn cclg-btn-primary' ); ?>

button( 'unlock_all', __( 'Unlock all', 'codingcush-login-guard' ), array(), 'cclg-btn cclg-btn-ghost', __( 'Lift every running lockout?', 'codingcush-login-guard' ) ); ?>

button( 'clear_log', __( 'Clear log', 'codingcush-login-guard' ), array(), 'cclg-btn cclg-btn-danger', __( 'Delete the activity log? This cannot be undone.', 'codingcush-login-guard' ) ); ?>