|
|
|
|
|
|
Home PageContact MeMAC OS XLinuxLinux Servers Fedora Core 4Linux Servers - CentOSLinux Servers Fedora Core 5Linux Servers Fedora Core 7Linux Servers Fedora 8OpenWRTNSLU2LinuxClusterHardware Hacking ProjectsSpeaker Building ProjectsElectronics ProjectsOther Sites |
Status
IntroductionI needed a way for people to subscribe to my iCal calendars. I published them on a webdav server. When I published a new calendar I didn't want to have to update a web page. ScriptThe script will require a couple of changes before you can use it. First you will need to upload a small graphic called ical.gif. This can be any small icon you like. Second you will have to set the link to your server.
<html>
<head>
<style type="text/css">
a {
color: #555555;
font-weight: normal;
text-decoration: none;
}
a:hover {
color: #ee0000;
font-weight: bolder
}
body {
background-color: #222255;
margin: 25px;
}
div {
background-color: #ffffff;
margin: 0px;
padding-top: 15px;
padding-left: 15px;
padding-bottom: 15px;
padding-right: 15px;
width: 640;
}
div.title {
text-align: center;
}
img {
padding-top: 5px;
padding-right: 10px;
}
</style>
</head>
<body>
<div class="title">
<h1>Published Calendars</h1>
</div>
<div class="info">
MAC Users: Click on the calendar you want to subscribe to and ical will automatically open.<br>
PC Users: You will have to copy the link location and past it into Sunbird.
</div>
<div class="files">
<?
foreach (glob("*.ics") as $filename) {
echo "<img src=\"ical.gif\">";
echo "<a href=\"webcal://server.company.com/ical/$filename\">$filename</a><br>\n";
}
?>
</div>
</body>
</heml>
ConclusionThis turned out to be a very usefull script. Hopefully I may help you out. Comments |