Revision 4440782f
Von Sven Schöling vor etwa 14 Jahren hinzugefügt
scripts/console | ||
---|---|---|
12 | 12 |
use Config::Std; |
13 | 13 |
use Data::Dumper; |
14 | 14 |
use Devel::REPL 1.002001; |
15 |
eval { |
|
16 |
require Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users |
|
17 |
}; |
|
15 |
use Term::ReadLine::Perl::Bind; # use sane key binding for rxvt users |
|
18 | 16 |
|
19 | 17 |
read_config 'config/console.conf' => my %config;# if -f 'config/console.conf'; |
20 | 18 |
|
... | ... | |
36 | 34 |
|
37 | 35 |
package Devel::REPL; |
38 | 36 |
|
37 |
use CGI qw( -no_xhtml); |
|
38 |
use SL::Auth; |
|
39 |
use SL::Form; |
|
40 |
use SL::Locale; |
|
41 |
use SL::LXDebug; |
|
42 |
use Data::Dumper; |
|
39 | 43 |
|
40 | 44 |
# this is a cleaned up version of am.pl |
41 | 45 |
# it lacks redirection, some html setup and most of the authentication process. |
... | ... | |
51 | 55 |
{ no warnings 'once'; |
52 | 56 |
$::userspath = "users"; |
53 | 57 |
$::templates = "templates"; |
54 |
$::memberfile = "users/members"; |
|
55 | 58 |
$::sendmail = "| /usr/sbin/sendmail -t"; |
56 | 59 |
} |
57 | 60 |
|
58 |
use SL::LXDebug; |
|
59 | 61 |
$::lxdebug = LXDebug->new; |
60 | 62 |
|
61 |
use CGI qw( -no_xhtml); |
|
62 |
use SL::Auth; |
|
63 |
use SL::Form; |
|
64 |
use SL::Locale; |
|
65 |
use Data::Dumper; |
|
66 |
|
|
67 | 63 |
eval { require "config/lx-erp.conf"; }; |
68 | 64 |
eval { require "config/lx-erp-local.conf"; } if -f "config/lx-erp-local.conf"; |
69 | 65 |
|
70 |
$::cgi = CGI->new qw(); |
|
71 |
$::form = Form->new; |
|
72 |
$::auth = SL::Auth->new; |
|
66 |
$::locale = Locale->new($::language); |
|
67 |
$::cgi = CGI->new qw(); |
|
68 |
$::form = Form->new; |
|
69 |
$::auth = SL::Auth->new; |
|
73 | 70 |
|
74 | 71 |
die 'cannot reach auth db' unless $::auth->session_tables_present; |
75 | 72 |
|
Auch abrufbar als: Unified diff
Upgrade auf console neusten Stand
Module im header eingebunden, memberfile rausgeschmissen (existiert lange nicht mehr), dafür locales initialisiert.