Skip to content
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

Bhoptimer version 2.5.5 broked the Webstats system #4

Open
freakexeuLow opened this issue Jul 15, 2019 · 1 comment
Open

Bhoptimer version 2.5.5 broked the Webstats system #4

freakexeuLow opened this issue Jul 15, 2019 · 1 comment

Comments

@freakexeuLow
Copy link

Hey pabp, since yesterday's update, the Webstats system is not working anymore

Bhoptimer version is 2.5.5 with the 2.5.4 it had still worked, hope there will be a fix :)

@LexOzZborn
Copy link

change the SteamID Parse at index.php to this:
$steamid = SteamID::Parse($auth, SteamID::FORMAT_S32 and remove all "country" lookups
and stats would be fine (-:
Line 403:
$stmt = $connection->prepare('SELECT auth, name, country, lastlogin, points FROM '.MYSQL_PREFIX.'users ORDER BY points DESC LIMIT '.PLAYER_TOP_RANKING_LIMIT.' OFFSET 0;');

$stmt->bind_result($auth, $name, $country, $lastlogin, $points);

---> Remove country,

Old:
$steamid = SteamID::Parse($auth, SteamID::FORMAT_STEAMID3);

New:
$steamid = SteamID::Parse($auth, SteamID::FORMAT_S32);

Lines: 278, 378, 471, 588

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

No branches or pull requests

2 participants