Revision a54282a9
Von Moritz Bunkus vor mehr als 12 Jahren hinzugefügt
SL/Dispatcher.pm | ||
---|---|---|
200 | 200 |
|
201 | 201 |
$::form->error($::locale->text('System currently down for maintenance!')) if -e ($::lx_office_conf{paths}->{userspath} . "/nologin") && $script ne 'admin'; |
202 | 202 |
|
203 |
($routing_type, $script, $script_name, $action) = qw(controller controller LoginScreen login) if ($script eq 'login') && ($action eq 'login'); |
|
203 |
# For compatibility with a lot of database upgrade scripts etc: |
|
204 |
# Re-write request to old 'login.pl?action=login' to new |
|
205 |
# 'LoginScreen' controller. Make sure to load its code! |
|
206 |
if (($script eq 'login') && ($action eq 'login')) { |
|
207 |
($routing_type, $script, $script_name, $action) = qw(controller controller LoginScreen login); |
|
208 |
_require_controller('LoginScreen'); |
|
209 |
} |
|
204 | 210 |
|
205 | 211 |
if (($script eq 'login') && !$action) { |
206 | 212 |
print $::request->{cgi}->redirect('controller.pl?action=LoginScreen/user_login'); |
Auch abrufbar als: Unified diff
Controller-Code nach internem Umschreiben des Requests von 'login.pl' laden