blob: 7c40ca2cc9421cdcb2dcb432c179fa5ac8b051a0 (
plain)
- # This is the new configuration file for LedgerSMB. Eventually all system
- # configuration directives will go here, This will probably not fully replace
- # the ledger-smb.conf until 1.3, however.
- package LedgerSMB::Sysconfig;
- $session='DB';
- $logging=0; # No logging on by default
- @io_lineitem_columns = qw(unit onhand sellprice discount linetotal);
- # if you have latex installed set to 1
- $latex = 1;
- # spool directory for batch printing
- $spool = "spool";
- # path to user configuration files
- $userspath = "users";
- # templates base directory
- $templates = "templates";
- # member file
- $memberfile = "users/members";
- # location of sendmail
- $sendmail = "| /usr/sbin/sendmail -t";
- # set language for login and admin
- $language = "";
- # Maximum number of invoices that can be printed on a check
- $check_max_invoices = 5;
- # program to use for file compression
- $gzip = "gzip -S .gz";
- # Path to the translation files
- $localepath = 'locale/po';
- # available printers
- %printer = ( Laser => 'lpr -Plaser',
- Epson => 'lpr -PEpson',
- );
- #################################
- # Global database parameters
- #################################
- # These parameters *must* be set correctly
- # for LedgerSMB >= 1.2 to work
- my $globalDBConnect = 'dbi:Pg:dbname=ledgersmb;host=localhost;port=5432';
- my $globalUserName = "ledgersmb";
- my $globalPassword = "set me to correct password";
- #$GLOBALDBH = DBI->connect($globalDBConnect, $globalDBUserName, $globalDBPassword);
- # These lines prevent other apps in mod_perl from seeing the global db
- # connection info
- my $globalDBConnect = undef;
- my $globalUserName = undef;
- my $globalPassword = undef;
- eval { require "ledger-smb.conf"; };
- if ($@){
- print STDERR "Parsing ledger-smb.conf failed: $@";
- }
- 1;
|