403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/pia/wp-content/plugins/cookie-law-info/lite/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pia/wp-content/plugins/cookie-law-info/lite/includes/class-modules.php
<?php
/**
 * Abstract class to handle all the modules on the plugin.
 *
 * @package CookieYes\Lite\Includes
 */

namespace CookieYes\Lite\Includes;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Class Module
 */
abstract class Modules {

	/**
	 * Module slug name
	 *
	 * @var string
	 */
	protected $module_id = '';

	/**
	 * Slug of the main menu
	 *
	 * @var string
	 */
	protected static $menu_slug = 'cookie-law-info';

	/**
	 * Default capability of menus
	 *
	 * @var string
	 */
	protected static $capability = 'manage_options';
	/**
	 * All the module translation strings.
	 *
	 * @var [type]
	 */
	public $translations = array();

	/**
	 * Module constructor.
	 *
	 * @param string $module_id  Module identifier.
	 */
	public function __construct( $module_id ) {
		$this->module_id = $module_id;
		if ( true === $this->is_active() ) {
			$this->init();
		}
	}

	/**
	 * Return true if the module is activated
	 *
	 * @return Boolean
	 */
	public function is_active() {
		$module_id = $this->get_module_id();
		return apply_filters( "cky_is_module_active_$module_id", true );
	}
	/**
	 * Return the module slug name
	 *
	 * @return string
	 */
	public function get_module_id() {
		return $this->module_id;
	}

	/**
	 * Initializes the module. Always executed even if the module is deactivated.
	 *
	 * Do not use __construct in subclasses, use init() instead
	 */
	abstract public function init();
}

Youez - 2016 - github.com/yon3zu
LinuXploit