diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-20 20:50:42 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-03-20 20:50:42 +0000 |
commit | d3f973f83e20ad8c45add2a40ca9f627958bff37 (patch) | |
tree | 48b02f8021571c110fb750d2c39fe5da2da51acc | |
parent | 4d33f5cfbe125839f9c3f1ba6a93ccbb4ca21497 (diff) |
Removing nologin check from menu.pl
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@961 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | menu.pl | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -83,16 +83,16 @@ $SIG{__WARN__} = sub { $form->info($_[0]) }; # send errors to browser $SIG{__DIE__} = sub { $form->error(__FILE__.':'.__LINE__.': '.$_[0]) }; -# did sysadmin lock us out -if (-f "${LedgerSMB::Sysconfig::userspath}/nologin") { - $locale = LedgerSMB::Locale->get_handle(${LedgerSMB::Sysconfig::language}) or - $form->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n"); - $form->{charset} = 'UTF-8'; - $locale->encoding('UTF-8'); - - $form->{callback} = ""; - $form->error(__FILE__.':'.__LINE__.': '.$locale->text('System currently down for maintenance!')); -} +## did sysadmin lock us out +#if (-f "${LedgerSMB::Sysconfig::userspath}/nologin") { +# $locale = LedgerSMB::Locale->get_handle(${LedgerSMB::Sysconfig::language}) or +# $form->error(__FILE__.':'.__LINE__.": Locale not loaded: $!\n"); +# $form->{charset} = 'UTF-8'; +# $locale->encoding('UTF-8'); +# +# $form->{callback} = ""; +# $form->error(__FILE__.':'.__LINE__.': '.$locale->text('System currently down for maintenance!')); +#} &check_password; # grab user config. This is ugly and unecessary if/when |