[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [961] branches/1.2/menu.pl
- Subject: SF.net SVN: ledger-smb: [961] branches/1.2/menu.pl
- From: ..hidden..
- Date: Tue, 20 Mar 2007 13:50:43 -0700
Revision: 961
http://svn.sourceforge.net/ledger-smb/?rev=961&view=rev
Author: tetragon
Date: 2007-03-20 13:50:42 -0700 (Tue, 20 Mar 2007)
Log Message:
-----------
Removing nologin check from menu.pl
Modified Paths:
--------------
branches/1.2/menu.pl
Modified: branches/1.2/menu.pl
===================================================================
--- branches/1.2/menu.pl 2007-03-20 19:52:51 UTC (rev 960)
+++ branches/1.2/menu.pl 2007-03-20 20:50:42 UTC (rev 961)
@@ -83,17 +83,17 @@
# 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');
+## 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!'));
+#}
- $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
# we get rid of myconfig and use User as a real object
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.