Windows NT KAMIDAKI 10.0 build 19045 (Windows 10) AMD64
Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.3.9
Server IP : 192.168.3.16 & Your IP : 216.73.216.140
Domains :
Cant Read [ /etc/named.conf ]
User : SISTEMA
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
C: /
xampp /
phpMyAdmin /
libraries /
classes /
Utils /
Delete
Unzip
Name
Size
Permission
Date
Action
ForeignKey.php
2.27
KB
-rw-rw-rw-
2023-02-07 22:26
FormatConverter.php
1.81
KB
-rw-rw-rw-
2023-02-07 22:26
Gis.php
9.48
KB
-rw-rw-rw-
2023-02-07 22:26
HttpRequest.php
9.01
KB
-rw-rw-rw-
2023-02-07 22:26
SessionCache.php
1.17
KB
-rw-rw-rw-
2023-02-07 22:26
Save
Rename
<?php /** * Format converter */ declare(strict_types=1); namespace PhpMyAdmin\Utils; use PhpMyAdmin\Util; use function bin2hex; use function hex2bin; use function inet_ntop; use function inet_pton; use function ip2long; use function long2ip; use function strpos; use function substr; /** * Format converter */ class FormatConverter { /** * Transforms a binary to an IP * * @param mixed $buffer Data to transform * * @return false|string */ public static function binaryToIp($buffer, bool $isBinary) { if (strpos($buffer, '0x') !== 0) { return $isBinary ? bin2hex($buffer) : $buffer; } $ipHex = substr($buffer, 2); $ipBin = hex2bin($ipHex); if ($ipBin === false) { return $buffer; } return @inet_ntop($ipBin); } /** * Transforms an IP to a binary * * @param mixed $buffer Data to transform * * @return string */ public static function ipToBinary($buffer) { $val = @inet_pton($buffer); if ($val !== false) { return '0x' . bin2hex($val); } return $buffer; } /** * Transforms an IP to a long * * @param string $buffer Data to transform * * @return int|string */ public static function ipToLong(string $buffer) { $ipLong = ip2long($buffer); if ($ipLong === false) { return $buffer; } return $ipLong; } /** * Transforms a long to an IP * * @param mixed $buffer Data to transform */ public static function longToIp($buffer): string { if (! Util::isInteger($buffer) || $buffer < 0 || $buffer > 4294967295) { return $buffer; } return (string) long2ip((int) $buffer); } }