Block Acclaim'.$pg; $pg .= "\n"; $pg .= ""; $pg .= ""; $pg .= ""; if ($sall) { $pg .= ""; $pg .= ""; } $pg .= "\n"; if ($ans['STATUS'] == 'ok') { $all = array(); $count = $ans['rows']; for ($i = 0; $i < $count; $i++) { if ($sall) $diffacc = $ans['diffacc:'.$i]; else $diffacc = 0; $all[] = array('blocks' => $ans['blocks:'.$i], 'username' => $ans['username:'.$i], 'diffacc' => $diffacc); } usort($all, 'blocksorder'); for ($i = 0; $i < $count; $i++) { $bl = $all[$i]['blocks']; if ($sall == false && $bl < 1) break; if (($i % 2) == 0) $row = 'even'; else $row = 'odd'; $pg .= ""; $un = htmlspecialchars($all[$i]['username']); $pg .= ""; $pg .= ""; if ($sall) { $diffacc = $all[$i]['diffacc']; $pg .= ''; if ($bl == 0) $bl = 1; $pg .= ''; } $pg .= "\n"; } } $pg .= "
UserBlocksDiffAvg
$un$bl'.difffmt($diffacc).''.difffmt($diffacc/$bl).'
\n"; return $pg; } # function show_userinfo($info, $page, $menu, $name, $user) { gopage($info, NULL, 'douserinfo', $page, $menu, $name, $user); } # ?>