summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-20 20:50:42 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-20 20:50:42 +0000
commitd3f973f83e20ad8c45add2a40ca9f627958bff37 (patch)
tree48b02f8021571c110fb750d2c39fe5da2da51acc
parent4d33f5cfbe125839f9c3f1ba6a93ccbb4ca21497 (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-xmenu.pl20
1 files changed, 10 insertions, 10 deletions
diff --git a/menu.pl b/menu.pl
index 7501df85..9e409338 100755
--- a/menu.pl
+++ b/menu.pl
@@ -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