Home Page

Contact Me

MAC OS X

Linux

Linux Servers Fedora Core 4

Linux Servers - CentOS

Linux Servers Fedora Core 5

Linux Servers Fedora Core 7

Linux Servers Fedora 8

OpenWRT

NSLU2

LinuxCluster

Hardware Hacking Projects

Speaker Building Projects

Electronics Projects

Other Sites





MACosX /

Status

  • DONE

Introduction

I 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.

Script

The 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>

Conclusion

This turned out to be a very usefull script. Hopefully I may help you out.

Comments

Add Comment 
Sign as Author 
Enter code 166


Google
 
Theme by Richard Camp
(C) Copyright 1996-2007 by Richard Camp All rights reserved