Esempio n. 1
0
} else {
    $list = null;
}
if (isset($_POST['newlist'])) {
    $newList = $_POST['newlist'];
} else {
    $newList = null;
}
if (isset($_POST['type'])) {
    $type = htmlspecialchars($_POST['type']);
} else {
    $type = null;
}
// Archive
if ($type == 'archive') {
    //$out = FTP::archiveSelection($path, $list);
} else {
    if ($type == 'move') {
        $out = FTP::moveSelection($path, $newpath, $list);
    } else {
        if ($type == 'rename') {
            $out = FTP::renameSelection($path, $list, $newList);
        } else {
            if ($type == 'delete') {
                $out = FTP::deleteSelection($path, $list);
            }
        }
    }
}
// Retour
echo json_encode($out);