source: trunk/plugins/AdminTools/admin.php @ 30508

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

use new update pattern

File size: 678 bytes
Line 
1<?php
2defined('ADMINTOOLS_PATH') or die('Hacking attempt!');
3
4if (isset($_POST['save_config']))
5{
6  $conf['AdminTools'] = array(
7    'default_open' => isset($_POST['default_open']),
8    'closed_position' => $_POST['closed_position'],
9    'public_quick_edit' => isset($_POST['public_quick_edit']),
10    );
11
12  conf_update_param('AdminTools', $conf['AdminTools']);
13  $page['infos'][] = l10n('Information data registered in database');
14}
15
16
17$template->assign(array(
18  'AdminTools' => $conf['AdminTools'],
19  ));
20
21
22$template->set_filename('admintools_content', realpath(ADMINTOOLS_PATH . 'template/admin.tpl'));
23$template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content');
Note: See TracBrowser for help on using the repository browser.