source: extensions/BatchDownloader/admin.php @ 25932

Last change on this file since 25932 was 25932, checked in by mistic100, 10 years ago

update for Piwigo 2.6 + code cleaning + fix unable to cancel set during generation

File size: 971 bytes
RevLine 
[16379]1<?php
2if (!defined('BATCH_DOWNLOAD_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
[17177]6
[16379]7// tabsheet
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'sets';
[25932]10
[16379]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
[16689]17if (!class_exists('ZipArchive'))
18{
[25932]19  $page['warnings'][] = l10n('Unable to find ZipArchive PHP extension, Batch Downloader will use PclZip instead, but with degraded performance.');
[16689]20}
21
[16379]22// include page
23include(BATCH_DOWNLOAD_PATH . 'admin/' . $page['tab'] . '.php');
24
25// template
26$template->assign(array(
[16392]27  'BATCH_DOWNLOAD_PATH' => BATCH_DOWNLOAD_PATH,
[16379]28  'BATCH_DOWNLOAD_ADMIN' => BATCH_DOWNLOAD_ADMIN,
29  ));
[25932]30
[16379]31$template->assign_var_from_handle('ADMIN_CONTENT', 'batch_download');
Note: See TracBrowser for help on using the repository browser.