diff --git a/account.php b/account.php index 2c9d141..8e2416a 100644 --- a/account.php +++ b/account.php @@ -28,13 +28,11 @@ ?>
Username: ".$database['username']."
"; - echo "Password: Not displayed
"; - echo "Database: ".$database['database']."
"; - ?> -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)."
"; ?>