*/ /** * 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; // 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, ), ), 'lastSearch'=>0, 'results'=>array( 'page'=>0, 'pages'=>0, 'total'=>0, 'items'=>array(), 'bans'=>array(), ), 'searched'=>false, 'showCommunityJail'=>false, 'modal'=>false, 'modals'=>array( 'jail'=>array( \__('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( \__("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'), '' . \__('whitelist', 'apocalypse-meow') . '' ), ), ), 'download'=>'', 'downloadName'=>'', ); // JSON doesn't appreciate broken UTF. common\ref\sanitize::utf8($data); ?>

Apocalypse Meow:

{{error}}

{{error}}

{{error}}

' . \__('settings', 'apocalypse-meow') . '' ); ?>

({{results.total}})

{{item.date_created}}
: {{ item.banRemaining | relativeTime }}
{{ item.type | status }}
{{item.ip}} {{item.subnet}} {{item.username}}

{{item.ip}} {{item.subnet}}
{{item.date_created}}
{{ item.banRemaining | relativeTime }}

' . \__('here', 'apocalypse-meow') . '' ); ?>

 
Kitten