HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/commandorestoration/public_html/wp-content/plugins/honeypot/includes/wpa_dashboard_widget.php
<?php
if ( ! defined( 'ABSPATH' ) ) exit; 
add_action("wp_dashboard_setup", "wpa_dashboard_widget");
function wpa_dashboard_widget()
{
    //add_meta_box( 'wpa_dashboard_widget', 'WP Armour Anti Spam Statistics', 'wpa_dashboard_widget_function', 'dashboard', 'side', 'high');
    if ( current_user_can('administrator') ) {
        add_meta_box(
            'wpa_dashboard_widget',
            'WP Armour Anti Spam Statistics',
            'wpa_dashboard_widget_function',
            'dashboard',
            'side',
            'high'
        );
    }
}
 
function wpa_dashboard_widget_function(){
    ob_start();
	include('views/wpa_stats_widget.php');
	$widget_content = ob_get_contents();
	ob_end_clean ();
	$widget_content 			= apply_filters( 'wpa_widget_content', $widget_content);
	echo $widget_content;
}