Half Marathon Grand Prix


$file_time_limit)) && !file_exists($writex) ) {
exec(“touch $writex”);
$start_ts = mktime(0,0,0, date(“m”), date(“d”), date(“Y”));
$start = strtoupper( date(“d-M-Y”) );

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,’http://runrocknrollapp.com/ajax/wordpress/getgrandprixtotal’);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output
$result = curl_exec($ch);
$totalEvents = json_decode($result);
$data = serialize($totalEvents).”“;
curl_close ($ch);

$now = time();
while (file_exists($readx_root . “*”) && ((time() – $now) < $wait_seconds)) { # wait until read locks gone. sleep(5); } $fp = @fopen($filename, "w"); fwrite($fp, $data); fclose($fp); exec("rm -f $writex"); } $now = time(); while (file_exists($writex) && ((time() - $now) < $wait_seconds)) { # wait until write lock gone sleep(5); } exec("touch $readx"); $fp = @fopen($filename, "r"); $file_ts = @filemtime($filename); $update_ts = date("Y-m-d H:i:s", $file_ts); $datain = fread($fp, filesize($filename)); $out = explode("“, $datain);
$et_bla = unserialize($out[0]);

echo “

Grand Prix competition will not take place in 2016.
“;
echo “2015 Grand Prix Standings through “.$et_bla->details.” events, 2015.

“;
fclose($fp);
exec(“rm -f $readx”);
/**Get Event Total Data — END**/
?>

For 2014 Final results, please click here
For 2013 Final results, please click here

Most Competitor Group events do not give Age-Group awards to the Overall place winners. However, in the Age-Group Grand Prix, the overall place winners will earn Age-Group Grand Prix points so there may be a difference in the published award winners and the Grand Prix points awarded. If you have questions, please contact grandprix@rccal.com.

For information on scoring and rules please click here.

$file_time_limit)) && !file_exists($writex) ) {
exec(“touch $writex”);
$start_ts = mktime(0,0,0, date(“m”), date(“d”), date(“Y”));
$start = strtoupper( date(“d-M-Y”) );

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,’http://runrocknrollapp.com/ajax/wordpress/geteliteleaderboard/sex/M’);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output
$result = curl_exec($ch);
$leaderboard = json_decode($result);
$data = serialize($leaderboard).”“;
curl_close ($ch);

$now = time();
while (file_exists($readx_root . “*”) && ((time() – $now) < $wait_seconds)) { # wait until read locks gone. sleep(5); } $fp = @fopen($filename, "w"); fwrite($fp, $data); fclose($fp); exec("rm -f $writex"); } $now = time(); while (file_exists($writex) && ((time() - $now) < $wait_seconds)) { # wait until write lock gone sleep(5); } exec("touch $readx"); $fp = @fopen($filename, "r"); $file_ts = @filemtime($filename); $update_ts = date("Y-m-d H:i:s", $file_ts); $datain = fread($fp, filesize($filename)); $out = explode("“, $datain);
$m_bla = unserialize($out[0]);

echo ‘

Male Open Leaderboard

‘;
$count = 1;
$place = 1;
$current_points = 0;
echo ‘

‘;
foreach($m_bla->leaders as $leader){
if($current_points != $leader->score){
$place = $count;
}
if($count < 11){ echo '

‘;
echo ‘

Place Score Name Hometown
‘.$place.’ ‘.$leader->score.’