コード例 #1
0
ファイル: selection.php プロジェクト: keverage/webftp
} 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);