Line | |
---|
1 | <?php |
---|
2 | if (!defined('USER_COLLEC_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | if (isset($_POST['save_config'])) |
---|
5 | { |
---|
6 | $conf['user_collections'] = array( |
---|
7 | 'allow_public' => isset($_POST['allow_public']), |
---|
8 | 'allow_mails' => isset($_POST['allow_mails']) && isset($_POST['allow_public']), |
---|
9 | 'allow_send_admin' => isset($_POST['allow_send_admin']), |
---|
10 | ); |
---|
11 | |
---|
12 | conf_update_param('user_collections', $conf['user_collections']); |
---|
13 | } |
---|
14 | |
---|
15 | $template->assign('user_collections', $conf['user_collections']); |
---|
16 | |
---|
17 | $template->set_filename('user_collections', realpath(USER_COLLEC_PATH . 'admin/template/config.tpl')); |
---|
Note: See
TracBrowser
for help on using the repository browser.