X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FConf.pm;h=a37e5a6ef04bfc148c3a4762dcac4fea9168f2a3;hb=470878235c5f61ca7acc6ef618943071ca9736b5;hp=e204747438c86a378ed13b0dcbb7a87adbe09b14;hpb=688288d7c60a648519d3b0127cd9286401078204;p=freeside.git diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index e20474743..a37e5a6ef 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -23,6 +23,8 @@ $base_dir = '%%%FREESIDE_CONF%%%'; $DEBUG = 0; +$conf_cache_enabled = 0; + =head1 NAME FS::Conf - Freeside configuration values @@ -123,7 +125,8 @@ sub _config { my($self,$name,$agentnum,$agentonly)=@_; my $hashref = { 'name' => $name }; local $FS::Record::conf = undef; # XXX evil hack prevents recursion - $conf_cache = undef unless $conf_cache_enabled; # use cache only when it is safe to do so + $conf_cache = undef unless $conf_cache_enabled; # use cache only when it is + # safe to do so my $cv; my @a = ( ($agentnum || ()), @@ -140,7 +143,8 @@ sub _config { my $key = join(':',$name, $a, $l); if (! exists $conf_cache->{$key}){ $hashref->{locale} = $l; - # $conf_cache is reset in FS::UID during myconnect, so the cache is reset per connection + # $conf_cache is reset in FS::UID during myconnect, so the cache is + # reset per connection $conf_cache->{$key} = FS::Record::qsearchs('conf', $hashref); } return $conf_cache->{$key} if $conf_cache->{$key}; @@ -2694,6 +2698,13 @@ and customer address. Include units.', }, { + 'key' => 'banned_pay-pad', + 'section' => 'billing', + 'description' => 'Padding for encrypted storage of banned credit card hashes. If you already have new-style SHA512 entries in the banned_pay table, do not change as this will invalidate the old entries.', + 'type' => 'text', + }, + + { 'key' => 'payby-default', 'section' => 'deprecated', 'description' => 'Deprecated; in 4.x there is no longer the concept of a single "payment type". Used to indicate the default payment type. HIDE disables display of billing information and sets customers to BILL.', @@ -3949,7 +3960,7 @@ and customer address. Include units.', { 'key' => 'batchconfig-RBC', 'section' => 'billing', - 'description' => 'Configuration for Royal Bank of Canada PDS batching, four lines: 1. Client number, 2. Short name, 3. Long name, 4. Transaction code.', + 'description' => 'Configuration for Royal Bank of Canada PDS batching, five lines: 1. Client number, 2. Short name, 3. Long name, 4. Transaction code 5. (optional) set to TEST to turn on test mode.', 'type' => 'textarea', }, @@ -4429,6 +4440,7 @@ and customer address. Include units.', 'section' => 'invoicing', 'description' => 'Instead of showing payments (and credits) applied to the invoice, show those received since the previous invoice date.', 'type' => 'checkbox', + 'uscensus' => 'U.S. Census Bureau', }, {