Last change
on this file since 14492 was
9369,
checked in by patdenice, 14 years ago
|
Plugins can add their own modules.
|
File size:
795 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | if (!is_a_guest()) return; |
---|
6 | |
---|
7 | global $conf; |
---|
8 | |
---|
9 | // template initialization |
---|
10 | $block = array_merge($block, |
---|
11 | array( |
---|
12 | 'U_LOST_PASSWORD' => get_root_url().'password.php', |
---|
13 | 'F_LOGIN_ACTION' => get_root_url().'identification.php', |
---|
14 | 'authorize_remembering' => $conf['authorize_remembering'], |
---|
15 | )); |
---|
16 | |
---|
17 | if ($conf['allow_user_registration']) |
---|
18 | { |
---|
19 | $block['U_REGISTER'] = get_root_url().'register.php'; |
---|
20 | } |
---|
21 | |
---|
22 | // Retirer le bloc identification rapide du menubar |
---|
23 | if ($datas[0] == '1') |
---|
24 | { |
---|
25 | add_event_handler('blockmanager_apply', 'stuffs_hide_identification'); |
---|
26 | function stuffs_hide_identification($menu_ref_arr) |
---|
27 | { |
---|
28 | $menu = & $menu_ref_arr[0]; |
---|
29 | $menu->hide_block('mbIdentification'); |
---|
30 | } |
---|
31 | } |
---|
32 | |
---|
33 | $block['TEMPLATE'] = 'stuffs_logon.tpl'; |
---|
34 | |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.