Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!empty($badusers)) {
- foreach ($badusers as $bu) {
- $output .= "PROBLEM with uid [<b>".$bu['userid']."</b>]: freemoney [<b>".n($bu['freemoney'])."</b>] should be [<b>".n($bu['calculated'])."</b>], diff is [<b>".n(abs($bu['freemoney']-$bu['calculated']))."</b>]<br/>\n";
- if ($bu['calculated'] >= 0) {
- if (!$sim) {
- $conn->execute('update betusers set freemoney = '.$bu['calculated'].' where userid = '.$bu['userid']);
- }
- $output .= "Fixed with sql update.<br />\n";
- } else {
- $output .= "Negative value, not fixed, check manually!<br />\n";
- }
- }
- $mail = true;
- }
Add Comment
Please, Sign In to add comment