0.7.12.5 (Icons)
This commit is contained in:
@@ -67,6 +67,11 @@ class ProgressBar {
|
||||
// Functions
|
||||
//////////////////////////////////////////
|
||||
|
||||
function prettysize($size) {
|
||||
$unit=array('b','kb','mb','gb','tb','pb');
|
||||
return @round($size/pow(1024,($i=floor(log($size,1024)))),2).' '.$unit[$i];
|
||||
}
|
||||
|
||||
function alert($string, $title = "Warning") {
|
||||
echo "\nALERT:".$title."|".$string."\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user