Changeset 25932 for extensions/BatchDownloader/admin/config.php
- Timestamp:
- Dec 12, 2013, 2:41:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/BatchDownloader/admin/config.php
r25931 r25932 1 1 <?php 2 if (!defined('BATCH_DOWNLOAD_PATH'))die('Hacking attempt!');2 defined('BATCH_DOWNLOAD_PATH') or die('Hacking attempt!'); 3 3 4 4 if (isset($_POST['save_config'])) 5 5 { 6 6 if (!defined('USER_COLLEC_ID')) $_POST['what']['collections'] = 'on'; 7 7 8 8 $conf['batch_download'] = array( 9 9 'groups' => isset($_POST['groups']) ? $_POST['groups'] : array(), … … 22 22 ); 23 23 $conf['batch_download_comment'] = trim($_POST['archive_comment']); 24 24 25 25 conf_update_param('batch_download', serialize($conf['batch_download'])); 26 26 conf_update_param('batch_download_comment', $conf['batch_download_comment']); 27 28 array_push($page['infos'], l10n('Information data registered in database'));27 28 $page['infos'][] = l10n('Information data registered in database'); 29 29 } 30 30 … … 67 67 68 68 69 $template->set_filename('batch_download', dirname(__FILE__) . '/template/config.tpl'); 70 71 ?> 69 $template->set_filename('batch_download', realpath(BATCH_DOWNLOAD_PATH . 'admin/template/config.tpl'));
Note: See TracChangeset
for help on using the changeset viewer.