403Webshell
Server IP : 104.21.28.229  /  Your IP : 216.73.216.142
Web Server : Apache/2
System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : mienphi ( 1014)
PHP Version : 8.2.14
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mienphi/domains/mienphi.org/public_html/wp-content/plugins/tp-portfolio/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mienphi/domains/mienphi.org/public_html/wp-content/plugins/tp-portfolio/tp-portfolio.php
<?php
/*
Plugin Name: Thim Portfolio
Plugin URI: http://thimpress.com
Description: A plugin that allows you to show off your portfolio.
Author: ThimPress
Version: 1.8
Author URI: http://thimpress.com
Requires at least: 3.8
Tested up to: 5.1.0

Text Domain: tp-portfolio
Domain Path: /languages/
*/

/**
 * Prevent loading this file directly
 */
defined( 'ABSPATH' ) || exit();

if ( ! defined( 'TP_PORTFOLIO_PLUGIN_FILE' ) ) {
	define( 'TP_PORTFOLIO_PLUGIN_FILE', __FILE__ );
	require_once dirname( __FILE__ ) . '/inc/constants.php';
}

if ( ! class_exists( 'Thim_Portfolio' ) ) {
	/**
	 * Class Thim_Portfolio.
	 */
	class Thim_Portfolio {

		/**
		 * Current version of the plugin
		 *
		 * @var string
		 */
		public $version = THIM_PORTFOLIO_VERSION;

		/**
		 * The single instance of the class
		 *
		 * @var Thim_Portfolio object
		 */
		private static $_instance = null;

		/**
		 * Thim_Portfolio constructor.
		 */
		public function __construct() {
			// Prevent duplicate unwanted hooks
			if ( self::$_instance ) {
				return;
			}
			self::$_instance = $this;

			// include files
			$this->includes();
			// hooks
			$this->init_hooks();
		}

		/**
		 * Includes files.
		 */
		public function includes() {

			require_once 'inc/functions.php';
			require_once 'inc/aq_resizer.php';

			require_once 'inc/class-tp-post-types.php';

			// include own metabox
			require_once 'libraries/meta-boxes/thim-meta-box.php';
			require_once 'libraries/meta-boxes/init.php';
		}

		/**
		 * Init hooks.
		 */
		public function init_hooks() {
			// Load text domain
			add_action( 'plugins_loaded', array( $this, 'text_domain' ) );
		}

		/**
		 * Load text domain.
		 */
		public function text_domain() {
			// Get mo file
			$text_domain = 'tp-portfolio';
			$locale      = apply_filters( 'plugin_locale', get_locale(), $text_domain );
			$mo_file     = $text_domain . '-' . $locale . '.mo';
			// Check mo file global
			$mo_global = WP_LANG_DIR . '/plugins/' . $mo_file;
			// Load translate file
			if ( file_exists( $mo_global ) ) {
				load_textdomain( $text_domain, $mo_global );
			} else {
				load_textdomain( $text_domain, CORE_PLUGIN_PATH . '/languages/' . $mo_file );
			}
		}

		/**
		 * Main plugin instance.
		 *
		 * @return Thim_Portfolio
		 */
		public static function instance() {
			if ( ! self::$_instance ) {
				self::$_instance = new self();
			}

			return self::$_instance;
		}
	}
}

Thim_Portfolio::instance();

Youez - 2016 - github.com/yon3zu
LinuXploit