Hi all,
I've been subscribed to the list for some time now listening to what
happening with phpiCalendar. Now I have written a script to send out
email notifications of events to my troops email list.
Script uses the $master_array data to search for the date code 3 days
ahead (time period is easily changed) and formats them into a template
file written in plain HTML. After it has sent out some notifications
it saves the UIDs of the events to a new file (right now I have it
named sentuid.php) creating a php array for easy access. I have it
check if a event has already been sent using the UID and if the event
is more then one day (e.g. a week long event will only send out one
notification for the first day it starts). I believe it is pretty
simple code. The whole script is under 5kb with a template file at
2kb.
Files are attached. Please review them and send me any comments,
suggestions or errors so I can fix them.
I'm also working on another mod which isn't completed yet, but
basically it formats the calendar in a linear view with weekends
displayed even if there is nothing there. This mod is mostly going to
be used by my troop.
(I'm only 16 and have almost 2 years of PHP experience, I really like
what I've done with my snowfall project, but the server crashed and
lost a bunch of data :(
Anyway,
Regards,
--=20
Ian Turner
* The Snowfall Project *
www.pnwsnow.com
eXperience it now
|