Файловый менеджер - Редактировать - /home/tuudkjt/globeasy/wp-includes/ID3/Exceptions.tar
Назад
LEFunctionsException.php 0000777 00000004247 15252114363 0011345 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client Functions exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEFunctionsException extends LEException { public const INVALIDARGUMENTEXCEPTION = 0x51; public const GENERATEKEYPAIREXCEPTION = 0x52; public const PHPVERSIONEXCEPTION = 0x53; public static function InvalidArgumentException(string $message) { return new static($message, self::INVALIDARGUMENTEXCEPTION); } public static function GenerateKeypairException(string $message) { return new static($message, self::GENERATEKEYPAIREXCEPTION); } public static function PHPVersionException() { return new static('PHP 7.1+ required for EC keys.', self::PHPVERSIONEXCEPTION); } } LEAuthorizationException.php 0000777 00000003546 15252114363 0012236 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client Authorization exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEAuthorizationException extends LEException { public const NOCHALLENGEFOUNDEEXCEPTION = 0x41; public static function NoChallengeFoundException($type, $identifier) { return new static(sprintf('No challenge found for type \'%s\' and identifier \'%s\'.', $type, $identifier), self::NOCHALLENGEFOUNDEEXCEPTION); } } LEClientException.php 0000777 00000003766 15252114363 0010620 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEClientException extends LEException { public const INVALIDARGUMENTEXCEPTION = 0x01; public const INVALIDDIRECTORYEXCEPTION = 0x02; public static function InvalidArgumentException(string $message) { return new static($message, self::INVALIDARGUMENTEXCEPTION); } public static function InvalidDirectoryException(string $directory) { return new static(sprintf('%s directory not found.', $directory), self::INVALIDDIRECTORYEXCEPTION); } } LEOrderException.php 0000777 00000005150 15252114363 0010442 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client Order exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEOrderException extends LEException { const INVALIDKEYTYPEEXCEPTION = 0x31; const INVALIDORDERSTATUSEXCEPTION = 0x32; const CREATEFAILEDEXCEPTION = 0x33; const INVALIDARGUMENTEXCEPTION = 0x34; const INVALIDCONFIGURATIONEXCEPTION = 0x35; public static function InvalidKeyTypeException(string $keyType) { return new static(sprintf('Key type \'%s\' not supported.', $keyType), self::INVALIDKEYTYPEEXCEPTION); } public static function InvalidOrderStatusException() { return new static('Order status is invalid.', self::INVALIDORDERSTATUSEXCEPTION); } public static function CreateFailedException(string $message) { return new static($message, self::CREATEFAILEDEXCEPTION); } public static function InvalidArgumentException(string $message) { return new static($message, self::INVALIDARGUMENTEXCEPTION); } public static function InvalidConfigurationException(string $message) { return new static($message, self::INVALIDCONFIGURATIONEXCEPTION); } } LEException.php 0000777 00000003602 15252114363 0007446 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client base exception, extends PHP's RuntimeException. * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEException extends \RuntimeException { protected $responsedata; public function __construct($message, $code, $previous = null, $responsedata = null) { parent::__construct($message, $code, $previous); $this->responsedata = $responsedata; } public function getResponseData() { return $this->responsedata; } } LEConnectorException.php 0000777 00000006353 15252114363 0011327 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client Connector exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEConnectorException extends LEException { public const NONEWNONCEEXCEPTION = 0x11; public const ACCOUNTDEACTIVATEDEXCEPTION = 0x12; public const METHODNOTSUPPORTEDEXCEPTION = 0x13; public const CURLERROREXCEPTION = 0x14; public const INVALIDRESPONSEEXCEPTION = 0x15; public static function NoNewNonceException() { return new static('No new nonce.', self::NONEWNONCEEXCEPTION); } public static function AccountDeactivatedException() { return new static('The account was deactivated. No further requests can be made.', self::ACCOUNTDEACTIVATEDEXCEPTION); } public static function MethodNotSupportedException(string $method) { return new static(sprintf('HTTP request %s not supported.', $method), self::METHODNOTSUPPORTEDEXCEPTION); } public static function CurlErrorException(string $error) { return new static(sprintf('Curl error: %s', $error), self::CURLERROREXCEPTION); } public static function InvalidResponseException(array $response) { $statusCode = array_key_exists('status', $response) ? $response['status'] : 'unknown'; // $detail = (isset($response['body']) && isset($response['body']['detail'])) ? $response['body']['detail'] : ''; // if ($statusCode == 400) { // $detail .= '. Please try using RESET option once. If you notice same issue again, please try after 2-3 hours.'; // } if (!empty($detail)) { $info = sprintf('Invalid response: %s <strong>(%s)</strong>', $statusCode, $detail); } else { $info = sprintf('Invalid response: %s', $statusCode); } return new static($info, self::INVALIDRESPONSEEXCEPTION, null, $response); } } LEAccountException.php 0000777 00000003421 15252114363 0010762 0 ustar 00 <?php namespace LEClient\Exceptions; /** * LetsEncrypt Client Account exception, extends LEException * * PHP version 5.2.0 * * MIT License * * Copyright (c) 2020 Youri van Weegberg * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * @author Youri van Weegberg <youri@yourivw.nl> * @copyright 2020 Youri van Weegberg * @license https://opensource.org/licenses/mit-license.php MIT License * @link https://github.com/yourivw/LEClient * @since Class available since Release 1.2.0 */ class LEAccountException extends LEException { public const ACCOUNTNOTFOUNDEEXCEPTION = 0x21; public static function AccountNotFoundException() { return new static('Account not found or deactivated.', self::ACCOUNTNOTFOUNDEEXCEPTION); } }
| ver. 1.6 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка