From 4440782f0737cd715dbd96851ecc2dbd8cd639f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 27 Aug 2010 17:41:17 +0200 Subject: [PATCH] Upgrade auf console neusten Stand MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Module im header eingebunden, memberfile rausgeschmissen (existiert lange nicht mehr), dafür locales initialisiert. --- scripts/console | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/scripts/console b/scripts/console index 6a9d000db..c374d22ef 100755 --- a/scripts/console +++ b/scripts/console @@ -12,9 +12,7 @@ BEGIN { use Config::Std; use Data::Dumper; use Devel::REPL 1.002001; -eval { -require Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users -}; +use Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users read_config 'config/console.conf' => my %config;# if -f 'config/console.conf'; @@ -36,6 +34,12 @@ $repl->run; package Devel::REPL; +use CGI qw( -no_xhtml); +use SL::Auth; +use SL::Form; +use SL::Locale; +use SL::LXDebug; +use Data::Dumper; # this is a cleaned up version of am.pl # it lacks redirection, some html setup and most of the authentication process. @@ -51,25 +55,18 @@ sub lxinit { { no warnings 'once'; $::userspath = "users"; $::templates = "templates"; - $::memberfile = "users/members"; $::sendmail = "| /usr/sbin/sendmail -t"; } - use SL::LXDebug; $::lxdebug = LXDebug->new; - use CGI qw( -no_xhtml); - use SL::Auth; - use SL::Form; - use SL::Locale; - use Data::Dumper; - eval { require "config/lx-erp.conf"; }; eval { require "config/lx-erp-local.conf"; } if -f "config/lx-erp-local.conf"; - $::cgi = CGI->new qw(); - $::form = Form->new; - $::auth = SL::Auth->new; + $::locale = Locale->new($::language); + $::cgi = CGI->new qw(); + $::form = Form->new; + $::auth = SL::Auth->new; die 'cannot reach auth db' unless $::auth->session_tables_present; -- 2.20.1