From 230d7095e37f5cf9637f12d7de38a77526b74d4d Mon Sep 17 00:00:00 2001 From: tetragon Date: Mon, 30 Oct 2006 04:07:28 +0000 Subject: Convert main configuration to using LedgerSMB::Sysconfig git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@381 4979c152-3d1c-0410-bac9-87ea11338e46 --- login.pl | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'login.pl') diff --git a/login.pl b/login.pl index 7d97626d..10d0d826 100755 --- a/login.pl +++ b/login.pl @@ -49,21 +49,10 @@ # ####################################################################### - -# setup defaults, DO NOT CHANGE -$userspath = "users"; -$spool = "spool"; -${LedgerSMB::Sysconfig::templates} = "templates"; -$memberfile = "users/members"; -$sendmail = "| /usr/sbin/sendmail -t"; -%printer = ( Printer => 'lpr' ); -########## end ########################################### - +use LedgerSMB::Sysconfig; $| = 1; -eval { require "ledger-smb.conf"; }; - if ($ENV{CONTENT_LENGTH}) { read(STDIN, $_, $ENV{CONTENT_LENGTH}); } @@ -88,7 +77,7 @@ $pos = rindex $0, '/'; $script = substr($0, $pos + 1); -if (-e "$userspath/nologin" && $script ne 'admin.pl') { +if (-e "${LedgerSMB::Sysconfig::userspath}/nologin" && $script ne 'admin.pl') { print "Content-Type: text/html\n\n"; print "\nLogin disabled!\n"; print "\n"; -- cgit v1.2.3