% include( '/elements/header.html', 'Developer Documentation' ) %> <& /elements/menubar.html, 'Freeside Perl Modules' => $fsurl.'docs/library/FS.html', 'Complete Index' => $fsurl.'docs/library/index.html', &>
FS::Mason - Initialize the Mason environment
use FS::Mason qw( mason_interps );
my( $fs_interp, $rt_interp ) = mason_interps('apache');
#OR
my( $fs_interp, $rt_interp ) = mason_interps('standalone'); #XXX name?
Initializes the Mason environment, loads all Freeside and RT libraries, etc.
Returns a list consisting of two HTML::Mason::Interp objects, the first for Freeside pages, and the second for RT pages.
MODE can be 'apache' or 'standalone'. If not specified, defaults to 'apache'.
Options and values can be passed following mode. Currently available options are:
outbuf should be set to a scalar reference in standalone mode.
Per-process Apache child initialization code.
Calls srand() to re-seed Perl's PRNG so that multiple children do not generate the same "random" numbers.
Works around a Net::SSLeay connection error by creating and deleting an SSL context, so subsequent connections do not error out with a CTX_new (900 NET OR SSL ERROR). See http://bugs.debian.org/830152
Lurking in the darkness...
HTML::Mason, FS, RT