add('sets', l10n('Download history'), BATCH_DOWNLOAD_ADMIN . '-sets'); $tabsheet->add('config', l10n('Configuration'), BATCH_DOWNLOAD_ADMIN . '-config'); $tabsheet->select($page['tab']); $tabsheet->assign(); if (!class_exists('ZipArchive')) { array_push($page['warnings'], l10n('Unable to find ZipArchive PHP extension, Batch Downloader will use PclZip instead, but with degraded performance.')); } // include page include(BATCH_DOWNLOAD_PATH . 'admin/' . $page['tab'] . '.php'); // template $template->assign(array( 'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH, 'BATCH_DOWNLOAD_ADMIN' => BATCH_DOWNLOAD_ADMIN, )); $template->assign_var_from_handle('ADMIN_CONTENT', 'batch_download'); ?>