function refreshtime() { //generates autorefresh meta tag with delay set by pretermined schedule //edit these to suit: $d=1; $m=6; $y=2002; // DAY MONTH YEAR $delay='600'; //default $refresh[1]=array('hr'=>16,'min'=>00, 'refresh'=>600); // IN GMT $refresh[2]=array('hr'=>17,'min'=>40, 'refresh'=>300); // IN GMT $refresh[3]=array('hr'=>19,'min'=>40, 'refresh'=>0); // IN GMT //add new $refresh rows as you like in chronological order. Set refresh => 0 for no refresh line // foreach (array_keys($refresh) as $r) { // foreach not available in PHP3! Have to do it like this reset ($refresh); while (list(, $r) = each ($refresh)) { if (time() > gmmktime($r[hr], $r[min], 0, $m, $d, $y)) $delay=$r[refresh]; }; if ($delay) { return ("\n"); } else { return(''); }; }; ?> if (($_REQUEST["id"]=='live') or ($_REQUEST["id"]=='livecomp')) echo refreshtime() ?>
Tech Features Road MTB Cyclocross Track News Images Feedback | |||||||||||||||||||||||||||||||
|
Montreal World Cup (CDM)Canada, June 1, 2002PhotographyImages by Michael Melita
Images by Jonathan Devich/TheFastrack.com
Images by Claude Perreault
Images by Matt Friedman, Bikenews.ca
|
|
|