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