Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision aabb3a63

Von Moritz Bunkus vor mehr als 14 Jahren hinzugefügt

  • ID aabb3a63106b2c86bfc7c79089bbcf5fd52e72a1
  • Vorgänger 79fe937f
  • Nachfolger 7fc8d929

Bestimmte globale Variablen pro Request initialisieren.

Unterschiede anzeigen:

SL/Dispatcher.pm
# dummy globals
{
no warnings 'once';
$::userspath = "users";
$::templates = "templates";
$::memberfile = "users/members";
$::menufile = "menu.ini";
$::sendmail = "| /usr/sbin/sendmail -t";
$::lxdebug = LXDebug->new;
$::auth = SL::Auth->new;
%::myconfig = ();
%::called_subs = ();
$::userspath = "users";
$::templates = "templates";
$::memberfile = "users/members";
$::menufile = "menu.ini";
$::sendmail = "| /usr/sbin/sendmail -t";
$::lxdebug = LXDebug->new;
$::auth = SL::Auth->new;
%::myconfig = ();
}
}
......
$script_name = $0;
}
$::cgi = CGI->new('');
$::locale = Locale->new($::language);
$::form = Form->new;
$::cgi = CGI->new('');
$::locale = Locale->new($::language);
$::form = Form->new;
%::called_subs = ();
eval { ($script_name, $action) = _route_request($script_name); 1; } or return;

Auch abrufbar als: Unified diff