Line | |
---|
1 | <?php |
---|
2 | if (!defined('BATCH_DOWNLOAD_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page, $conf; |
---|
5 | |
---|
6 | |
---|
7 | // tabsheet |
---|
8 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
9 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'sets'; |
---|
10 | |
---|
11 | $tabsheet = new tabsheet(); |
---|
12 | $tabsheet->add('sets', l10n('Download history'), BATCH_DOWNLOAD_ADMIN . '-sets'); |
---|
13 | $tabsheet->add('config', l10n('Configuration'), BATCH_DOWNLOAD_ADMIN . '-config'); |
---|
14 | $tabsheet->select($page['tab']); |
---|
15 | $tabsheet->assign(); |
---|
16 | |
---|
17 | if (!class_exists('ZipArchive')) |
---|
18 | { |
---|
19 | array_push($page['warnings'], l10n('Unable to find ZipArchive PHP extension, Batch Downloader will use PclZip instead, but with degraded performance.')); |
---|
20 | } |
---|
21 | |
---|
22 | // include page |
---|
23 | include(BATCH_DOWNLOAD_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
24 | |
---|
25 | // template |
---|
26 | $template->assign(array( |
---|
27 | 'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH, |
---|
28 | 'BATCH_DOWNLOAD_ADMIN' => BATCH_DOWNLOAD_ADMIN, |
---|
29 | )); |
---|
30 | |
---|
31 | $template->assign_var_from_handle('ADMIN_CONTENT', 'batch_download'); |
---|
32 | |
---|
33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.