diff options
author | Friendika <info@friendika.com> | 2010-11-28 20:58:23 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-28 20:58:23 -0800 |
commit | 62bb471ba0bf8d996e4548b835cd23fa3da92696 (patch) | |
tree | 55b9839eaad40bf7dac0ddba94c27da7f7dec015 /boot.php | |
parent | 34a8fb935d9619c5114981862dfe2949a90f09bb (diff) | |
download | volse-hubzilla-62bb471ba0bf8d996e4548b835cd23fa3da92696.tar.gz volse-hubzilla-62bb471ba0bf8d996e4548b835cd23fa3da92696.tar.bz2 volse-hubzilla-62bb471ba0bf8d996e4548b835cd23fa3da92696.zip |
localise login template, allow openid to be disabled
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 31 |
1 files changed, 28 insertions, 3 deletions
@@ -545,15 +545,40 @@ function login($register = false) { $o = ""; $register_html = (($register) ? load_view_file("view/register-link.tpl") : ""); + $noid = get_config('system','no_openid'); + if($noid) { + $classname = 'no-openid'; + $namelabel = t('Nickname or Email address: '); + $passlabel = t('Password: '); + $login = t('Login'); + } + else { + $classname = 'openid'; + $namelabel = t('Nickname/Email/OpenID: '); + $passlabel = t("Password \x28if not OpenID\x29: "); + $login = t('Login'); + } + $lostpass = t('Forgot your password?'); + $lostlink = t('Password Reset'); if(x($_SESSION,'authenticated')) { - $o = load_view_file("view/logout.tpl"); + $tpl = load_view_file("view/logout.tpl"); } else { - $o = load_view_file("view/login.tpl"); + $tpl = load_view_file("view/login.tpl"); - $o = replace_macros($o,array('$register_html' => $register_html )); } + + $o = replace_macros($tpl,array( + '$register_html' => $register_html, + '$classname' => $classname, + '$namelabel' => $namelabel, + '$passlabel' => $passlabel, + '$login' => $login, + '$lostpass' => $lostpass, + '$lostlink' => $lostlink + )); + return $o; }} |