Line | |
---|
1 | <?php |
---|
2 | defined('ADMINTOOLS_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | if (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.