X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=login.pl;h=a01fc10f8d99e87f35ef3fd1ae23ca3990bb5cb6;hb=553e3b0edf2c32b1deed2a94b2df0b0be09465f5;hp=f761de800eac940a1bd393d7d4fcd85e37cc4b3b;hpb=d629acd82a27e980899a044ca8b0f4becc8e94bb;p=kivitendo-erp.git diff --git a/login.pl b/login.pl index f761de800..a01fc10f8 100755 --- a/login.pl +++ b/login.pl @@ -31,7 +31,8 @@ ####################################################################### BEGIN { - push(@INC, "modules"); + unshift @INC, "modules/YAML"; # Use our own version of YAML. + push @INC, "modules"; # Only use our own versions of modules if there's no system version. } # setup defaults, DO NOT CHANGE @@ -47,6 +48,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}); @@ -70,6 +72,8 @@ $0 =~ tr/\\/\//; $pos = rindex $0, '/'; $script = substr($0, $pos + 1); +$form->{login} =~ s|.*/||; + if (-e "$userspath/nologin" && $script ne 'admin.pl') { print "content-type: text/plain