diff --git a/account.php b/account.php index 2c9d141..8e2416a 100644 --- a/account.php +++ b/account.php @@ -28,13 +28,11 @@ ?>

Admin controlls

-

Invite Codes

-
-
-

Database info

- Address: ".$database['ip'].":".$database['port']."

"; - echo "

Username: ".$database['username']."

"; - echo "

Password: Not displayed

"; - echo "

Database: ".$database['database']."

"; - ?> -
- "; } - ?> -
diff --git a/image.php b/image.php index 5ffa70f..255e2ec 100644 --- a/image.php +++ b/image.php @@ -195,6 +195,13 @@ // Image resolution list($width, $height) = getimagesize($image_path); echo "

Image resolution: ".$width."x".$height."

"; + + function human_filesize($bytes, $decimals = 2) { + $sz = 'BKMGTP'; + $factor = floor((strlen($bytes) - 1) / 3); + return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor]; + } + echo "

File size: ".human_filesize(filesize($image_path), 2)."

"; ?>