X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=login.pl;h=7753cc5b860393162e6f0aa68d6758b7e9eca859;hb=e2e06cbb81c60cd462133b97024886766e4c167d;hp=f49163362bcb29926ca22976af92a6cc1b0c9548;hpb=3f65b4fbe2856d5ab0a6a4ccee20c1a44d9d0cd1;p=kivitendo-erp.git diff --git a/login.pl b/login.pl index f49163362..7753cc5b8 100755 --- a/login.pl +++ b/login.pl @@ -47,6 +47,7 @@ use SL::LXDebug; $lxdebug = LXDebug->new(); eval { require "lx-erp.conf"; }; +eval { require "lx-erp-local.conf"; } if -f "lx-erp-local.conf"; if ($ENV{CONTENT_LENGTH}) { read(STDIN, $_, $ENV{CONTENT_LENGTH}); @@ -81,54 +82,8 @@ Login disabled!\n"; require "bin/mozilla/installationcheck.pl"; verify_installation(); -if ($form{path}) { - $form{path} =~ s/%2f/\//gi; - $form{path} =~ s/\.\.\///g; - - if ($form{path} !~ /^bin\//) { - print "content-type: text/plain - -Invalid path!\n"; - die; - } - - $ARGV[0] = "$_&script=$script"; - require "$form{path}/$script"; -} else { - - if (!$form{terminal}) { - if ($ENV{HTTP_USER_AGENT}) { - - # web browser - if ($ENV{HTTP_USER_AGENT} =~ /(mozilla|links|opera|w3m)/i) { - $form{terminal} = "mozilla"; - } - - } else { - if ($ENV{TERM} =~ /xterm/) { - $form{terminal} = "xterm"; - } - if ($ENV{TERM} =~ /(console|linux|vt.*)/i) { - $form{terminal} = "console"; - } - } - } - - if ($form{terminal}) { - - $ARGV[0] = "path=bin/$form{terminal}&script=$script"; - map { $ARGV[0] .= "&${_}=$form{$_}" } keys %form; - - require "bin/$form{terminal}/$script"; - - } else { - - print qq| - Unknown terminal - |; - } - -} +$ARGV[0] = "$_&script=$script"; +require "bin/mozilla/$script"; # end of main