require "config/lx-erp-local.conf";
} if -f "config/lx-erp-local.conf";
+ read_config 'config/lx_office.conf' => %::lx_office_conf;
+ _decode_recursively(\%::lx_office_conf);
+
eval {
package main;
require "bin/mozilla/common.pl";
# canonial globals. if it's not here, chances are it will get refactored someday.
{
no warnings 'once';
- $::userspath = "users";
- $::templates = "templates";
- $::memberfile = "users/members";
$::menufile = "menu.ini";
$::sendmail = "| /usr/sbin/sendmail -t";
$::lxdebug = LXDebug->new;
$::form = undef;
%::myconfig = ();
%::called_subs = (); # currently used for recursion detection
-
- read_config 'config/lx_office.conf' => %::lx_office_conf if -f "config/lx_office.conf";
- _decode_recursively(\%::lx_office_conf);
}
$SIG{__WARN__} = sub {
my $session_result = $::auth->restore_session;
$::auth->create_or_refresh_session;
- $::form->error($::locale->text('System currently down for maintenance!')) if -e "$::userspath/nologin" && $script ne 'admin';
+ $::form->error($::locale->text('System currently down for maintenance!')) if -e ($::lx_office_conf{paths}->{userspath} . "/nologin") && $script ne 'admin';
if ($script eq 'login' or $script eq 'admin' or $script eq 'kopf') {
$::form->{titlebar} = "Lx-Office " . $::locale->text('Version') . " $::form->{version}";