Last change
on this file since 23139 was
21608,
checked in by mistic100, 12 years ago
|
code clean, add admin list of all subscribers
|
File size:
1.1 KB
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('SUBSCRIBE_TO_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | // Save configuration | |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | if (isset($_POST['config_submit'])) |
---|
8 | { |
---|
9 | $conf['Subscribe_to_Comments'] = array( |
---|
10 | 'notify_admin_on_subscribe' => isset($_POST['notify_admin_on_subscribe']), |
---|
11 | 'allow_global_subscriptions' => isset($_POST['allow_global_subscriptions']), |
---|
12 | ); |
---|
13 | |
---|
14 | conf_update_param('Subscribe_to_Comments', serialize($conf['Subscribe_to_Comments'])); |
---|
15 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
16 | } |
---|
17 | |
---|
18 | |
---|
19 | // +-----------------------------------------------------------------------+ |
---|
20 | // Template | |
---|
21 | // +-----------------------------------------------------------------------+ |
---|
22 | $template->assign($conf['Subscribe_to_Comments']); |
---|
23 | |
---|
24 | $template->set_filename('stc_admin', realpath(SUBSCRIBE_TO_PATH . 'admin/template/config.tpl')); |
---|
25 | |
---|
26 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.