? GR0V Shell

GR0V shell

Linux www.koreapackagetour.com 2.6.32-042stab145.3 #1 SMP Thu Jun 11 14:05:04 MSK 2020 x86_64

Path : /home/admin/public_html/old/libraries/rokcommon/RokCommon/
File Upload :
Current File : /home/admin/public_html/old/libraries/rokcommon/RokCommon/Platform.php

<?php
/**
 * @version   $Id: Platform.php 10831 2013-05-29 19:32:17Z btowles $
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

// No direct access
defined('ROKCOMMON') or die;

/**
 * @deprecated Use RokCommon_PlatformFactory to get a RokCommon_Platform_Definition
 */
class RokCommon_Platform
{
	/** @var RokCommon_Platform_Definition */
	protected $platform_definition;

	/**
	 * @var RokCommon_Platform
	 */
	protected static $instance;

	/**
	 * @static
	 * @return RokCommon_Platform
	 */
	public static function &getInstance()
	{
		if (!isset(self::$instance)) {
			self::$instance = new RokCommon_Platform();
		}
		return self::$instance;
	}

	/**
	 *
	 */
	protected function __construct()
	{
		$this->platform_definition = RokCommon_PlatformFactory::getCurrent();
	}

	/**
	 * @return string
	 */
	public function getPlatform()
	{
		return $this->platform_definition->getName();
	}

	/**
	 * @return string
	 */
	public function getPlatformVersion()
	{
		return $this->platform_definition->getVersion();
	}

	/**
	 * @return string
	 */
	public function getPlatformId()
	{
		return strtolower($this->platform_definition->getName()) . preg_replace('/[\.]/i', '', $this->platform_definition->getOldVersionPlatformId());
	}

	/**
	 * @return string
	 */
	public function getPlatformShortVersion()
	{
		return $this->platform_definition->getShortVersion();
	}
}

T1KUS90T
  root-grov@210.1.60.28:~$