芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/www/wp-content/plugins/better-wp-security/core/modules/dashboard/container.php
[ 'local-brute-force', 'network-brute-force', 'firewall-block' ], 'label' => __( 'Attacks', 'better-wp-security' ), ], ] ); $cards[] = new ITSEC_Dashboard_Card_Pie_Chart( 'lockout', __( 'Lockouts', 'better-wp-security' ), [ [ 'events' => 'lockout-host', 'label' => __( 'IP Addresses', 'better-wp-security' ), ], [ 'events' => 'lockout-user', 'label' => __( 'Users', 'better-wp-security' ), ], [ 'events' => 'lockout-username', 'label' => __( 'Usernames', 'better-wp-security' ), ], ], [ 'circle_label' => _x( 'Total', 'Total Lockouts', 'better-wp-security' ), 'circle_callback' => function () { /** @var ITSEC_Lockout $itsec_lockout */ global $itsec_lockout; return $itsec_lockout->get_lockouts( 'all', array( 'return' => 'count', 'current' => false ) ); }, ] ); return $cards; } ); ITSEC_Lib::extend_if_able( $c, 'import-export.sources', function ( $sources, $c ) { $sources[] = $c[ ITSEC_Dashboard::class ]; return $sources; } ); };