Skip to content

Update index.php#5

Open
Nairdaa wants to merge 1 commit into
pabp:masterfrom
Nairdaa:master
Open

Update index.php#5
Nairdaa wants to merge 1 commit into
pabp:masterfrom
Nairdaa:master

Conversation

@Nairdaa

@Nairdaa Nairdaa commented Sep 2, 2019

Copy link
Copy Markdown

Fixed it to work with shavit's bhoptimer version 2.5.5

@sneak-it sneak-it left a comment

Copy link
Copy Markdown

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.

Comment thread index.php
$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);

Copy link
Copy Markdown

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?

Comment thread index.php
$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);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as L551

Comment thread index.php
<th>Name</th>
<th>Map</th>
<th>Style / Track</th>
<th>Rank</th>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as L551

Comment thread index.php
<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>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as L551

@SaengerItsWar

SaengerItsWar commented Sep 20, 2019

Copy link
Copy Markdown

the better version
Example
index.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants