Thank you! I was having problems on the mysqli version too, and it needed extra fixes to insert a peer (I lost confidence in this file at this point).
So it looks like compat edition is the way to go. That's what I figured. And its more integrated.
So that error in last photo "Failed getting user", if we see here
$res = SQL_Query_exec("SELECT id, passkey, username, class, enabled, uploaded, downloaded, slots, gender FROM users WHERE passkey = '$passkey'");
$user_row = mysqli_fetch_assoc($res) or fail('Failed getting user');
We see it is failing to get a value from $passkey. Can anyone else confirm this?
Try this. Replace:
$passkey = !empty($data['passkey']) ? trim($data['passkey']) : fail('Missing passkey');
With this
$passkey = !empty($_GET['passkey']) ? trim($_GET['passkey']) : fail('Missing passkey');
Let's ignore the mysqli edition for now.
Last edited by STorrents2020 on 2022-11-22 00:45:13