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.
{ 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;
}
sub reload {
- use Module::Reload;
+ require Module::Reload;
Module::Reload->check();
return "modules reloaded";