Hi Chris
Please accept my thanks for a brilliant, simple script. Been looking for something like this for a while now and it seems to fit the bill perfectly. I'm currently setting it up for a friends website in France, Chambre D'hotes and camping. The main site is based on Joomla 1.5, but I will probably run your script in a wrapper. I will let you know when I have finished.
Just a couple of points. I think you should add a link back to your own site at the bottom of the calendar. You should get the credit
Second point, I found that when I updated the calendar, if I then went to the view only page it didn't refresh unless I did a Ctrl F5 because the page was being cached by the browser. I have got over this by including the following at the beginning of the index and public (modified index) files.
CODE:
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
Just realised, there is a third point. I had the following errors:
Notice: Undefined variable: calendar_months
Notice: Undefined index: day_1
Notice: Undefined index: day_2
Notice: Undefined index: day_3
Notice: Undefined index: day_4
Notice: Undefined index: day_5
etc.. These were repeated several times.
I have excluded them with the following at the top of the page:
CODE:
$ebits = ini_get('error_reporting');
error_reporting($ebits ^ E_NOTICE);
Thanks again for a great piece of work. Looking forward to more developments.
Regards
eccles
p.s. I am on version 1.1