Files
racalmas/website/agenda/cal.cgi
Milan afa56e9e1e config cache issues
By default the configuration cached by the mod_perl2 instance.
You can disable cache by setting cache/config=0.
You should disable cache only if you have multiple calcms instances
running on the same mod_perl2 server with different configuration.

The Location of the configuration will be determined by config module
now.
2018-09-22 21:39:20 +02:00

43 lines
781 B
Perl
Executable File

#! /usr/bin/perl -w
#use utf8;
use warnings "all";
use strict;
use CGI qw(header param Vars);
$CGI::POST_MAX = 1000;
$CGI::DISABLE_UPLOADS = 1;
use Data::Dumper;
use params();
use config();
use log();
use calendar();
my $r = shift;
#binmode STDOUT, ":utf8";
binmode STDOUT, ":encoding(UTF-8)";
if ( $0 =~ /cal.*?\.cgi$/ ) {
( my $cgi, my $params, my $error ) = params::get($r);
my $config = config::getFromScriptLocation();
my $debug = $config->{system}->{debug};
my $request = {
url => $ENV{QUERY_STRING},
params => {
original => $params,
checked => calendar::check_params( $config, $params ),
},
};
$params = $request->{params}->{checked};
my $out = '';
calendar::get_cached_or_render( $out, $config, $request );
print $out. "\n";
}
1;