Changeset 3 for trunk/index.php
- Timestamp:
- Sep 10, 2018, 1:18:27 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r2 r3 60 60 $URL = 'http://leaderboard.teribear.cz/Home/GetRunners?category='.$Category.'&page='.$Page.'&teamId='.$TeamId.'&query='.$Query; 61 61 if ($Category != '') $URL .= '&startNumber='.$StartNumber; 62 echo($URL);63 62 $Content = file_get_contents($URL); 64 63 $JSON = json_decode($Content, true); … … 83 82 $RunnerItem->ChipNumber = $Runner['ChipNumber']; 84 83 if ($Runner['Type'] == 'man') $RunnerItem->Gender = 1; 85 if ($Runner['Type'] == 'woman') $RunnerItem->Gender = 0;84 if ($Runner['Type'] == 'woman') $RunnerItem->Gender = 2; 86 85 $RunnerItem->Team = $Team['Id']; 87 86 $RunnerItem->AddIfNotExist();
Note:
See TracChangeset
for help on using the changeset viewer.