break; case 6: CreateDistance($TourId, $TourType, '%', '18m-1', '18m-2'); break; case 7: CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2'); break; case 8: CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2', '18m-1', '18m-2'); break; } if ($TourType < 5 or $TourType == 6 or $TourType == 18) { // default Events CreateStandardEvents($TourId, $TourType, $SubRule, $TourType != 6); // Classes in Events InsertStandardEvents($TourId, $TourType, $SubRule, $TourType != 6); // Finals & TeamFinals CreateFinals($TourId); } // Default Target $i = 1; switch ($TourType) { case 1: case 4: CreateTargetFace($TourId, $i++, '~Default', '%', '1', 5, 122, 5, 122, 5, 80, 5, 80); CreateTargetFace($TourId, $i++, '~DefaultVI', 'VI%', '1', 5, 60, 5, 80, 5, 80, 5, 122); // optional target faces CreateTargetFace($TourId, $i++, '~30: 6-X', 'REG-^OL|^CO|^C1', '', 5, 122, 5, 122, 5, 80, 10, 80); CreateTargetFace($TourId, $i++, '~50: 5-X/30: 5-X', 'REG-^OL|^CO|^C1', '', 5, 122, 5, 122, 9, 80, 9, 80); CreateTargetFace($TourId, $i++, '~50: 5-X/30: 6-X', 'REG-^OL|^CO|^C1', '', 5, 122, 5, 122, 9, 80, 10, 80); break;
break; case 28: CreateDistance($TourId, $TourType, '%', '25m-1', '25m-2'); break; case 29: CreateDistance($TourId, $TourType, '%', '30m', '20m'); break; case 30: CreateDistance($TourId, $TourType, '%', '50m', '40m', '30m', '20m'); break; } if (in_array($TourType, array(1, 3, 6, 7, 23, 24, 25)) and $SubRule == 1) { // default Events CreateStandardEvents($TourId, $TourType); // Classes in Events InsertStandardEvents($TourId, $TourType); // Finals & TeamFinals CreateFinals($TourId); } // Default Target $i = 1; switch ($TourType) { case 1: case 4: CreateTargetFace($TourId, $i++, 'Tous grands', '%', '1', 5, 122, 5, 122, 5, 80, 5, 80); CreateTargetFace($TourId, $i++, '30m réduit', '%', '', 5, 122, 5, 122, 5, 80, 9, 80); CreateTargetFace($TourId, $i++, 'courtes réduit', '%', '', 5, 122, 5, 122, 9, 80, 9, 80); break; case 2: CreateTargetFace($TourId, 1, '~Default', '%', '1', 5, 122, 5, 122, 5, 80, 10, 80, 5, 122, 5, 122, 5, 80, 10, 80); // optional target faces