[code=php]
<?php
/*
Script by Paul Carpenter ( [email][email protected][/email] )
For details on the date(); function see
[url]http://php.net/date[/url]
Modified by Joachim Heimfeld
*/
$hour = date(‘H’);
$day = date(‘D’);
switch (TRUE){
case ($hour > 21 && $day == ‘Sat’):
$show = ‘The Weekend Show’;
break;
case ($hour < 7 && ($day == ‘Sat’ || $day == ‘Sun’)):
$show = ‘Hit Selector ‘;
break;
default:
$show = ‘Hit Selector’;
break;
}
echo “<align=’left’><font face=’verdana’><font size=’2′><b>Current Show On Air: </b><font color=’yellow’>$show</font>”;
?>
A month ago someone created this PHP script for me, I changed it a little bit but would like some help. I can’t reach the author. If I would like to make the time be according to GMT +1 how would I do this? Does the script show according the system time or some set time? I would like it set time because everyone should see the same thing at the same hours.
Also I would like to add the following shows:
Wednesday 22:00 – 23:00 (1 hour): Top 10 at 10
Please help.
Thank you.