Last change
on this file since 16818 was
16689,
checked in by mistic100, 12 years ago
|
-separate "archive_comment" in a new config parameter
-confirmation message before start download
|
File size:
964 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('BATCH_DOWNLOAD_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page, $conf; |
---|
5 | |
---|
6 | // tabsheet |
---|
7 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
8 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'sets'; |
---|
9 | |
---|
10 | $tabsheet = new tabsheet(); |
---|
11 | $tabsheet->add('sets', l10n('Download history'), BATCH_DOWNLOAD_ADMIN . '-sets'); |
---|
12 | $tabsheet->add('config', l10n('Configuration'), BATCH_DOWNLOAD_ADMIN . '-config'); |
---|
13 | $tabsheet->select($page['tab']); |
---|
14 | $tabsheet->assign(); |
---|
15 | |
---|
16 | if (!class_exists('ZipArchive')) |
---|
17 | { |
---|
18 | array_push($page['errors'], l10n('Unable to find ZipArchive PHP extension, Batch Downloader can\'t work without this extension.')); |
---|
19 | } |
---|
20 | |
---|
21 | // include page |
---|
22 | include(BATCH_DOWNLOAD_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
23 | |
---|
24 | // template |
---|
25 | $template->assign(array( |
---|
26 | 'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH, |
---|
27 | 'BATCH_DOWNLOAD_ADMIN' => BATCH_DOWNLOAD_ADMIN, |
---|
28 | )); |
---|
29 | |
---|
30 | $template->assign_var_from_handle('ADMIN_CONTENT', 'batch_download'); |
---|
31 | |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.