403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/prosvasi/wp-content/plugins/wp-statistics/src/Service/Summary/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/prosvasi/wp-content/plugins/wp-statistics/src/Service/Summary/SummaryManager.php
<?php
namespace WP_Statistics\Service\Summary;

if (!defined('ABSPATH')) exit; // Exit if accessed directly

class SummaryManager
{
    public function __construct()
    {
        add_action('init', [$this, 'registerEvents']);
        add_action('update_option_timezone_string', [$this, 'rescheduleEvents'], 10, 2);
        add_action('update_option_gmt_offset', [$this, 'rescheduleEvents'], 10, 2);
    }

    /**
     * Register the summary events on init hook
     */
    public function registerEvents()
    {
        $summaryEvents = new SummaryEvents();
        $summaryEvents->register();
    }

    /**
     * Reschedule summary events when timezone or GMT offset is updated
     */
    public function rescheduleEvents()
    {
        $summaryEvents = new SummaryEvents();
        $summaryEvents->reschedule();
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit