X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Flogin.pl;h=fe0008596821abf19bbf32891b30ff0956326e7d;hb=9447acbeb7b1cd0bb4691aa1da8f533ca9099064;hp=caf49c44ef8a994bc81b27433d7632b97c8086bb;hpb=152d10ef2e2ba3ef1c1849842f2cb2ea04d9d47b;p=kivitendo-erp.git diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index caf49c44e..fe0008596 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -24,21 +24,20 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1335, USA. ####################################################################### -use DBI; -use SL::Auth; -use SL::User; +use SL::DB::Default; use SL::Form; use SL::Git; +use DateTime; require "bin/mozilla/common.pl"; require "bin/mozilla/todo.pl"; use strict; -our $cgi; our $form; our $auth; @@ -46,19 +45,25 @@ sub company_logo { $main::lxdebug->enter_sub(); my %myconfig = %main::myconfig; - $form->{todo_list} = create_todo_list('login_screen' => 1) if (!$form->{no_todo_list}); + $form->{todo_list} = create_todo_list('login_screen' => 1) if (!$::request->is_mobile) and (!$form->{no_todo_list}) and ($main::auth->check_right($::myconfig{login}, 'productivity')); $form->{stylesheet} = $myconfig{stylesheet}; $form->{title} = $::locale->text('kivitendo'); $form->{interface} = $::dispatcher->interface_type; + $form->{client} = $::auth->client; + $form->{defaults} = SL::DB::Default->get; my $git = SL::Git->new; ($form->{git_head}) = $git->get_log(since => 'HEAD~1', until => 'HEAD') if $git->is_git_installation; + $form->{xmas} = '_xmas' if (DateTime->today->month == 12 && DateTime->today->day < 27); + $form->{xmas} = '_mir' if (DateTime->today->month >= 3 && DateTime->today->year == 2022 + && DateTime->today->month <= 9); + $form->{xmas} = '_mir' if (DateTime->today->day == 24 && DateTime->today->month == 2); # create the logo screen $form->header() unless $form->{noheader}; - print $form->parse_html_template('login/company_logo'); + print $form->parse_html_template('login/company_logo', { version => $::form->read_version }); $main::lxdebug->leave_sub(); }