Last change
on this file since 3300 was
3300,
checked in by patdenice, 16 years ago
|
New extension added:
PWG Stuffs (2.0.o)
|
File size:
755 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.