X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMason.pm;h=877864eee9f4e8d87c6656cd6b88b52f1a11b3bc;hb=df2b4d94d5eaef3e9635d7a519fa297d017d42ea;hp=d73d3810a27f608da056230fc5a59fa2e651ad04;hpb=283ea2b5137ae3ec36882b492e6de024b0ce6027;p=freeside.git diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index d73d3810a..877864eee 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -52,6 +52,7 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. use Date::Format; use Date::Parse; use Time::Local; + use Time::HiRes; use Time::Duration; use DateTime; use DateTime::Format::Strptime; @@ -77,6 +78,19 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. use Spreadsheet::WriteExcel; use Business::CreditCard 0.30; #for mask-aware cardtype() use NetAddr::IP; + use Net::Ping; + use Net::Ping::External; + #if CPAN #7815 ever gets fixed# if ( $Net::Ping::External::VERSION <= 0.12 ) + { + no warnings 'redefine'; + eval 'sub Net::Ping::External::_ping_linux { + my %args = @_; + my $command = "ping -s $args{size} -c $args{count} -w $args{timeout} $args{host}"; + return Net::Ping::External::_ping_system($command, 0); + } + '; + die $@ if $@; + } use String::Approx qw(amatch); use Chart::LinesPoints; use Chart::Mountain; @@ -197,6 +211,7 @@ Initializes the Mason environment, loads all Freeside and RT libraries, etc. use FS::h_svc_phone; #use FS::h_phone_device; use FS::h_svc_www; + use FS::cust_statement; # Sammath Naur if ( %%%RT_ENABLED%%% ) {