Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.sample.php
r2 r3 2 2 3 3 $Config['Database']['Host'] = 'localhost'; 4 $Config['Database']['User'] = 't anec';4 $Config['Database']['User'] = 'teribear'; 5 5 $Config['Database']['Password'] = ''; 6 $Config['Database']['Database'] = 't anec';6 $Config['Database']['Database'] = 'teribear'; 7 7 $Config['Database']['Prefix'] = ''; 8 8 $Config['Database']['Charset'] = 'utf8'; -
trunk/Run.php
r2 r3 21 21 )); 22 22 $Result = 1; 23 $this->Id = $ DbResult->insert_id;23 $this->Id = $this->Database->insert_id; 24 24 } else { 25 25 $Result = 0; -
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.