Last change
on this file since 16591 was
15641,
checked in by mistic100, 12 years ago
|
HUGE update, main features : global subscriptions (all images in an album, all images, all albums), beautyful (!) mails
|
File size:
1.4 KB
|
Rev | Line | |
---|
[15641] | 1 | <?php |
---|
| 2 | if(!defined('PHPWG_ROOT_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(array( |
---|
| 23 | 'SUBSCRIBE_TO_PATH' => SUBSCRIBE_TO_PATH, |
---|
| 24 | 'notify_admin_on_subscribe' => $conf['Subscribe_to_Comments']['notify_admin_on_subscribe'], |
---|
| 25 | 'allow_global_subscriptions' => $conf['Subscribe_to_Comments']['allow_global_subscriptions'], |
---|
| 26 | )); |
---|
| 27 | |
---|
| 28 | $template->set_filename('plugin_admin_content', dirname(__FILE__).'/template/admin.tpl'); |
---|
| 29 | $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); |
---|
| 30 | |
---|
| 31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.