Revision 891411c1
Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt
scripts/console | ||
---|---|---|
44 | 44 |
use SL::Auth; |
45 | 45 |
use SL::Form; |
46 | 46 |
use SL::Helper::DateTime; |
47 |
use SL::InstanceConfiguration; |
|
47 | 48 |
use SL::Locale; |
48 | 49 |
use SL::LXDebug; |
49 | 50 |
use Data::Dumper; |
... | ... | |
64 | 65 |
$::cgi = CGI->new qw(); |
65 | 66 |
$::form = Form->new; |
66 | 67 |
$::auth = SL::Auth->new; |
68 |
$::instance_conf = SL::InstanceConfiguration->new; |
|
67 | 69 |
|
68 | 70 |
die 'cannot reach auth db' unless $::auth->session_tables_present; |
69 | 71 |
|
... | ... | |
77 | 79 |
|
78 | 80 |
die "cannot find locale for user $login" unless $::locale = Locale->new($::myconfig{countrycode}); |
79 | 81 |
|
82 |
$::instance_conf->init; |
|
80 | 83 |
|
81 | 84 |
return "logged in as $login"; |
82 | 85 |
} |
Auch abrufbar als: Unified diff
Eine Klasse & globale Variable zur Verwaltung von mandantenbasierter Konfiguration