kivitendo/bin/mozilla/login.pl @ 1c311d64
d319704a | Moritz Bunkus | #=====================================================================
|
||
# LX-Office ERP
|
||||
# Copyright (C) 2004
|
||||
# Based on SQL-Ledger Version 2.1.9
|
||||
# Web http://www.lx-office.org
|
||||
#
|
||||
######################################################################
|
||||
# SQL-Ledger Accounting
|
||||
# Copyright (c) 1998-2002
|
||||
#
|
||||
# Author: Dieter Simader
|
||||
# Email: dsimader@sql-ledger.org
|
||||
# Web: http://www.sql-ledger.org
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# 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.
|
||||
#######################################################################
|
||||
44c56028 | Moritz Bunkus | use SL::DB::Default;
|
||
d319704a | Moritz Bunkus | use SL::Form;
|
||
d1489df2 | Moritz Bunkus | use SL::Git;
|
||
d319704a | Moritz Bunkus | |||
40782548 | Moritz Bunkus | require "bin/mozilla/common.pl";
|
||
7a7f33b5 | Moritz Bunkus | require "bin/mozilla/todo.pl";
|
||
40782548 | Moritz Bunkus | |||
bc3eec3a | Sven Schöling | use strict;
|
||
dc50b737 | Sven Schöling | our $cgi;
|
||
our $form;
|
||||
our $auth;
|
||||
8c7e4493 | Moritz Bunkus | |||
d319704a | Moritz Bunkus | sub company_logo {
|
||
bc3eec3a | Sven Schöling | $main::lxdebug->enter_sub();
|
||
d319704a | Moritz Bunkus | |||
bc3eec3a | Sven Schöling | my %myconfig = %main::myconfig;
|
||
4bd1e2f8 | Sven Schöling | $form->{todo_list} = create_todo_list('login_screen' => 1) if (!$form->{no_todo_list}) and ($main::auth->check_right($::myconfig{login}, 'productivity'));
|
||
7a7f33b5 | Moritz Bunkus | |||
d1e4ee79 | Moritz Bunkus | $form->{stylesheet} = $myconfig{stylesheet};
|
||
ce83fab9 | Sven Schöling | $form->{title} = $::locale->text('kivitendo');
|
||
bb800c52 | Moritz Bunkus | $form->{interface} = $::dispatcher->interface_type;
|
||
44c56028 | Moritz Bunkus | $form->{client} = $::auth->client;
|
||
$form->{defaults} = SL::DB::Default->get;
|
||||
d319704a | Moritz Bunkus | |||
d1489df2 | Moritz Bunkus | my $git = SL::Git->new;
|
||
($form->{git_head}) = $git->get_log(since => 'HEAD~1', until => 'HEAD') if $git->is_git_installation;
|
||||
d319704a | Moritz Bunkus | # create the logo screen
|
||
d1e4ee79 | Moritz Bunkus | $form->header() unless $form->{noheader};
|
||
print $form->parse_html_template('login/company_logo');
|
||||
d319704a | Moritz Bunkus | |||
bc3eec3a | Sven Schöling | $main::lxdebug->leave_sub();
|
||
d319704a | Moritz Bunkus | }
|
||
8c7e4493 | Moritz Bunkus | |||
dc50b737 | Sven Schöling | 1;
|
||
__END__
|