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