source: extensions/BatchDownloader/admin.php @ 16622

Revision 16392, 792 bytes checked in by mistic100, 8 years ago (diff)
  • stylish download page
  • if there is only one archive, the file is downloaded directly
  • improve configuration page + add sliders (needs Piwigo 2.4.2)
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
16// include page
17include(BATCH_DOWNLOAD_PATH . 'admin/' . $page['tab'] . '.php');
18
19// template
20$template->assign(array(
21  'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH,
22  'BATCH_DOWNLOAD_ADMIN' => BATCH_DOWNLOAD_ADMIN,
23  ));
24 
25$template->assign_var_from_handle('ADMIN_CONTENT', 'batch_download');
26
27?>
Note: See TracBrowser for help on using the repository browser.