source: extensions/UserCollections/admin/config.php @ 29317

Last change on this file since 29317 was 29317, checked in by mistic100, 10 years ago

Add allow_send_admin parameter

File size: 598 bytes
Line 
1<?php
2if (!defined('USER_COLLEC_PATH')) die('Hacking attempt!');
3
4if (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.