I changed the name of my home page to index.shtml and I used these two lines on my home page to call two different calendars:
<!--#include virtual="/calendar/calendar.cgi?duration=30d&calendar=battmtg&template=ssi.html"-->
<!--#include virtual="/calendar/calendar.cgi?duration=120d&calendar=levels&template=ssi.html"-->
I'm using table_ssi.html. I uploaded it to the templates directory that each of my calendars uses and changed its name to ssi.html on my server. So it was uploaded to calendarscript/templates/calendars/battmtg/ and calendarscript/templates/calendars/levels/
IMPORTANT: If any of your other pages link to your home page, remember to change their links to index.shtml
You can see the results at http://www.cert-la.com in the New to CERT? and Advanced CERT sections.
------------------
If you're using a version of CalendarScript previous to version 3.21 you should upgrade it as previous versions contain a security flaw which could make your server vulnerable to hackers!
If you're still using an earlier version:
From Topic: calling more than one calendar using SSI
From DanO's messages on March 20, 2002 and March 22, 2002
In calendar.pl find the subroutine
sub getInput {
after the line:
$no_session = 1; (I changed this line to DanO's suggestion on 3/22/02)
add this code:
###### ADDED to accept variables passed with SSI query string #####
if ($ENV{'QUERY_STRING'})
{
$in = $ENV{'QUERY_STRING'};
@in = split(/&/,$in);
# First get all the raw form vars
foreach $i (0 .. $#in) {
$in[$i] =~ s/\+/ /g; ($key, $val) = split(/=/,$in[$i],2);
$key =~ s/%(..)/pack("c",hex($1))/ge;
$val =~ s/%(..)/pack("c",hex($1))/ge;
$in{$key} = $val;
# Keep a record of their order, because later values take precendent
push(@keys,$key);
$formvars{$key} = $val;
}
}
###### End ADDED #####
[This message has been edited by LindaU (edited March 20, 2006).]
[This message has been edited by LindaU (edited March 21, 2006).]