source: extensions/BatchDownloader/admin.php @ 16731

Revision 16689, 964 bytes checked in by mistic100, 8 years ago (diff)

-separate "archive_comment" in a new config parameter
-confirmation message before start download

Line 
1<?php
2if (!defined('BATCH_DOWNLOAD_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6// tabsheet
7include_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
16if (!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
22include(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.