Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK!‚0üzphpdotenv/LICENSEnuÕIw¶“BSD 3-Clause License Copyright (c) 2014, Graham Campbell. Copyright (c) 2013, Vance Lucas. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PK!śĀZŽŽphpdotenv/composer.jsonnuÕIw¶“{ "name": "vlucas/phpdotenv", "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", "keywords": ["env", "dotenv", "environment"], "license" : "BSD-3-Clause", "authors" : [ { "name": "Graham Campbell", "email": "graham@alt-three.com", "homepage": "https://gjcampbell.co.uk/" }, { "name": "Vance Lucas", "email": "vance@vancelucas.com", "homepage": "https://vancelucas.com/" } ], "require": { "php": "^5.4 || ^7.0", "phpoption/phpoption": "^1.5", "symfony/polyfill-ctype": "^1.9" }, "require-dev": { "ext-filter": "*", "ext-pcre": "*", "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0" }, "autoload": { "psr-4": { "Dotenv\\": "src/" } }, "suggest": { "ext-filter": "Required to use the boolean validator.", "ext-pcre": "Required to use most of the library." }, "extra": { "branch-alias": { "dev-master": "3.6-dev" } } } PK!Ņaśphpdotenv/src/Loader.phpnuÕIw¶“filePaths = $filePaths; $this->envFactory = $envFactory; $this->setImmutable($immutable); } /** * Set immutable value. * * @param bool $immutable * * @return $this */ public function setImmutable($immutable = false) { $this->envVariables = $immutable ? $this->envFactory->createImmutable() : $this->envFactory->create(); return $this; } /** * Load the environment file from disk. * * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException * * @return array */ public function load() { return $this->loadDirect( self::findAndRead($this->filePaths) ); } /** * Directly load the given string. * * @param string $content * * @throws \Dotenv\Exception\InvalidFileException * * @return array */ public function loadDirect($content) { return $this->processEntries( Lines::process(preg_split("/(\r\n|\n|\r)/", $content)) ); } /** * Attempt to read the files in order. * * @param string[] $filePaths * * @throws \Dotenv\Exception\InvalidPathException * * @return string[] */ private static function findAndRead(array $filePaths) { if ($filePaths === []) { throw new InvalidPathException('At least one environment file path must be provided.'); } foreach ($filePaths as $filePath) { $lines = self::readFromFile($filePath); if ($lines->isDefined()) { return $lines->get(); } } throw new InvalidPathException( sprintf('Unable to read any of the environment file(s) at [%s].', implode(', ', $filePaths)) ); } /** * Read the given file. * * @param string $filePath * * @return \PhpOption\Option */ private static function readFromFile($filePath) { $content = @file_get_contents($filePath); return Option::fromValue($content, false); } /** * Process the environment variable entries. * * We'll fill out any nested variables, and acually set the variable using * the underlying environment variables instance. * * @param string[] $entries * * @throws \Dotenv\Exception\InvalidFileException * * @return array */ private function processEntries(array $entries) { $vars = []; foreach ($entries as $entry) { list($name, $value) = Parser::parse($entry); $vars[$name] = $this->resolveNestedVariables($value); $this->setEnvironmentVariable($name, $vars[$name]); } return $vars; } /** * Resolve the nested variables. * * Look for ${varname} patterns in the variable value and replace with an * existing environment variable. * * @param string|null $value * * @return string|null */ private function resolveNestedVariables($value = null) { return Option::fromValue($value) ->filter(function ($str) { return strpos($str, '$') !== false; }) ->flatMap(function ($str) { return Regex::replaceCallback( '/\${([a-zA-Z0-9_.]+)}/', function (array $matches) { return Option::fromValue($this->getEnvironmentVariable($matches[1])) ->getOrElse($matches[0]); }, $str )->success(); }) ->getOrElse($value); } /** * Search the different places for environment variables and return first value found. * * @param string $name * * @return string|null */ public function getEnvironmentVariable($name) { return $this->envVariables->get($name); } /** * Set an environment variable. * * @param string $name * @param string|null $value * * @return void */ public function setEnvironmentVariable($name, $value = null) { $this->variableNames[] = $name; $this->envVariables->set($name, $value); } /** * Clear an environment variable. * * This method only expects names in normal form. * * @param string $name * * @return void */ public function clearEnvironmentVariable($name) { $this->envVariables->clear($name); } /** * Get the list of environment variables names. * * @return string[] */ public function getEnvironmentVariableNames() { return $this->variableNames; } } PK! ōQQ3phpdotenv/src/Environment/Adapter/ApacheAdapter.phpnuÕIw¶“ */ private $variables = []; /** * Determines if the adapter is supported. * * @return bool */ public function isSupported() { return true; } /** * Get an environment variable, if it exists. * * @param string $name * * @return \PhpOption\Option */ public function get($name) { if (array_key_exists($name, $this->variables)) { return Some::create($this->variables[$name]); } return None::create(); } /** * Set an environment variable. * * @param string $name * @param string|null $value * * @return void */ public function set($name, $value = null) { $this->variables[$name] = $value; } /** * Clear an environment variable. * * @param string $name * * @return void */ public function clear($name) { unset($this->variables[$name]); } } PK!É|˜Ė5phpdotenv/src/Environment/Adapter/EnvConstAdapter.phpnuÕIw¶“immutable = $immutable; $this->loaded = new ArrayAdapter(); } /** * Get an environment variable. * * @param string $name * * @throws \InvalidArgumentException * * @return string|null */ public function get($name) { if (!is_string($name)) { throw new InvalidArgumentException('Expected name to be a string.'); } return $this->getInternal($name); } /** * Get an environment variable. * * @param string $name * * @return string|null */ abstract protected function getInternal($name); /** * Set an environment variable. * * @param string $name * @param string|null $value * * @throws \InvalidArgumentException * * @return void */ public function set($name, $value = null) { if (!is_string($name)) { throw new InvalidArgumentException('Expected name to be a string.'); } // Don't overwrite existing environment variables if we're immutable // Ruby's dotenv does this with `ENV[key] ||= value`. if ($this->isImmutable() && $this->get($name) !== null && $this->loaded->get($name)->isEmpty()) { return; } $this->setInternal($name, $value); $this->loaded->set($name, ''); } /** * Set an environment variable. * * @param string $name * @param string|null $value * * @return void */ abstract protected function setInternal($name, $value = null); /** * Clear an environment variable. * * @param string $name * * @throws \InvalidArgumentException * * @return void */ public function clear($name) { if (!is_string($name)) { throw new InvalidArgumentException('Expected name to be a string.'); } // Don't clear anything if we're immutable. if ($this->isImmutable()) { return; } $this->clearInternal($name); } /** * Clear an environment variable. * * @param string $name * * @return void */ abstract protected function clearInternal($name); /** * Determine if the environment is immutable. * * @return bool */ public function isImmutable() { return $this->immutable; } /** * Tells whether environment variable has been defined. * * @param string $name * * @return bool */ public function has($name) { return is_string($name) && $this->get($name) !== null; } /** * {@inheritdoc} */ public function offsetExists($offset) { return $this->has($offset); } /** * {@inheritdoc} */ public function offsetGet($offset) { return $this->get($offset); } /** * {@inheritdoc} */ public function offsetSet($offset, $value) { $this->set($offset, $value); } /** * {@inheritdoc} */ public function offsetUnset($offset) { $this->clear($offset); } } PK!5īÆ8]].phpdotenv/src/Environment/FactoryInterface.phpnuÕIw¶“EźNN0phpdotenv/src/Environment/VariablesInterface.phpnuÕIw¶“adapters = $adapters; parent::__construct($immutable); } /** * Get an environment variable. * * We do this by querying our adapters sequentially. * * @param string $name * * @return string|null */ protected function getInternal($name) { foreach ($this->adapters as $adapter) { $result = $adapter->get($name); if ($result->isDefined()) { return $result->get(); } } } /** * Set an environment variable. * * @param string $name * @param string|null $value * * @return void */ protected function setInternal($name, $value = null) { foreach ($this->adapters as $adapter) { $adapter->set($name, $value); } } /** * Clear an environment variable. * * @param string $name * * @return void */ protected function clearInternal($name) { foreach ($this->adapters as $adapter) { $adapter->clear($name); } } } PK!\øC ZZ+phpdotenv/src/Environment/DotenvFactory.phpnuÕIw¶“adapters = array_filter($adapters === null ? [new ApacheAdapter(), new EnvConstAdapter(), new ServerConstAdapter(), new PutenvAdapter()] : $adapters, function (AdapterInterface $adapter) { return $adapter->isSupported(); }); } /** * Creates a new mutable environment variables instance. * * @return \Dotenv\Environment\VariablesInterface */ public function create() { return new DotenvVariables($this->adapters, false); } /** * Creates a new immutable environment variables instance. * * @return \Dotenv\Environment\VariablesInterface */ public function createImmutable() { return new DotenvVariables($this->adapters, true); } } PK!W™Q4phpdotenv/src/Dotenv.phpnuÕIw¶“loader = $loader; } /** * Create a new dotenv instance. * * @param string|string[] $paths * @param string|null $file * @param \Dotenv\Environment\FactoryInterface|null $envFactory * * @return \Dotenv\Dotenv */ public static function create($paths, $file = null, FactoryInterface $envFactory = null) { $loader = new Loader( self::getFilePaths((array) $paths, $file ?: '.env'), $envFactory ?: new DotenvFactory(), true ); return new self($loader); } /** * Returns the full paths to the files. * * @param string[] $paths * @param string $file * * @return string[] */ private static function getFilePaths(array $paths, $file) { return array_map(function ($path) use ($file) { return rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.$file; }, $paths); } /** * Load environment file in given directory. * * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException * * @return array */ public function load() { return $this->loadData(); } /** * Load environment file in given directory, silently failing if it doesn't exist. * * @throws \Dotenv\Exception\InvalidFileException * * @return array */ public function safeLoad() { try { return $this->loadData(); } catch (InvalidPathException $e) { // suppressing exception return []; } } /** * Load environment file in given directory. * * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException * * @return array */ public function overload() { return $this->loadData(true); } /** * Actually load the data. * * @param bool $overload * * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException * * @return array */ protected function loadData($overload = false) { return $this->loader->setImmutable(!$overload)->load(); } /** * Required ensures that the specified variables exist, and returns a new validator object. * * @param string|string[] $variables * * @return \Dotenv\Validator */ public function required($variables) { return new Validator((array) $variables, $this->loader); } /** * Returns a new validator object that won't check if the specified variables exist. * * @param string|string[] $variables * * @return \Dotenv\Validator */ public function ifPresent($variables) { return new Validator((array) $variables, $this->loader, false); } /** * Get the list of environment variables declared inside the 'env' file. * * @return string[] */ public function getEnvironmentVariableNames() { return $this->loader->getEnvironmentVariableNames(); } } PK!Ņb°=vvphpdotenv/src/Regex/Success.phpnuÕIw¶“value = $value; } /** * Create a new success value. * * @param string|int $value * * @return \Dotenv\Regex\Result */ public static function create($value) { return new self($value); } /** * Get the success option value. * * @return \PhpOption\Option */ public function success() { return Some::create($this->value); } /** * Map over the success value. * * @param callable $f * * @return \Dotenv\Regex\Result */ public function mapSuccess(callable $f) { return self::create($f($this->value)); } /** * Get the error option value. * * @return \PhpOption\Option */ public function error() { return None::create(); } /** * Map over the error value. * * @param callable $f * * @return \Dotenv\Regex\Result */ public function mapError(callable $f) { return self::create($this->value); } } PK!Ć`ƒeephpdotenv/src/Regex/Error.phpnuÕIw¶“value = $value; } /** * Create a new error value. * * @param string $value * * @return \Dotenv\Regex\Result */ public static function create($value) { return new self($value); } /** * Get the success option value. * * @return \PhpOption\Option */ public function success() { return None::create(); } /** * Map over the success value. * * @param callable $f * * @return \Dotenv\Regex\Result */ public function mapSuccess(callable $f) { return self::create($this->value); } /** * Get the error option value. * * @return \PhpOption\Option */ public function error() { return Some::create($this->value); } /** * Map over the error value. * * @param callable $f * * @return \Dotenv\Regex\Result */ public function mapError(callable $f) { return self::create($f($this->value)); } } PK!WƁŌ× × phpdotenv/src/Regex/Regex.phpnuÕIw¶“filter(function (array $consts) { return isset($consts['pcre']) && defined('ARRAY_FILTER_USE_KEY'); }) ->map(function (array $consts) { return array_filter($consts['pcre'], function ($msg) { return substr($msg, -6) === '_ERROR'; }, ARRAY_FILTER_USE_KEY); }) ->flatMap(function (array $errors) use ($code) { return Option::fromValue( array_search($code, $errors, true) ); }) ->getOrElse('PREG_ERROR'); } } PK!@ÄĆphpdotenv/src/Regex/Result.phpnuÕIw¶“success()->get(); } /** * Map over the success value. * * @param callable $f * * @return \Dotenv\Regex\Result */ abstract public function mapSuccess(callable $f); /** * Get the error option value. * * @return \PhpOption\Option */ abstract public function error(); /** * Get the error value, if possible. * * @return string */ public function getError() { return $this->error()->get(); } /** * Map over the error value. * * @param callable $f * * @return \Dotenv\Regex\Result */ abstract public function mapError(callable $f); } PK!lrŒ ęęphpdotenv/src/Parser.phpnuÕIw¶“variables = $variables; $this->loader = $loader; if ($required) { $this->assertCallback( function ($value) { return $value !== null; }, 'is missing' ); } } /** * Assert that each variable is not empty. * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ public function notEmpty() { return $this->assertCallback( function ($value) { if ($value === null) { return true; } return strlen(trim($value)) > 0; }, 'is empty' ); } /** * Assert that each specified variable is an integer. * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ public function isInteger() { return $this->assertCallback( function ($value) { if ($value === null) { return true; } return ctype_digit($value); }, 'is not an integer' ); } /** * Assert that each specified variable is a boolean. * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ public function isBoolean() { return $this->assertCallback( function ($value) { if ($value === null) { return true; } if ($value === '') { return false; } return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== null; }, 'is not a boolean' ); } /** * Assert that each variable is amongst the given choices. * * @param string[] $choices * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ public function allowedValues(array $choices) { return $this->assertCallback( function ($value) use ($choices) { if ($value === null) { return true; } return in_array($value, $choices, true); }, sprintf('is not one of [%s]', implode(', ', $choices)) ); } /** * Assert that each variable matches the given regular expression. * * @param string $regex * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ public function allowedRegexValues($regex) { return $this->assertCallback( function ($value) use ($regex) { if ($value === null) { return true; } return Regex::match($regex, $value)->success()->getOrElse(0) === 1; }, sprintf('does not match "%s"', $regex) ); } /** * Assert that the callback returns true for each variable. * * @param callable $callback * @param string $message * * @throws \Dotenv\Exception\ValidationException * * @return \Dotenv\Validator */ protected function assertCallback(callable $callback, $message = 'failed callback assertion') { $failing = []; foreach ($this->variables as $variable) { if ($callback($this->loader->getEnvironmentVariable($variable)) === false) { $failing[] = sprintf('%s %s', $variable, $message); } } if (count($failing) > 0) { throw new ValidationException(sprintf( 'One or more environment variables failed assertions: %s.', implode(', ', $failing) )); } return $this; } } PK!„u9ĀŻŻ0phpdotenv/src/Exception/InvalidFileException.phpnuÕIw¶“ 1; } /** * Get all pairs of adjacent characters within the line. * * @param string $line * * @return bool */ private static function getCharPairs($line) { $chars = str_split($line); return array_map(null, $chars, array_slice($chars, 1)); } /** * Determine if the line in the file is a comment or whitespace. * * @param string $line * * @return bool */ private static function isCommentOrWhitespace($line) { if (trim($line) === '') { return true; } $line = ltrim($line); return isset($line[0]) && $line[0] === '#'; } } PK!‚0üzphpdotenv/LICENSEnuÕIw¶“PK!śĀZŽŽVphpdotenv/composer.jsonnuÕIw¶“PK!Ņaś+ phpdotenv/src/Loader.phpnuÕIw¶“PK! ōQQ3Œ$phpdotenv/src/Environment/Adapter/ApacheAdapter.phpnuÕIw¶“PK!MķOææ2@*phpdotenv/src/Environment/Adapter/ArrayAdapter.phpnuÕIw¶“PK!É|˜Ė5a/phpdotenv/src/Environment/Adapter/EnvConstAdapter.phpnuÕIw¶“PK!±Ž"įŌŌ6Ž3phpdotenv/src/Environment/Adapter/AdapterInterface.phpnuÕIw¶“PK!¬+«''87phpdotenv/src/Environment/Adapter/ServerConstAdapter.phpnuÕIw¶“PK!ŗ®ĘÅÅ3§;phpdotenv/src/Environment/Adapter/PutenvAdapter.phpnuÕIw¶“PK!j%ZBB/Ļ?phpdotenv/src/Environment/AbstractVariables.phpnuÕIw¶“PK!5īÆ8]].pOphpdotenv/src/Environment/FactoryInterface.phpnuÕIw¶“PK!S>EźNN0+Rphpdotenv/src/Environment/VariablesInterface.phpnuÕIw¶“PK!6Ż &ĒĒ-ŁVphpdotenv/src/Environment/DotenvVariables.phpnuÕIw¶“PK!\øC ZZ+ż]phpdotenv/src/Environment/DotenvFactory.phpnuÕIw¶“PK!W™Q4²dphpdotenv/src/Dotenv.phpnuÕIw¶“PK!Ņb°=vvtphpdotenv/src/Regex/Success.phpnuÕIw¶“PK!Ć`ƒeeĒyphpdotenv/src/Regex/Error.phpnuÕIw¶“PK!WƁŌ× × yphpdotenv/src/Regex/Regex.phpnuÕIw¶“PK!@ÄƝŠphpdotenv/src/Regex/Result.phpnuÕIw¶“PK!lrŒ ęęģŽphpdotenv/src/Parser.phpnuÕIw¶“PK!‹ļ””¤phpdotenv/src/Validator.phpnuÕIw¶“PK!„u9ĀŻŻ0ł¶phpdotenv/src/Exception/InvalidFileException.phpnuÕIw¶“PK!¼lOxx.6øphpdotenv/src/Exception/ExceptionInterface.phpnuÕIw¶“PK!‚”£ŻŻ0 ¹phpdotenv/src/Exception/InvalidPathException.phpnuÕIw¶“PK!÷Øį ŹŹ/Iŗphpdotenv/src/Exception/ValidationException.phpnuÕIw¶“PK!I}mD  r»phpdotenv/src/Lines.phpnuÕIw¶“PKv ĶĒ