Last change
on this file since 3609 was
3609,
checked in by patdenice, 15 years ago
|
Convert all php and tpl files in Unix format for my plugins.
|
File size:
733 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | unset($template->_tpldata['user_perm.'], $template->_tpldata['group_perm.']); |
---|
6 | $_POST['users'] = array('guest'); |
---|
7 | |
---|
8 | if (!isset($datas)) $datas = array('0'); |
---|
9 | |
---|
10 | // Enregistrement de la configuration |
---|
11 | if (isset($_POST['submit']) and !is_adviser()) { |
---|
12 | if (!isset($_POST['remove_menubar_block'])) $_POST['remove_menubar_block'] = '0'; |
---|
13 | $datas = array($_POST['remove_menubar_block']); |
---|
14 | } |
---|
15 | |
---|
16 | // Parametrage du template |
---|
17 | if ($datas[0] == '1') $template->assign(array('REMOVE_MENUBAR_BLOCK' => 'checked="checked"')); |
---|
18 | |
---|
19 | |
---|
20 | $template->set_filenames(array('module_options' => dirname(__FILE__) . '/config.tpl')); |
---|
21 | $template->assign_var_from_handle('MODULE_OPTIONS', 'module_options'); |
---|
22 | |
---|
23 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.