default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / FS / FS / Mason.pm
1 package FS::Mason;
2
3 use strict;
4 use vars qw( @ISA @EXPORT_OK $addl_handler_use );
5 use Exporter;
6 use Carp;
7 use File::Slurp qw( slurp );
8 use HTML::Mason 1.27; #http://www.masonhq.com/?ApacheModPerl2Redirect
9 use HTML::Mason::Interp;
10 use HTML::Mason::Compiler::ToObject;
11
12 @ISA = qw( Exporter );
13 @EXPORT_OK = qw( mason_interps );
14
15 =head1 NAME
16
17 FS::Mason - Initialize the Mason environment
18
19 =head1 SYNOPSIS
20
21   use FS::Mason qw( mason_interps );
22
23   my( $fs_interp, $rt_interp ) = mason_interps('apache');
24
25   #OR
26
27   my( $fs_interp, $rt_interp ) = mason_interps('standalone'); #XXX name?
28
29 =head1 DESCRIPTION
30
31 Initializes the Mason environment, loads all Freeside and RT libraries, etc.
32
33 =cut
34
35 $addl_handler_use = '';
36 my $addl_handler_use_file = '%%%FREESIDE_CONF%%%/addl_handler_use.pl';
37 if ( -e $addl_handler_use_file ) {
38   $addl_handler_use = slurp( $addl_handler_use_file );
39 }
40
41 # List of modules that you want to use from components (see Admin
42 # manual for details)
43 {
44   package HTML::Mason::Commands;
45
46   use strict;
47   use vars qw( %session );
48   use CGI 4.08 qw(-private_tempfiles); #4.08 for multi_param
49
50   #use CGI::Carp qw(fatalsToBrowser);
51   use CGI::Cookie;
52   use List::Util qw( max min sum );
53   use List::MoreUtils qw( first_index uniq );
54   use Scalar::Util qw( blessed looks_like_number );
55   use Data::Dumper;
56   use Date::Format;
57   use Time::Local;
58   use Time::HiRes;
59   use Time::Duration;
60   use DateTime;
61   use DateTime::Format::Strptime;
62   use FS::Misc::DateTime qw( parse_datetime );
63   use FS::Misc::Geo qw( get_district );
64   use Lingua::EN::Inflect qw(PL);
65   Lingua::EN::Inflect::classical names=>0; #Categorys
66   use Tie::IxHash;
67   use URI;
68   use URI::Escape 3.31;
69   use HTML::Entities;
70   use HTML::TreeBuilder;
71   use HTML::TableExtract qw(tree);
72   use HTML::FormatText;
73   use HTML::Defang;
74   use Cpanel::JSON::XS;
75   use MIME::Base64;
76   use IO::Handle;
77   use IO::File;
78   use IO::Scalar;
79   use IO::String;
80   use File::Slurp qw( slurp );
81   #not actually using this yet anyway...# use IPC::Run3 0.036;
82   use Net::Whois::Raw qw(whois);
83   if ( $] < 5.006 ) {
84     eval "use Net::Whois::Raw 0.32 qw(whois)";
85     die $@ if $@;
86   }
87   use Text::CSV_XS;
88   use Archive::Zip;
89   use Spreadsheet::WriteExcel;
90   use Spreadsheet::WriteExcel::Utility;
91   use OLE::Storage_Lite;
92   use Excel::Writer::XLSX;
93   #use Excel::Writer::XLSX::Utility; #redundant with above
94
95   use Business::CreditCard 0.36; #for best-effort cardtype() (60xx as Discover)
96   use NetAddr::IP;
97   use Net::MAC::Vendor;
98   use Net::Ping;
99   use Net::Ping::External;
100   #if CPAN #7815 ever gets fixed# if ( $Net::Ping::External::VERSION <= 0.12 )
101   {
102     no warnings 'redefine';
103     eval 'sub Net::Ping::External::_ping_linux { 
104             my %args = @_;
105             my $command = "ping -s $args{size} -c $args{count} -w $args{timeout} $args{host}";
106             return Net::Ping::External::_ping_system($command, 0);
107           }
108          ';
109     die $@ if $@;
110   }
111   use String::Approx qw(amatch);
112   use Chart::LinesPoints;
113   use Chart::Mountain;
114   use Chart::Bars;
115   use Color::Scheme;
116   use HTML::Widgets::SelectLayers 0.07; #should go away in favor of
117                                         #selectlayers.html
118   use Locale::Country;
119   #use FS::geocode_Mixin; #for its code2country
120   use Locale::Currency;
121   use Locale::Currency::Format;
122   use Number::Phone::Country qw( noexport );
123   use Business::US::USPS::WebTools::AddressStandardization;
124   use Geo::GoogleEarth::Pluggable 0.16;
125   use Geo::Shapelib;
126   use Geo::JSON;
127   use Geo::JSON::FeatureCollection;
128   use LWP::UserAgent;
129   use Storable qw( nfreeze thaw );
130   use FS;
131   use FS::UID qw( dbh datasrc driver_name );
132   use FS::Record qw( qsearch qsearchs fields dbdef
133                     str2time_sql str2time_sql_closing
134                     midnight_sql regexp_sql
135                    );
136   use FS::Conf;
137   use FS::ConfDefaults;
138   use FS::CGI qw(header menubar table itable ntable idiot
139                  eidiot myexit http_header);
140   use FS::UI::Web qw(svc_url random_id
141                   get_page_pref  set_page_pref);
142   use FS::UI::Web::small_custview qw(small_custview);
143   use FS::UI::bytecount;
144   use FS::UI::REST qw( rest_auth rest_uri_remain encode_rest );
145   use FS::Msgcat qw(gettext geterror);
146   use FS::Misc qw( send_email send_fax ocr_image
147                    states_hash counties cities state_label
148                    card_types
149                  );
150   use FS::Misc::eps2png qw( eps2png );
151   use FS::Report::FCC_477;
152   use FS::Report::Table;
153   use FS::Report::Table::Monthly;
154   use FS::Report::Table::Daily;
155   use FS::Report::Tax::ByName;
156   use FS::Report::Tax::All;
157   use FS::TicketSystem;
158   use FS::NetworkMonitoringSystem;
159   use FS::Tron qw( tron_lint );
160   use FS::Locales;
161   use FS::Maketext qw( mt emt js_mt );
162
163   use FS::Query;
164
165   use FS::agent;
166   use FS::agent_type;
167   use FS::domain_record;
168   use FS::cust_bill;
169   use FS::cust_bill_pay;
170   use FS::cust_credit;
171   use FS::cust_credit_bill;
172   use FS::cust_main;
173   use FS::h_cust_main;
174   use FS::cust_main::Search qw(smart_search);
175   use FS::cust_main::Import;
176   use FS::cust_main::Import_Charges;
177   use FS::cust_main_county;
178   use FS::cust_location;
179   use FS::cust_pay;
180   use FS::cust_pkg;
181   use FS::cust_pkg::Import;
182   use FS::part_pkg_taxclass;
183   use FS::cust_pkg_reason;
184   use FS::cust_refund;
185   use FS::cust_credit_refund;
186   use FS::cust_pay_refund;
187   use FS::cust_svc;
188   use FS::nas;
189   use FS::part_event;
190   use FS::part_event_condition;
191   use FS::part_pkg;
192   use FS::part_referral;
193   use FS::part_svc;
194   use FS::part_svc_router;
195   use FS::part_virtual_field;
196   use FS::pay_batch;
197   use FS::pkg_svc;
198   use FS::port;
199   use FS::queue qw(joblisting);
200   use FS::raddb;
201   use FS::session;
202   use FS::svc_acct;
203   use FS::svc_acct_pop qw(popselector);
204   use FS::acct_rt_transaction;
205   use FS::svc_domain;
206   use FS::svc_forward;
207   use FS::svc_www;
208   use FS::router;
209   use FS::addr_block;
210   use FS::svc_broadband;
211   use FS::svc_external;
212   use FS::type_pkgs;
213   use FS::part_export;
214   use FS::part_export_option;
215   use FS::export_svc;
216   use FS::export_device;
217   use FS::msgcat;
218   use FS::rate;
219   use FS::rate_region;
220   use FS::rate_prefix;
221   use FS::rate_detail;
222   use FS::usage_class;
223   use FS::payment_gateway;
224   use FS::agent_payment_gateway;
225   use FS::payby;
226   use FS::cdr;
227   use FS::cdr_batch;
228   use FS::inventory_class;
229   use FS::inventory_item;
230   use FS::pkg_category;
231   use FS::pkg_class;
232   use FS::access_user;
233   use FS::access_user_pref;
234   use FS::access_group;
235   use FS::access_usergroup;
236   use FS::access_groupagent;
237   use FS::access_right;
238   use FS::AccessRight;
239   use FS::svc_phone;
240   use FS::phone_device;
241   use FS::part_device;
242   use FS::reason_type;
243   use FS::reason;
244   use FS::cust_main_note;
245   use FS::tax_class;
246   use FS::cust_tax_location;
247   use FS::part_pkg_taxproduct;
248   use FS::part_pkg_taxoverride;
249   use FS::part_pkg_taxrate;
250   use FS::tax_rate;
251   use FS::part_pkg_report_option;
252   use FS::cust_attachment;
253   use FS::h_cust_pkg;
254   use FS::h_inventory_item;
255   use FS::h_svc_acct;
256   use FS::h_svc_broadband;
257   use FS::h_svc_domain;
258   #use FS::h_domain_record;
259   use FS::h_svc_external;
260   use FS::h_svc_forward;
261   use FS::h_svc_phone;
262   #use FS::h_phone_device;
263   use FS::h_svc_www;
264   use FS::cust_statement;
265   use FS::cust_class;
266   use FS::cust_category;
267   use FS::prospect_main;
268   use FS::contact;
269   use FS::contact::Import;
270   use FS::phone_type;
271   use FS::svc_pbx;
272   use FS::discount;
273   use FS::cust_pkg_discount;
274   use FS::cust_bill_pkg_discount;
275   use FS::svc_mailinglist;
276   use FS::cgp_rule;
277   use FS::cgp_rule_condition;
278   use FS::cgp_rule_action;
279   use FS::bill_batch;
280   use FS::cust_bill_batch;
281   use FS::rate_time;
282   use FS::rate_time_interval;
283   use FS::msg_template;
284   use FS::part_tag;
285   use FS::acct_snarf;
286   use FS::part_pkg_discount;
287   use FS::svc_cert;
288   use FS::svc_dsl;
289   use FS::qual;
290   use FS::qual_option;
291   use FS::dsl_note;
292   use FS::part_pkg_vendor;
293   use FS::cust_note_class;
294   use FS::svc_port;
295   use FS::lata;
296   use FS::did_vendor;
297   use FS::did_order;
298   use FS::torrus_srvderive;
299   use FS::torrus_srvderive_component;
300   use FS::areacode;
301   use FS::svc_dish;
302   use FS::h_svc_dish;
303   use FS::svc_hardware;
304   use FS::h_svc_hardware;
305   use FS::hardware_class;
306   use FS::hardware_type;
307   use FS::hardware_status;
308   use FS::did_order_item;
309   use FS::msa;
310   use FS::rate_center;
311   use FS::cust_msg;
312   use FS::radius_group;
313   use FS::template_content;
314   use FS::dsl_device;
315   use FS::nas;
316   use FS::nas;
317   use FS::export_nas;
318   use FS::legacy_cust_bill;
319   use FS::rate_tier;
320   use FS::rate_tier_detail;
321   use FS::radius_attr;
322   use FS::discount_plan;
323   use FS::tower;
324   use FS::tower_sector;
325   use FS::sales;
326   use FS::contact_class;
327   use FS::part_svc_class;
328   use FS::upload_target;
329   use FS::quotation;
330   use FS::quotation_pkg;
331   use FS::quotation_pkg_discount;
332   use FS::cust_bill_void;
333   use FS::cust_bill_pkg_void;
334   use FS::cust_bill_pkg_detail_void;
335   use FS::cust_bill_pkg_display_void;
336   use FS::cust_bill_pkg_tax_location_void;
337   use FS::cust_bill_pkg_tax_rate_location_void;
338   use FS::cust_tax_exempt_pkg_void;
339   use FS::cust_bill_pkg_discount_void;
340   use FS::agent_pkg_class;
341   use FS::svc_export_machine;
342   use FS::GeocodeCache;
343   use FS::log;
344   use FS::log_context;
345   use FS::part_pkg_usage_class;
346   use FS::cust_pkg_usage;
347   use FS::part_pkg_usage_class;
348   use FS::part_pkg_usage;
349   use FS::cdr_cust_pkg_usage;
350   use FS::part_pkg_msgcat;
351   use FS::svc_cable;
352   use FS::agent_currency;
353   use FS::currency_exchange;
354   use FS::part_pkg_currency;
355   use FS::cust_payby;
356   use FS::vend_main;
357   use FS::vend_class;
358   use FS::vend_bill;
359   use FS::vend_pay;
360   use FS::vend_bill_pay;
361   use FS::sales_pkg_class;
362   use FS::svc_alarm;
363   use FS::cable_model;
364   use FS::invoice_mode;
365   use FS::invoice_conf;
366   use FS::cable_provider;
367   use FS::cust_credit_void;
368   use FS::discount_class;
369   use FS::alarm_system;
370   use FS::alarm_type;
371   use FS::alarm_station;
372   use FS::addr_range;
373   use FS::svc_conferencing;
374   use FS::conferencing_type;
375   use FS::conferencing_quality;
376   use FS::svc_video;
377   use FS::part_pkg_usageprice;
378   use FS::cust_pkg_usageprice;
379   use FS::pbx_extension;
380   use FS::pbx_device;
381   use FS::extension_device;
382   use FS::cust_main_credit_limit;
383   use FS::cust_event_fee;
384   use FS::part_fee;
385   use FS::cust_bill_pkg_fee;
386   use FS::part_fee_msgcat;
387   use FS::part_fee_usage;
388   use FS::sched_item;
389   use FS::sched_avail;
390   use FS::export_batch;
391   use FS::export_batch_item;
392   use FS::part_pkg_fcc_option;
393   use FS::state;
394   use FS::queue_stat;
395   use FS::deploy_zone;
396   use FS::deploy_zone_block;
397   use FS::deploy_zone_vertex;
398   use FS::TaxEngine;
399   use FS::tax_status;
400   use FS::circuit_type;
401   use FS::circuit_provider;
402   use FS::circuit_termination;
403   use FS::svc_circuit;
404   use FS::cust_credit_source_bill_pkg;
405   use FS::prospect_contact;
406   use FS::cust_contact;
407   use FS::legacy_cust_history;
408   use FS::quotation_pkg_tax;
409   use FS::cust_pkg_reason_fee;
410   use FS::part_svc_link;
411   use FS::access_user_log;
412   use FS::report_batch;
413   use FS::report_batch;
414   use FS::report_batch;
415   use FS::report_batch;
416   use FS::password_history;
417   use FS::svc_fiber;
418   use FS::fiber_olt;
419   use FS::olt_site;
420   use FS::access_user_page_pref;
421   use FS::part_svc_msgcat;
422   use FS::commission_schedule;
423   use FS::commission_rate;
424   use FS::realestate_location;
425   use FS::realestate_unit;
426   use FS::svc_realestate;
427   use FS::saved_search;
428   use FS::sector_coverage;
429   use FS::svc_group;
430   use FS::Misc::DepositSlip qw( deposit_slip_pdf );
431   # Sammath Naur
432
433   if ( $FS::Mason::addl_handler_use ) {
434     eval $FS::Mason::addl_handler_use;
435     die $@ if $@;
436   }
437
438   if ( %%%RT_ENABLED%%% ) {
439     eval '
440       use lib ( "/opt/rt3/local/lib", "/opt/rt3/lib" );
441       use vars qw($Nobody $SystemUser);
442       use RT;
443       use RT::Util;
444       use RT::Tickets;
445       use RT::Transactions;
446       use RT::Users;
447       use RT::CurrentUser;
448       use RT::Templates;
449       use RT::Queues;
450       use RT::ScripActions;
451       use RT::ScripConditions;
452       use RT::Scrips;
453       use RT::Groups;
454       use RT::GroupMembers;
455       use RT::CustomFields;
456       use RT::CustomFieldValues;
457       use RT::ObjectCustomFieldValues;
458
459       use RT::Interface::Web::Handler;
460
461       #blah.  not even in RT::Interface::Web::Handler, just in 
462       #html/NoAuth/css/dhandler and rt-test-dependencies.  ask for it here
463       #to throw a real error instead of just a mysterious unstyled RT
464       use CSS::Squish 0.06;
465
466       #another undeclared web UI dep (for ticket links graph)
467       use IPC::Run::SafeHandles;
468
469       #slow, unreliable, segfaults and is optional
470       #see rt/html/Ticket/Elements/ShowTransactionAttachments
471       #use Text::Quoted;
472
473       #?#use File::Path qw( rmtree );
474       #?#use File::Glob qw( bsd_glob );
475       #?#use File::Spec::Unix;
476
477     ';
478     die $@ if $@;
479   }
480
481   no warnings 'redefine';
482   *CGI::redirect = sub {
483     my $self = shift;
484
485     use vars qw($m);
486
487     my $location = '';
488     if ( $_[0] =~ /^-/ ) {
489       my %opt = @_;
490       $location = $opt{'-uri'};
491       my $cookie = $opt{'-cookie'};
492       $m->apache_req->err_headers_out->{'Set-cookie'} = $cookie if $cookie;
493     } else {
494       $location = shift;
495     }
496
497     # false laziness w/below
498     if ( @DBIx::Profile::ISA ) {
499
500       if ( $FS::CurrentUser::CurrentUser->option('show_db_profile') ) {
501
502         #profiling redirect
503
504         my $page =
505           qq!<HTML><BODY>Redirect to <A HREF="$location">$location</A>!.
506           '<BR><BR><PRE>'.
507             ( UNIVERSAL::can(dbh, 'sprintProfile')
508                 ? encode_entities(dbh->sprintProfile())
509                 : 'DBIx::Profile missing sprintProfile method;'.
510                   'unpatched or too old?'                        ).
511           #"\n\n". &sprintAutoProfile().  '</PRE>'.
512           "\n\n".                         '</PRE>'.
513           '</BODY></HTML>';
514
515
516         dbh->{'private_profile'} = {};
517         return $page;
518
519       } else {
520
521         #clear db profile, but normal redirect
522         dbh->{'private_profile'} = {};
523         $m->redirect($location);
524         '';
525
526       }
527
528     } else { #normal redirect
529
530       $m->redirect($location);
531       '';
532
533     }
534
535   };
536   
537   sub include {
538     use vars qw($m);
539     #warn 'include deprecated; use an HTML::Mason <& &> style include (or $m->scomp) at '. $m->callers(0)->path. "\n";
540     $m->scomp(@_);
541   }
542
543   sub errorpage {
544     use vars qw($m);
545     $m->comp('/elements/errorpage.html', @_);
546   }
547
548   sub errorpage_popup {
549     use vars qw($m);
550     $m->comp('/elements/errorpage-popup.html', @_);
551   }
552
553   sub redirect {
554     my( $location ) = @_;
555     use vars qw($m);
556     $m->clear_buffer;
557     #false laziness w/above
558     if ( @DBIx::Profile::ISA ) {
559
560       if ( $FS::CurrentUser::CurrentUser->option('show_db_profile') ) {
561
562         #profiling redirect
563
564         $m->print(
565           qq!<HTML><BODY>Redirect to <A HREF="$location">$location</A>!.
566           '<BR><BR><PRE>'.
567             ( UNIVERSAL::can(dbh, 'sprintProfile')
568                 ? encode_entities(dbh->sprintProfile())
569                 : 'DBIx::Profile missing sprintProfile method;'.
570                   'unpatched or too old?'                        ).
571           #"\n\n". &sprintAutoProfile().  '</PRE>'.
572           "\n\n".                         '</PRE>'.
573           '</BODY></HTML>'
574         );
575
576         dbh->{'private_profile'} = {};
577
578       } else {
579
580         #clear db profile, but normal redirect
581         dbh->{'private_profile'} = {};
582         $m->redirect($location);
583
584       }
585
586     } else { #normal redirect
587
588       $m->redirect($location);
589
590     }
591
592   }
593
594 } # end package HTML::Mason::Commands;
595
596 =head1 SUBROUTINES
597
598 =over 4
599
600 =item mason_interps [ MODE [ OPTION => VALUE ... ] ]
601
602 Returns a list consisting of two HTML::Mason::Interp objects, the first for
603 Freeside pages, and the second for RT pages.
604
605 MODE can be 'apache' or 'standalone'.  If not specified, defaults to 'apache'.
606
607 Options and values can be passed following mode.  Currently available options
608 are:
609
610 I<outbuf> should be set to a scalar reference in standalone mode.
611
612 =cut
613
614 my %defang_opts = ( attribs_to_callback => ['src'], attribs_callback => sub { 1 });
615
616 sub mason_interps {
617   my $mode = shift || 'apache';
618   my %opt = @_;
619
620   #my $request_class = 'HTML::Mason::Request'.
621                       #( $mode eq 'apache' ? '::ApacheHandler' : '' );
622   my $request_class = $mode eq 'standalone' ? 'FS::Mason::StandaloneRequest'
623                                             : 'FS::Mason::Request';
624
625   #not entirely sure it belongs here, but what the hey
626   if ( %%%RT_ENABLED%%% && $mode ne 'standalone' ) {
627     RT::LoadConfig();
628   }
629
630   my $fs_comp_root = '%%%FREESIDE_DOCUMENT_ROOT%%%';
631
632   my %interp = (
633     request_class        => $request_class,
634     data_dir             => '%%%MASONDATA%%%',
635     error_mode           => 'output',
636     error_format         => 'html',
637     ignore_warnings_expr => '.',
638   );
639
640   $interp{out_method} = $opt{outbuf} if $mode eq 'standalone' && $opt{outbuf};
641
642   my $html_defang = new HTML::Defang (%defang_opts);
643
644   #false laziness w/ FS::Maketext js_mt
645   my $js_string_sub = sub {
646     #${$_[0]} =~ s/(['\\\n])/'\\'.($1 eq "\n" ? 'n' : $1)/ge;
647     ${$_[0]} =~ s/(['\\])/\\$1/g;
648     ${$_[0]} =~ s/\r/\\r/g;
649     ${$_[0]} =~ s/\n/\\n/g;
650     # prevent premature termination of the script
651     ${$_[0]} =~ s[</script>][<\\/script>]ig;
652     ${$_[0]} = "'". ${$_[0]}. "'";
653   };
654
655   my $defang_sub = sub {
656     ${$_[0]} = $html_defang->defang(${$_[0]});
657   };
658
659   my $fs_interp = new HTML::Mason::Interp (
660     %interp,
661     comp_root    => $fs_comp_root,
662     escape_flags => { 'js_string'   => $js_string_sub,
663                       'defang'      => $defang_sub,
664                     },
665     compiler     => HTML::Mason::Compiler::ToObject->new(
666                       allow_globals        => [qw(%session)],
667                     ),
668   );
669
670   my $rt_interp = new HTML::Mason::Interp (
671     %interp,
672     comp_root    => [
673                       [ 'rt'       => '%%%FREESIDE_DOCUMENT_ROOT%%%/rt' ],
674                       [ 'freeside' => '%%%FREESIDE_DOCUMENT_ROOT%%%'    ],
675                     ],
676     escape_flags => { 'h'         => \&RT::Interface::Web::EscapeHTML,
677                       #u and j aren't used anymore?  :/
678                       'u'         => \&RT::Interface::Web::EscapeURI,
679                       'j'         => \&RT::Interface::Web::EscapeJS,
680                       'js_string' => $js_string_sub,
681                     },
682     compiler     => HTML::Mason::Compiler::ToObject->new(
683                       default_escape_flags => 'h',
684                       allow_globals        => [qw(%session $DECODED_ARGS)],
685                     ),
686   );
687
688   ( $fs_interp, $rt_interp );
689
690 }
691
692 =item child_init
693
694 Per-process Apache child initialization code.
695
696 Calls srand() to re-seed Perl's PRNG so that multiple children do not generate
697 the same "random" numbers.
698
699 Works around a Net::SSLeay connection error by creating and deleting an SSL
700 context, so subsequent connections do not error out with a CTX_new (900 NET OR
701 SSL ERROR).  See http://bugs.debian.org/830152
702
703 =cut
704
705 sub child_init {
706   #my ($pool, $server) = @_; #the child process pool (APR::Pool) and the server object (Apache2::ServerRec).
707
708   srand();
709
710   #{
711     use Net::SSLeay;
712     package Net::SSLeay;
713     initialize();
714     my $bad_ctx = new_x_ctx();
715     while ( ERR_get_error() ) {}; #print_errs('CTX_new');
716     CTX_free($bad_ctx);
717   #}
718
719 }
720
721 =back
722
723 =head1 BUGS
724
725 Lurking in the darkness...
726
727 =head1 SEE ALSO
728
729 L<HTML::Mason>, L<FS>, L<RT>
730
731 =cut
732
733 1;