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

Last change on this file since 24421 was 24421, checked in by mistic100, 11 years ago

new system for shares : password protection, link timeout, management popup + for mails
handle lightbox conflicts
menublock is visible by AMM

File size: 565 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    );
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.