Beispiel #1
0
function zip_items($dir, $name)
{
    $items = qxpage_selected_items();
    if (!preg_match("/\\.zip\$/", $name)) {
        $name .= ".zip";
    }
    zip_selected_items(get_abs_item($dir, $name), $dir, $items);
    header("Location: " . make_link("list", $dir, NULL));
}
Beispiel #2
0
/**
 * download_selected
 * @return void
 **/
function download_selected($dir)
{
    $dir = get_abs_dir($dir);
    global $site_name;
    require_once "_include/archive.php";
    $items = qxpage_selected_items();
    if (count($items) == 1 && is_file($items[0])) {
        download_item($dir, $items[0]);
    } else {
        zip_download($dir, $items);
    }
}
Beispiel #3
0
/**
 * download_selected
 * @return void
 **/
function download_selected($dir)
{
    require_once "_include/fun_archive.php";
    $items = qxpage_selected_items();
    _download_items($dir, $items);
}