CGI-Framework

 view release on metacpan or  search on metacpan

lib/CGI/Framework.pm  view on Meta::CPAN

624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
B<OPTIONAL>
 
If you supplied the fatal_error_email key, you must also supply this key and/or the sendmail key.  If you'd like to deliver the mail using direct SMTP transactions (and have Net::SMTP installed), supply this key with a value of the hostname of the ma...
 
If your mailserver is picky about the "from" address it accepts mail from, you should also supply the smtp_from key when using this key, otherwise 'cgiframework@localhost' will be supplied as the from address.
 
=item templates_dir
 
B<OPTIONAL>
 
This key should have a scalar value holding a directory name which contains all the template files.  If not supplied, it will be guessed based on the local directory.
 
=item valid_languages
 
B<OPTIONAL>
 
This key should have an arrayref value.  The array should contain all the possible language tags you've used in the templates.  Refer to the "INTERNATIONALIZATION AND LOCALIZATION" section.  You must set this key if you wish to also set the "maketext...
 
=back
 
=item initialize_cgi_framework(%hash)

lib/CGI/Framework.pm  view on Meta::CPAN

1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
#
$para{valid_languages} ||= [];
$para{callbacks_namespace} ||= (caller)[0] || "main";
if (!$para{cookie_name}) {
        $para{cookie_name} = "sessionid_$ENV{SCRIPT_NAME}";
        $para{cookie_name} =~ s/[^0-9a-z]//gi;
}
if (!$para{sessions_mysql_dbh} && !$para{sessions_dir}) {
 
        #
        # They didn't supply any sessions stuff, so let's take a guess at some directories for file-based storage:
        #
        foreach (qw(/tmp /var/tmp c:/tmp c:/temp c:/windows/temp)) {
                if (-d $_) {
                        $para{sessions_dir} = $_;
                        last;
                }
        }
}
if (!$para{templates_dir}) {
        foreach (qw(./templates ../templates)) {



( run in 0.407 second using v1.01-cache-2.11-cpan-87723dcf8b7 )