X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2FMason.pm;h=20748dc1d77972d7dba7f6a2e53901de426d498c;hb=f9a89c91cab9e85a7ca8dd67782919f8a85c2ebb;hp=41c472d76eed6340c57c84a48331c81d46d03d7b;hpb=37591b61f8ad6fc5c5acb2fd8f520d2dbe4f1539;p=freeside.git diff --git a/FS/FS/Mason.pm b/FS/FS/Mason.pm index 41c472d76..20748dc1d 100644 --- a/FS/FS/Mason.pm +++ b/FS/FS/Mason.pm @@ -64,6 +64,7 @@ if ( -e $addl_handler_use_file ) { use DateTime::Format::Strptime; use FS::Misc::DateTime qw( parse_datetime ); use Lingua::EN::Inflect qw(PL); + Lingua::EN::Inflect::classical names=>0; #Categorys use Tie::IxHash; use URI; use URI::Escape; @@ -72,6 +73,8 @@ if ( -e $addl_handler_use_file ) { use HTML::FormatText; use HTML::Defang; use JSON; +# use XMLRPC::Transport::HTTP; +# use XMLRPC::Lite; # for XMLRPC::Serializer use MIME::Base64; use IO::Handle; use IO::File; @@ -124,6 +127,7 @@ if ( -e $addl_handler_use_file ) { states_hash counties cities state_label ); use FS::Misc::eps2png qw( eps2png ); + use FS::Report::FCC_477; use FS::Report::Table::Monthly; use FS::TicketSystem; use FS::Tron qw( tron_lint ); @@ -215,6 +219,7 @@ if ( -e $addl_handler_use_file ) { use FS::part_pkg_report_option; use FS::cust_attachment; use FS::h_cust_pkg; + use FS::h_inventory_item; use FS::h_svc_acct; use FS::h_svc_broadband; use FS::h_svc_domain; @@ -235,6 +240,13 @@ if ( -e $addl_handler_use_file ) { use FS::cust_bill_pkg_discount; use FS::svc_mailinglist; use FS::cgp_rule; + use FS::cgp_rule_condition; + use FS::cgp_rule_action; + use FS::bill_batch; + use FS::cust_bill_batch; + use FS::rate_time; + use FS::rate_time_interval; + use FS::msg_template; # Sammath Naur if ( $FS::Mason::addl_handler_use ) { @@ -247,6 +259,7 @@ if ( -e $addl_handler_use_file ) { use lib ( "/opt/rt3/local/lib", "/opt/rt3/lib" ); use vars qw($Nobody $SystemUser); use RT; + use RT::Util; use RT::Tickets; use RT::Transactions; use RT::Users; @@ -277,6 +290,9 @@ if ( -e $addl_handler_use_file ) { use RT::Interface::Web::Request; + #nother undeclared web UI dep (for ticket links graph) + use IPC::Run::SafeHandles; + #slow, unreliable, segfaults and is optional #see rt/html/Ticket/Elements/ShowTransactionAttachments #use Text::Quoted; @@ -350,6 +366,11 @@ if ( -e $addl_handler_use_file ) { $m->comp('/elements/errorpage.html', @_); } + sub errorpage_popup { + use vars qw($m); + $m->comp('/elements/errorpage-popup.html', @_); + } + sub redirect { my( $location ) = @_; use vars qw($m); @@ -463,6 +484,7 @@ sub mason_interps { escape_flags => { 'js_string' => sub { #${$_[0]} =~ s/(['\\\n])/'\\'.($1 eq "\n" ? 'n' : $1)/ge; ${$_[0]} =~ s/(['\\])/\\$1/g; + ${$_[0]} =~ s/\r/\\r/g; ${$_[0]} =~ s/\n/\\n/g; ${$_[0]} = "'". ${$_[0]}. "'"; },