Server IP : 104.21.14.103 / Your IP : 18.227.102.111 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/core/modules/dashboard/ |
Upload File : |
<?php use iThemesSecurity\Dashboard\Cards\Security_Summary_Card; use iThemesSecurity\Site_Scanner\Repository\Scans_Repository; use iThemesSecurity\User_Groups\Matcher; use iThemesSecurity\Strauss\Pimple\Container; return static function ( Container $c ) { $c[ ITSEC_Dashboard::class ] = static function ( Container $c ) { return new ITSEC_Dashboard( $c[ Matcher::class ] ); }; ITSEC_Lib::extend_if_able( $c,'dashboard.cards', function ( $cards ) use ( $c ) { $cards[] = new Security_Summary_Card( $c[ Scans_Repository::class ], ); $cards[] = new ITSEC_Dashboard_Card_Line_Graph( 'brute-force', __( 'Threats Blocked', 'it-l10n-ithemes-security-pro' ), [ [ 'events' => [ 'local-brute-force', 'network-brute-force', 'firewall-block' ], 'label' => __( 'Attacks', 'it-l10n-ithemes-security-pro' ), ], ] ); $cards[] = new ITSEC_Dashboard_Card_Pie_Chart( 'lockout', __( 'Lockouts', 'it-l10n-ithemes-security-pro' ), [ [ 'events' => 'lockout-host', 'label' => __( 'IP Addresses', 'it-l10n-ithemes-security-pro' ), ], [ 'events' => 'lockout-user', 'label' => __( 'Users', 'it-l10n-ithemes-security-pro' ), ], [ 'events' => 'lockout-username', 'label' => __( 'Usernames', 'it-l10n-ithemes-security-pro' ), ], ], [ 'circle_label' => _x( 'Total', 'Total Lockouts', 'it-l10n-ithemes-security-pro' ), '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; } ); };