X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Flogin.pl;h=72032f3df8a573bdf0c30cf0992077ec59865f3e;hb=c90ba6c8ad4b35f2b7cd3159165aab5f29b4e3d2;hp=765e4d33482e0a2f3575e3500ee7e086c3902585;hpb=4dbb09950c9f5596646537c12d991c99086fe7c1;p=kivitendo-erp.git diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index 765e4d334..72032f3df 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -27,49 +27,48 @@ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ####################################################################### - use DBI; use SL::User; use SL::Form; +require "bin/mozilla/common.pl"; $form = new Form; $locale = new Locale $language, "login"; # customization -if (-f "$form->{path}/custom_$form->{script}") { - eval { require "$form->{path}/custom_$form->{script}"; }; +if (-f "bin/mozilla/custom_$form->{script}") { + eval { require "bin/mozilla/custom_$form->{script}"; }; $form->error($@) if ($@); } # per login customization -if (-f "$form->{path}/$form->{login}_$form->{script}") { - eval { require "$form->{path}/$form->{login}_$form->{script}"; }; +if (-f "bin/mozilla/$form->{login}_$form->{script}") { + eval { require "bin/mozilla/$form->{login}_$form->{script}"; }; $form->error($@) if ($@); } # window title bar, user info -$form->{titlebar} = "Lx-Office ".$locale->text('Version'). " $form->{version}"; +$form->{titlebar} = + "Lx-Office " . $locale->text('Version') . " $form->{version}"; if ($form->{action}) { $form->{titlebar} .= " - $myconfig{name} - $myconfig{dbname}"; - &{ $locale->findsub($form->{action}) }; + call_sub($locale->findsub($form->{action})); } else { &login_screen; } - 1; - sub login_screen { $lxdebug->enter_sub(); - + if (-f "css/lx-office-erp.css") { $form->{stylesheet} = "lx-office-erp.css"; } - + $form->{fokus} = "loginscreen.login"; $form->header; @@ -86,30 +85,32 @@ sub login_screen {
![]() |.$locale->text('Version').qq| $form->{version}
+ |