X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Flogin.pl;h=0121b933a21332d8dda354774b5a789a59ea9beb;hb=1d1f31407ee1a66af5a0db0d10350bc29a371653;hp=e88872113808af90cbf6a61d87065bbbb69b9ad2;hpb=e848dbf1f17a606e22afb161cb3fb7bd88895f92;p=kivitendo-erp.git diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl index e88872113..0121b933a 100644 --- a/bin/mozilla/login.pl +++ b/bin/mozilla/login.pl @@ -24,221 +24,47 @@ # 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::User; +use SL::DB::Default; use SL::Form; +use SL::Git; +use DateTime; -$form = new Form; +require "bin/mozilla/common.pl"; +require "bin/mozilla/todo.pl"; -$locale = new Locale $language, "login"; +use strict; -# customization -if (-f "$form->{path}/custom_$form->{script}") { - eval { require "$form->{path}/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}"; }; - $form->error($@) if ($@); -} - -# window title bar, user info -$form->{titlebar} = - "Lx-Office " . $locale->text('Version') . " $form->{version}"; - -if ($form->{action}) { - $form->{titlebar} .= " - $myconfig{name} - $myconfig{dbname}"; - &{ $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; - - print qq| - - -
- -- -- -
-| - . $locale->text('Version') . qq| $form->{version} -- -- - - - |
-