����JFIF��� ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/vidoe.top/proxy/youtubedownload/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/vidoe.top/proxy/youtubedownload/src/Config.php
<?php

namespace YoutubeDownloader;

/**
 * Config class
 */
class Config
{
	/**
	 * Creates the config from files
	 *
	 * @param string $default full path to default config php file
	 * @param string $custom full path to custom config php file
	 * @return StreamMap
	 */
	public static function createFromFiles($default, $custom = null)
	{
		$default_config = require($default);
		$custom_config = [];

		if ( file_exists($custom) )
		{
			$custom_config = require($custom);
		}

		$config = array_replace_recursive($default_config, $custom_config);

		return new self($config);
	}

	private $data = [];

	private $allowed_keys = [
		'ThumbnailImageMode',
		'VideoLinkMode',
		'MP3Enable',
		'MP3ConvertVideo',
		'MP3Quality',
		'MP3TempDir',
		'ffmpegPath',
		'aria2Path',
		'showBrowserExtensions',
		'multipleIPs',
		'IPs',
		'default_timezone',
		'debug',
	];

	/**
	 * Creates a Config from an array
	 *
	 * @param array $config
	 * @return self
	 */
	private function __construct(array $config)
	{
		foreach ($this->allowed_keys as $key)
		{
			if ( array_key_exists($key, $config) )
			{
				$this->data[$key] = $config[$key];
			}
		}
	}

	/**
	 * Get a config value
	 *
	 * @param string $key
	 * @return mixed
	 */
	public function get($key)
	{
		if ( array_key_exists($key, $this->data) )
		{
			return $this->data[$key];
		}

		throw new \InvalidArgumentException;
	}
}

ZeroDay Forums Mini