source: extensions/PWG_Stuffs/modules/Logon/config.inc.php @ 9369

Last change on this file since 9369 was 9369, checked in by patdenice, 13 years ago

Plugins can add their own modules.

File size: 734 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5unset($template->_tpldata['user_perm.'], $template->_tpldata['group_perm.']);
6$_POST['users'] = array('guest');
7
8if (!isset($datas)) $datas = array('0');
9
10// Enregistrement de la configuration
11if (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
17if ($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.