HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wp-content/plugins/email-log/include/Addon/License/BundleLicense.php
<?php namespace EmailLog\Addon\License;

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

/**
 * BundleLicense Object.
 * There can be only one BundleLicence for all the add-ons.
 *
 * @since 2.0.0
 */
class BundleLicense extends BaseLicense {

	/**
	 * For Bundle the add-on name is hardcoded.
	 *
	 * @var string Add-on name.
	 */
	protected $addon_name = 'Email Log Bundle';

	public function get_renewal_link() {
		$renewal_link = parent::get_renewal_link();

		return $renewal_link . '&utm_content=BL';
	}

	/**
	 * Return bundle license key.
	 *
	 * @return string Bundle License key, if found.
	 */
	public function get_license_key() {
		if ( empty( $this->license_data ) ) {
			return parent::get_license_key();
		}

		return $this->license_data->bundle_license_key;
	}

	/**
	 * The option name in which the bundle license data will be stored.
	 *
	 * @return string Option name.
	 */
	protected function get_option_name() {
		return 'el_bundle_license';
	}

	/**
	 * Get the license key of an add-on from Bundle.
	 *
	 * @param string $addon_name Add-on name.
	 *
	 * @return bool|string False if no license key is found, otherwise license key.
	 */
	public function get_addon_license_key( $addon_name ) {
		if ( empty( $this->license_data ) ) {
			return false;
		}

		if ( ! isset( $this->license_data->bundled_licenses->{$addon_name} ) ) {
			return false;
		}

		return $this->license_data->bundled_licenses->{$addon_name}->license_key;
	}

	/**
	 * Is the bundle license a lifetime license.
	 *
	 * @since 2.4.1
	 *
	 * @return bool True if it is a lifetime license, False otherwise.
	 */
	public function is_lifetime_license() {
		if ( empty( $this->license_data ) || ! isset( $this->license_data->expires ) ) {
			return false;
		}

		return ( false === $this->license_data->expires );
	}
}