HEX
Server: nginx/1.18.0
System: Linux m1-ws1-ams3 5.4.0-148-generic #165-Ubuntu SMP Tue Apr 18 08:53:12 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /opt/aphex/sites/apotheca.cc/wp-content/plugins/stopbadbots/functions/server_processing.php
<?php /**
 * @ Author: Bill Minozzi
 * @ Copyright: 2020 www.BillMinozzi.com
 * @ Modified time: 2020-10-26 12:02:27
 */

/*
error_reporting(E_ALL);
ini_set('display_errors', 1);
*/ 


if (!defined('ABSPATH')) 
    exit;
global $wpdb;
global $table_prefix;
$table = $table_prefix . "sbb_visitorslog";
// Table's primary key
$primaryKey = 'date';
$columns = array(
    array(
        'db'        => 'date',
        'dt'        => 1,
        'formatter' => function ($d, $row) {
            return date('d-M-Y H:i:s', strtotime($d));
        }
    ),
    array('db' => 'access', 'dt' => 2),
    array('db' => 'ip', 'dt' => 3),
  //  array('db' => 'human',  'dt' => 4),
    array('db' => 'reason',     'dt' => 4),
    array('db' => 'response',   'dt' => 5),
    array('db' => 'method',     'dt' => 6),
    array('db' => 'ua',     'dt' => 7),
    array('db' => 'url',     'dt' => 8),
    array('db' => 'referer',     'dt' => 9)
);
require('_ssp_sbb.class.php');
echo json_encode(
    STOPBADBOTS_SSP::simple($_GET, $table, $primaryKey, $columns)
);