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

Revision 9737, 716 bytes checked in by patdenice, 9 years ago (diff)

Compatible 2.2

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'])) {
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.