Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mets.corals.io/wp-content/plugins/foogallery/includes/extensions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mets.corals.io/wp-content/plugins/foogallery/includes/extensions/class-extension.php
<?php
/**
 * FooGallery Extension Class that holds all information about an extension
 *
 * Date: 19/03/2017
 */
if ( ! class_exists( 'FooGallery_Extension' ) ) {

	class FooGallery_Extension extends stdClass {

		/**
		 * private constructor
		 *
		 * @param array $array
		 */
		private function __construct( $array = null ) {
			if ( $array !== null ) {
				$this->load( $array );
			}
		}

		private function convertToObject( $array, $parent = null ) {
			$object = ( null === $parent ) ? $this : new stdClass();
			foreach ( $array as $key => $value ) {
				if ( is_array( $value ) ) {
					$value = convertToObject( $value, $object );
				}
				$object->$key = $value;
			}
			return $object;
		}

		function load( $array ) {
			$this->convertToObject( $array );
//			'slug' => 'foobox',
//				'class' => 'FooGallery_FooBox_Extension',
//				'categories' => array( 'Featured', 'Premium' ),
//				'file' => 'foobox.php',
//				'title' => 'FooBox PRO',
//				'description' => 'The best lightbox for WordPress just got even better!',
//				'price' => '$27',
//				'author' => 'FooPlugins',
//				'author_url' => 'https://fooplugins.com',
//				'thumbnail' => '/assets/extension_bg.png',
//				'tags' => array( 'premium', 'lightbox', ),
//				'source' => 'fooplugins',
//				'download_button' =>
//					array(
//						'text' => 'Buy - $27',
//						'target' => '_blank',
//						'href' => 'https://fooplugins.com/plugins/foobox',
//						'confirm' => false,
//					),
//				'activated_by_default' => true,
//				'minimum_version' => '2.3.2',
		}
	}
}

Spamworldpro Mini