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/table/visitors.php
<?php
/**
 * @author William Sergio Minossi
 * @copyright 2020
 */
if (!defined('ABSPATH'))
  exit; // Exit if accessed directly

global $wpdb;


add_action('admin_menu', 'stopbadbots_add_menu_items2');
// add_action('wp_head', 'antibots_ajaxurl');


function stopbadbots_add_menu_items2()
{

  $sbb_table_page = add_submenu_page(
    'stop_bad_bots_plugin', // $parent_slug
    'Visits Log', // string $page_title
    'Blocked Visits Log', // string $menu_title
    'manage_options', // string $capability
    'stopbadbots_my-custom-submenu-page',
    'stopbadbots_render_list_page'


  );


}
function stopbadbots_render_list_page()
{
  require_once STOPBADBOTSPATH . 'table/visitors_render.php';
}