Browse Source

php - pass user to getAllUsers()

master
kanoi 10 years ago
parent
commit
45776131f9
  1. 2
      pool/db.php
  2. 2
      pool/page_allwork.php
  3. 2
      pool/page_stats.php

2
pool/db.php

@ -166,7 +166,7 @@ function userSettings($user, $email = null, $addr = null, $pass = null)
return repDecode($rep); return repDecode($rep);
} }
# #
function getAllUsers() function getAllUsers($user)
{ {
$flds = array(); $flds = array();
$msg = msgEncode('allusers', 'all', $flds); $msg = msgEncode('allusers', 'all', $flds);

2
pool/page_allwork.php

@ -16,7 +16,7 @@ function doallwork($data, $user)
$pg .= worktitle($data, $user); $pg .= worktitle($data, $user);
$ans = getAllUsers(); $ans = getAllUsers($user);
if ($ans['STATUS'] == 'ok') if ($ans['STATUS'] == 'ok')
{ {
$count = $ans['rows']; $count = $ans['rows'];

2
pool/page_stats.php

@ -12,7 +12,7 @@ function dostats($data, $user)
{ {
$pg = '<h1>Pool Stats</h1>'; $pg = '<h1>Pool Stats</h1>';
$ans = getAllUsers(); $ans = getAllUsers($user);
$pg .= "<table callpadding=0 cellspacing=0 border=0>\n"; $pg .= "<table callpadding=0 cellspacing=0 border=0>\n";
$pg .= "<tr class=title>"; $pg .= "<tr class=title>";

Loading…
Cancel
Save