summaryrefslogtreecommitdiff
path: root/LedgerSMB/Sysconfig.pm
blob: 7c40ca2cc9421cdcb2dcb432c179fa5ac8b051a0 (plain)
  1. #  This is the new configuration file for LedgerSMB. Eventually all system
  2. # configuration directives will go here, This will probably not fully replace
  3. # the ledger-smb.conf until 1.3, however.
  4. package LedgerSMB::Sysconfig;
  5. $session='DB';
  6. $logging=0; # No logging on by default
  7. @io_lineitem_columns = qw(unit onhand sellprice discount linetotal);
  8. # if you have latex installed set to 1
  9. $latex = 1;
  10. # spool directory for batch printing
  11. $spool = "spool";
  12. # path to user configuration files
  13. $userspath = "users";
  14. # templates base directory
  15. $templates = "templates";
  16. # member file
  17. $memberfile = "users/members";
  18. # location of sendmail
  19. $sendmail = "| /usr/sbin/sendmail -t";
  20. # set language for login and admin
  21. $language = "";
  22. # Maximum number of invoices that can be printed on a check
  23. $check_max_invoices = 5;
  24. # program to use for file compression
  25. $gzip = "gzip -S .gz";
  26. # Path to the translation files
  27. $localepath = 'locale/po';
  28. # available printers
  29. %printer = ( Laser => 'lpr -Plaser',
  30. Epson => 'lpr -PEpson',
  31. );
  32. #################################
  33. # Global database parameters
  34. #################################
  35. # These parameters *must* be set correctly
  36. # for LedgerSMB >= 1.2 to work
  37. my $globalDBConnect = 'dbi:Pg:dbname=ledgersmb;host=localhost;port=5432';
  38. my $globalUserName = "ledgersmb";
  39. my $globalPassword = "set me to correct password";
  40. #$GLOBALDBH = DBI->connect($globalDBConnect, $globalDBUserName, $globalDBPassword);
  41. # These lines prevent other apps in mod_perl from seeing the global db
  42. # connection info
  43. my $globalDBConnect = undef;
  44. my $globalUserName = undef;
  45. my $globalPassword = undef;
  46. eval { require "ledger-smb.conf"; };
  47. if ($@){
  48. print STDERR "Parsing ledger-smb.conf failed: $@";
  49. }
  50. 1;