Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ed7bfc4a

Von Moritz Bunkus vor etwa 14 Jahren hinzugefügt

  • ID ed7bfc4a981d759e51e19a5fe639983554fc8fc9
  • Vorgänger a6da1852
  • Nachfolger beeb5c96

Globales Konfigurationsobjekt %::lx_office_conf möglichst früh anlegen

Unterschiede anzeigen:

scripts/console
eval { require "config/lx-erp.conf"; };
eval { require "config/lx-erp-local.conf"; } if -f "config/lx-erp-local.conf";
read_config 'config/lx_office.conf' => %::lx_office_conf;
SL::Dispatcher::_decode_recursively(\%::lx_office_conf);
$::lxdebug = LXDebug->new;
$::locale = Locale->new($::language);
$::cgi = CGI->new qw();
$::form = Form->new;
$::auth = SL::Auth->new;
read_config 'config/lx_office.conf' => %::lx_office_conf;
SL::Dispatcher::_decode_recursively(\%::lx_office_conf);
die 'cannot reach auth db' unless $::auth->session_tables_present;
$::auth->restore_session;

Auch abrufbar als: Unified diff