Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 891411c1

Von Moritz Bunkus vor mehr als 13 Jahren hinzugefügt

  • ID 891411c15c60f4099e7d2f687de8efe84b2e0fbb
  • Vorgänger f8250919
  • Nachfolger 27e80751

Eine Klasse & globale Variable zur Verwaltung von mandantenbasierter Konfiguration

Unterschiede anzeigen:

scripts/console
use SL::Auth;
use SL::Form;
use SL::Helper::DateTime;
use SL::InstanceConfiguration;
use SL::Locale;
use SL::LXDebug;
use Data::Dumper;
......
$::cgi = CGI->new qw();
$::form = Form->new;
$::auth = SL::Auth->new;
$::instance_conf = SL::InstanceConfiguration->new;
die 'cannot reach auth db' unless $::auth->session_tables_present;
......
die "cannot find locale for user $login" unless $::locale = Locale->new($::myconfig{countrycode});
$::instance_conf->init;
return "logged in as $login";
}

Auch abrufbar als: Unified diff