Last change
on this file since 24331 was
23551,
checked in by mistic100, 11 years ago
|
many corrections & optimizations + remove useless code + clean
|
File size:
532 bytes
|
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_mails' => isset($_POST['allow_mails']), |
---|
8 | 'allow_public' => isset($_POST['allow_public']), |
---|
9 | ); |
---|
10 | |
---|
11 | conf_update_param('user_collections', serialize($conf['user_collections'])); |
---|
12 | } |
---|
13 | |
---|
14 | $template->assign(array( |
---|
15 | 'user_collections' => $conf['user_collections'], |
---|
16 | )); |
---|
17 | |
---|
18 | |
---|
19 | $template->set_filename('user_collections', realpath(USER_COLLEC_PATH . 'admin/template/config.tpl')); |
---|
20 | |
---|
21 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.