Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 234
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 236
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 237
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 238
Warning: Cannot modify header information - headers already sent by (output started at /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php:1) in /home/zoomride2022/public_html/myzoomride.com/wp-includes/certificates/system.php on line 239
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/purge_modsec_log Copyright 2022 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
package scripts::purge_modsec_log;
use strict;
use Cpanel::Config::LoadCpConf ();
use Cpanel::ModSecurity::DB ();
use Cpanel::Logger ();
use Cpanel::Locale ();
if (@ARGV) {
die <new();
my $lh = Cpanel::Locale->new();
my $retention = Cpanel::Config::LoadCpConf::loadcpconf()->{'modsec_keep_hits'};
$retention = 7 if ( !defined $retention ); #shouldn't be, but just in case.
if ( $retention == 0 ) {
$logger->info( $lh->maketext(q{Purging of stale records from [asis,modsec] database is disabled.}) );
exit 0;
}
my $db_ok = Cpanel::ModSecurity::DB::purge_stale_records_from_database($retention);
if ($db_ok) {
$logger->info( $lh->maketext(q{Purged stale records from [asis,modsec] database.}) );
}
else {
$logger->warn( $lh->maketext(q{Could not purge stale records from [asis,modsec] database.}) );
}
exit 0 if $db_ok;
exit 1;
}
1;