AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 3.129.249.45   [ 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/cf7-styler/freemius/includes/sdk/Exceptions/

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/cf7-styler/freemius/includes/sdk/Exceptions/Exception.php
<?php
        if ( ! defined( 'ABSPATH' ) ) {
            exit;
        }

	if ( ! class_exists( 'Freemius_Exception' ) ) {
		/**
		 * Thrown when an API call returns an exception.
		 *
		 */
		class Freemius_Exception extends Exception {
			protected $_result;
			protected $_type;
			protected $_code;

			/**
			 * Make a new API Exception with the given result.
			 *
			 * @param array $result The result from the API server.
			 */
			public function __construct( $result ) {
				$this->_result = $result;

				$code    = 0;
				$message = 'Unknown error, please check GetResult().';
				$type    = '';

				if ( isset( $result['error'] ) && is_array( $result['error'] ) ) {
					if ( isset( $result['error']['code'] ) ) {
						$code = $result['error']['code'];
					}
					if ( isset( $result['error']['message'] ) ) {
						$message = $result['error']['message'];
					}
					if ( isset( $result['error']['type'] ) ) {
						$type = $result['error']['type'];
					}
				}

				$this->_type = $type;
				$this->_code = $code;

				parent::__construct( $message, is_numeric( $code ) ? $code : 0 );
			}

			/**
			 * Return the associated result object returned by the API server.
			 *
			 * @return array The result from the API server
			 */
			public function getResult() {
				return $this->_result;
			}

			public function getStringCode() {
				return $this->_code;
			}

			public function getType() {
				return $this->_type;
			}

			/**
			 * To make debugging easier.
			 *
			 * @return string The string representation of the error
			 */
			public function __toString() {
				$str = $this->getType() . ': ';

				if ( $this->code != 0 ) {
					$str .= $this->getStringCode() . ': ';
				}

				return $str . $this->getMessage();
			}
		}
	}

Anon7 - 2022
AnonSec Team