-
Notifications
You must be signed in to change notification settings - Fork 8
Update index.php #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
sneak-it
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are the queries changed and rank removed from user pages? Seems unnecessary.
| $results = ($rows = $stmt->num_rows) > 0; | ||
|
|
||
| if (USES_RANKINGS == '1') { | ||
| $stmt->bind_result($id, $auth, $name, $map, $time, $jumps, $strafes, $sync, $date, $points, $style, $track, $rank); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we removing rank?
| $stmt->bind_result($id, $auth, $name, $map, $time, $jumps, $strafes, $sync, $date, $points, $style, $track, $rank); | ||
| $stmt->bind_result($id, $auth, $name, $map, $time, $jumps, $strafes, $sync, $date, $points, $style, $track); | ||
| } else { | ||
| $stmt->bind_result($id, $auth, $name, $map, $time, $jumps, $strafes, $sync, $date, $style, $track, $rank); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as L551
| <th>Name</th> | ||
| <th>Map</th> | ||
| <th>Style / Track</th> | ||
| <th>Rank</th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as L551
| <td><?php echo $name; ?></td> | ||
| <td><?php echo '<a href="index.php?style='.$style.'&map='.removeworkshop($map).'&track='.$track.'">'.removeworkshop($map).'</a>'; ?></td> | ||
| <td><?php echo $styles[$style].' / '.$tracks[$track]; ?></td> | ||
| <td><?php echo $rank; ?></td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as L551
Fixed it to work with shavit's bhoptimer version 2.5.5