mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
Changes to work with registration rewrite
This commit is contained in:
parent
939052437d
commit
90308f177c
@ -314,23 +314,23 @@ class idots_framework extends egw_framework
|
|||||||
|
|
||||||
$config_reg = config::read('registration');
|
$config_reg = config::read('registration');
|
||||||
|
|
||||||
if($config_reg['enable_registration'] == 'True')
|
if($config_reg['enable_registration'])
|
||||||
{
|
{
|
||||||
if ($config_reg['register_link'] == 'True')
|
if ($config_reg['register_link'])
|
||||||
{
|
{
|
||||||
$reg_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','lang_code='.$_GET['lang']). '">'.lang('Not a user yet? Register now').'</a><br/>';
|
$reg_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','lang_code='.$_GET['lang']). '">'.lang('Not a user yet? Register now').'</a><br/>';
|
||||||
}
|
}
|
||||||
if ($config_reg['lostpassword_link'] == 'True')
|
if ($config_reg['lostpassword_link'])
|
||||||
{
|
{
|
||||||
$lostpw_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','menuaction=registration.uireg.lostpw_step1_ask_login&lang_code='.$_GET['lang']). '">'.lang('Lost password').'</a><br/>';
|
$lostpw_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','menuaction=registration.registration_ui.lost_password&lang_code='.$_GET['lang']). '">'.lang('Lost password').'</a><br/>';
|
||||||
}
|
}
|
||||||
if ($config_reg['lostid_link'] == 'True')
|
if ($config_reg['lostid_link'])
|
||||||
{
|
{
|
||||||
$lostid_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','menuaction=registration.uireg.lostid_step1_ask_email&lang_code='.$_GET['lang']). '">'.lang('Lost Login Id').'</a><br/>';
|
$lostid_link=' <a href="'. $GLOBALS['egw']->link('/registration/index.php','menuaction=registration.registration_ui.lost_username&lang_code='.$_GET['lang']). '">'.lang('Lost Login Id').'</a><br/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if at least one option of "registration" is activated display the registration section */
|
/* if at least one option of "registration" is activated display the registration section */
|
||||||
if($config_reg['register_link'] == 'True' || $config_reg['lostpassword_link'] == 'True' || $config_reg['lostid_link'] == 'True')
|
if($config_reg['register_link'] || $config_reg['lostpassword_link'] || $config_reg['lostid_link'] )
|
||||||
{
|
{
|
||||||
$tmpl->set_var(array(
|
$tmpl->set_var(array(
|
||||||
'register_link' => $reg_link,
|
'register_link' => $reg_link,
|
||||||
|
Loading…
Reference in New Issue
Block a user