source: extensions/PWG_Stuffs/modules/Logon/main.inc.php @ 3609

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: 758 bytes
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4if (!is_a_guest()) return false;
5
6global $conf;
7
8// template initialization
9$block = array_merge($block, 
10  array(
11    'U_LOST_PASSWORD' => get_root_url().'password.php',
12    'F_LOGIN_ACTION' => get_root_url().'identification.php',
13    'authorize_remembering' => $conf['authorize_remembering'],
14    ));
15
16if ($conf['allow_user_registration'])
17{
18  $block['U_REGISTER'] = get_root_url().'register.php';
19}
20
21// Retirer le bloc identification rapide du menubar
22if ($datas[0] == '1')
23{
24  add_event_handler('blockmanager_apply', 'stuffs_hide_identification');
25  function stuffs_hide_identification($menu_ref_arr)
26  {
27    $menu = & $menu_ref_arr[0];
28    $menu->hide_block('mbIdentification');
29  }
30}
31
32?>
Note: See TracBrowser for help on using the repository browser.