Example #1
0
        $zoom['batch']['arrayMake'][$a[0]] = $a[1] == 'on' ? true : false;
        $_SESSION['axZmBtch']['arrayMake'] = $zoom['batch']['arrayMake'];
        if ($zoom['batch']['arrayMake']['Th'] and !$zoom['config']['useFullGallery'] and !$zoom['config']['useGallery']) {
            $zoom['config']['useFullGallery'] = true;
            $zoom['config']['useGallery'] = true;
        }
        if ($zoom['batch']['arrayMake']['Th'] and $zoom['batch']['enableBatchThumbs']) {
            if ($zoom['config']['useFullGallery']) {
                $zoom['batch']['batchThumbs'] = 'galFullPic';
            } elseif ($zoom['config']['useGallery']) {
                $zoom['batch']['batchThumbs'] = 'galPic';
            }
        }
        $_SESSION['axZmBtch']['arrayMake'] = $zoom['batch']['arrayMake'];
        $retScript .= "<script type=\"text/javascript\">";
        $retScript .= "\n\t\t\t\$('#batchList').html('" . $axZmH->batchList($zoom, $pic_list_array, $pic_list_data) . "');\n\t\t\t\$('#processTable').remove();\n\t\t\t\$('#batchProcess').prepend('" . $axZmH->batchProcess($zoom) . "');\n\t\t\t\$.zoomBatch.trOver();\n\t\t";
        $retScript .= "</script>";
        echo $retScript;
    }
    exit;
}
// Choose thumb size if thumbs should be shown in the batch process list
if ($zoom['batch']['enableBatchThumbs']) {
    if ($zoom['config']['useFullGallery']) {
        $zoom['batch']['batchThumbs'] = 'galFullPic';
    } elseif ($zoom['config']['useGallery']) {
        $zoom['batch']['batchThumbs'] = 'galPic';
    }
}
// Ajax change directory
if ($_GET['dir'] and $_GET['dirReplace']) {