function refreshtime() { //generates autorefresh meta tag with delay set by pretermined schedule //edit these to suit: $d=31; $m=8; $y=2002; // DAY MONTH YEAR $delay='300'; //default $refresh[1]=array('hr'=>11,'min'=>20, 'refresh'=>500); // IN GMT $refresh[2]=array('hr'=>11,'min'=>45, 'refresh'=>250); // IN GMT $refresh[3]=array('hr'=>12,'min'=>45, '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 | ||||||||||||||||||||||||
|
2003 BMX World Championships - CDMPerth, Australia, July 23-27, 2003Main Page FAQ Results Next Day Day 1 - Friday July 25: World Challenge Cruiser, World Championship CruiserResultscoming!! |
|
|