*/ /** * Do not execute this file directly. */ if (!defined('ABSPATH')) { exit; } use \blobfolio\wp\meow\ajax; use \blobfolio\wp\meow\options; use \blobfolio\wp\meow\vendor\common\format; // Find the boundaries. global $wpdb; $date_min = $wpdb->get_var("SELECT MIN(DATE(`date_created`)) FROM `{$wpdb->prefix}meow2_log`"); if (!is_null($date_min)) { $date_max = $wpdb->get_var("SELECT MAX(DATE(`date_created`)) FROM `{$wpdb->prefix}meow2_log`"); } else { $date_min = current_time('Y-m-d'); $date_max = current_time('Y-m-d'); } $orders = array( 'date_created'=>__('Date', 'apocalypse-meow'), 'ip'=>__('IP', 'apocalypse-meow'), 'type'=>__('Status', 'apocalypse-meow'), 'username'=>__('Username', 'apocalypse-meow'), ); $data = array( 'date_min'=>$date_min, 'date_max'=>$date_max, 'forms'=>array( 'search'=>array( 'action'=>'meow_ajax_activity', 'n'=>ajax::get_nonce(), 'date_min'=>$date_min, 'date_max'=>$date_max, 'username'=>'', 'usernameExact'=>1, 'ip'=>'', 'subnet'=>'', 'type'=>'', 'page'=>0, 'pageSize'=>50, 'orderby'=>'date_created', 'order'=>'desc', 'errors'=>array(), 'loading'=>false ), 'pardon'=>array( 'action'=>'meow_ajax_pardon', 'n'=>ajax::get_nonce(), 'id'=>0, 'errors'=>array(), 'loading'=>false ), 'download'=>array( 'action'=>'meow_ajax_activity_csv', 'n'=>ajax::get_nonce(), 'errors'=>array(), 'loading'=>false ) ), 'results'=>array( 'page'=>0, 'pages'=>0, 'total'=>0, 'items'=>array(), 'bans'=>array() ), 'searched'=>false, 'modal'=>false, 'modals'=>array( 'jail'=>array( esc_html__('If an offender was wrongly accused, you can set things right by issuing a pardon. That will instantly clear the ban so they can try to login again.', 'apocalypse-meow'), sprintf( esc_html__("Note: they will still be subject to future bans if they haven't learned their lesson. To prevent someone from repeatedly ending up in jail, add their IP or Subnet to the %s", 'apocalypse-meow'), '' . esc_html__('whitelist', 'apocalypse-meow') . '' ) ), ), 'download'=>'', 'downloadName'=>'' ); ?>
{{error}}
{{error}}
{{error}}
' . esc_html__('settings', 'apocalypse-meow') . '' ); ?>