403Webshell
Server IP : 162.243.168.218  /  Your IP : 216.73.216.85
Web Server : Apache
System : Linux ISPCONFIG-WEB-EMPRESAS 5.15.0-174-generic #184-Ubuntu SMP Fri Mar 13 18:41:50 UTC 2026 x86_64
User : web23 ( 5020)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/clients/client3/web23/web/wp-content/plugins/mainwp-child/class/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client3/web23/web/wp-content/plugins/mainwp-child/class/class-mainwp-exception.php
<?php
/**
 * Extends Exception
 *
 * Grabs $extra and stores it in $messageExtra.
 *
 * @package     MainWP/Child
 */

namespace MainWP\Child;

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/**
 * Class MainWP_Exception
 *
 * @package MainWP\Dashboard
 */
class MainWP_Exception extends \Exception { // phpcs:ignore Generic.Classes.OpeningBraceSameLine.ContentAfterBrace -- NOSONAR.

    /**
     * Protected variable to hold the extra messages.
     *
     * @var string Error messages.
     */
    protected $messageExtra;

    /**
     * Protected variable to hold the Error Code.
     *
     * @var string Error Code.
     */
    protected $errorCode;

    /**
     * Protected variable to hold the extra data.
     *
     * @var array data.
     */
    protected $data;

    /**
     * MainWP_Exception constructor.
     *
     * Grab Exception Message upon creation of the object.
     *
     * @param mixed  $message Exception message.
     * @param null   $extra Any extra Errors.
     * @param string $errCode Errors code.
     */
    public function __construct( $message, $extra = null, $errCode = '' ) {
        parent::__construct( $message );
        $this->messageExtra = esc_html( $extra ); // add more secure.
        $this->errorCode    = esc_html( $errCode );
    }

    /**
     * Method get_message_extra()
     *
     * @return $messageExtra Extra messages.
     */
    public function get_message_extra() {
        return $this->messageExtra;
    }

    /**
     * Method get_message_error_code()
     *
     * @return string $errorCode Errors code.
     */
    public function get_message_error_code() {
        return $this->errorCode;
    }

    /**
     * Method set_data()
     *
     * @param mixed $data Addition data.
     */
    public function set_data( $data ) {
        $this->data = $data;
    }

    /**
     * Method get_data()
     *
     * @return $data Addition data.
     */
    public function get_data() {
        return $this->data;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit