function refreshtime() { //generates autorefresh meta tag with delay set by pretermined schedule //edit these to suit: $d=24; $m=4; $y=2003; // DAY MONTH YEAR $delay='300'; //default $refresh[1]=array('hr'=>15,'min'=>00, 'refresh'=>500); // IN GMT $refresh[2]=array('hr'=>16,'min'=>30, 'refresh'=>300); // IN GMT $refresh[3]=array('hr'=>22,'min'=>00, '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() ?>
Cyclingnews TV News Tech Features Road MTB BMX Cyclo-cross Track Photos Fitness Letters Search Forum | ||||||||||||||||||||||||||
|
Australian National Track Cycling Championships - CNSydney, Australia, April 27 - May 2, 2004PhotographyDay 6 - May 2Images by John Veage
Day 5 - May 1PhotographyImages by John Veage
Day 4 - April 30Images by John Veage
Day 3 - April 29Images by John Veage
Day 2 - April 28Images by John Veage
Day 1 - April 27Images by John Veage
|
|
|