404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.218.41.144: ~ $
<?php

declare(strict_types=1);

namespace League\Flysystem\Ftp;

use const FTP_BINARY;

class FtpConnectionOptions
{
    public function __construct(
        private string $host,
        private string $root,
        private string $username,
        private string $password,
        private int $port = 21,
        private bool $ssl = false,
        private int $timeout = 90,
        private bool $utf8 = false,
        private bool $passive = true,
        private int $transferMode = FTP_BINARY,
        private ?string $systemType = null,
        private ?bool $ignorePassiveAddress = null,
        private bool $enableTimestampsOnUnixListings = false,
        private bool $recurseManually = false,
        private ?bool $useRawListOptions = null,
    ) {
    }

    public function host(): string
    {
        return $this->host;
    }

    public function root(): string
    {
        return $this->root;
    }

    public function username(): string
    {
        return $this->username;
    }

    public function password(): string
    {
        return $this->password;
    }

    public function port(): int
    {
        return $this->port;
    }

    public function ssl(): bool
    {
        return $this->ssl;
    }

    public function timeout(): int
    {
        return $this->timeout;
    }

    public function utf8(): bool
    {
        return $this->utf8;
    }

    public function passive(): bool
    {
        return $this->passive;
    }

    public function transferMode(): int
    {
        return $this->transferMode;
    }

    public function systemType(): ?string
    {
        return $this->systemType;
    }

    public function ignorePassiveAddress(): ?bool
    {
        return $this->ignorePassiveAddress;
    }

    public function timestampsOnUnixListingsEnabled(): bool
    {
        return $this->enableTimestampsOnUnixListings;
    }

    public function recurseManually(): bool
    {
        return $this->recurseManually;
    }

    public function useRawListOptions(): ?bool
    {
        return $this->useRawListOptions;
    }

    public static function fromArray(array $options): FtpConnectionOptions
    {
        return new FtpConnectionOptions(
            $options['host'] ?? 'invalid://host-not-set',
            $options['root'] ?? '',
            $options['username'] ?? 'invalid://username-not-set',
            $options['password'] ?? 'invalid://password-not-set',
            $options['port'] ?? 21,
            $options['ssl'] ?? false,
            $options['timeout'] ?? 90,
            $options['utf8'] ?? false,
            $options['passive'] ?? true,
            $options['transferMode'] ?? FTP_BINARY,
            $options['systemType'] ?? null,
            $options['ignorePassiveAddress'] ?? null,
            $options['timestampsOnUnixListingsEnabled'] ?? false,
            $options['recurseManually'] ?? true,
            $options['useRawListOptions'] ?? null,
        );
    }
}

Filemanager

Name Type Size Permission Actions
.github Folder 0755
.gitattributes File 154 B 0644
ConnectionProvider.php File 221 B 0644
ConnectivityChecker.php File 216 B 0644
ConnectivityCheckerThatCanFail.php File 678 B 0644
FtpAdapter.php File 21.83 KB 0644
FtpAdapterTest.php File 2.85 KB 0644
FtpAdapterTestCase.php File 11.47 KB 0644
FtpConnectionException.php File 185 B 0644
FtpConnectionOptions.php File 3.01 KB 0644
FtpConnectionProvider.php File 3.11 KB 0644
FtpConnectionProviderTest.php File 5.67 KB 0644
FtpdAdapterTest.php File 761 B 0644
InvalidListResponseReceived.php File 237 B 0644
NoopCommandConnectivityChecker.php File 628 B 0644
NoopCommandConnectivityCheckerTest.php File 1.62 KB 0644
README.md File 289 B 0644
RawListFtpConnectivityChecker.php File 450 B 0644
RawListFtpConnectivityCheckerTest.php File 1.13 KB 0644
UnableToAuthenticate.php File 316 B 0644
UnableToConnectToFtpHost.php File 467 B 0644
UnableToEnableUtf8Mode.php File 198 B 0644
UnableToMakeConnectionPassive.php File 199 B 0644
UnableToResolveConnectionRoot.php File 955 B 0644
UnableToSetFtpOption.php File 368 B 0644
composer.json File 663 B 0644