diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:24:27 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:24:27 -0700 |
commit | 748a984d7e914d2211175d95e564c6f56e566f6e (patch) | |
tree | 7492677d3563b2b62bc585ea0cbfab016e61ed09 /pages/memberlist.php | |
parent | a160d8b5a9b4c82bf886275ac0e751fa66815db0 (diff) | |
download | pathery-748a984d7e914d2211175d95e564c6f56e566f6e.tar.xz |
Bugs, timezone.
This server should remain using the New_York timezone. Maps start at 9, not 12!
Fixed a bug where default displaycolor was not being used.
Fixed a bug where the user would not be logged in instantly.
Diffstat (limited to 'pages/memberlist.php')
-rw-r--r-- | pages/memberlist.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pages/memberlist.php b/pages/memberlist.php index 191bfa5..a250cb6 100644 --- a/pages/memberlist.php +++ b/pages/memberlist.php @@ -54,7 +54,6 @@ if (isset($_GET['o'])) { $sql = "SELECT
users.ID,
users.displayName,
- userData.displayColor,
(SELECT SUM(moves) FROM solutions WHERE solutions.userID = users.ID) AS totalMoves,
(SELECT SUM(moves) FROM solutions
WHERE solutions.userID = users.ID AND
@@ -127,7 +126,7 @@ foreach ($cat as $name => $item) { //Echo Table Data
$i = 0;
-while (list($userID, $display, $displayColor, $moveCount, $moveCountWeek, $mazeCount, $winCount, $tieCount, $wallColor, $nameColor, $wallEmblem, $joined, $lastLogon) = mysql_fetch_row($result)) {
+while (list($userID, $display, $moveCount, $moveCountWeek, $mazeCount, $winCount, $tieCount, $wallColor, $nameColor, $wallEmblem, $joined, $lastLogon) = mysql_fetch_row($result)) {
//Prepare data
$i++;
@@ -150,7 +149,7 @@ while (list($userID, $display, $displayColor, $moveCount, $moveCountWeek, $mazeC $background = '#343c57';
echo "
-<tr style='background-color: $background; color:$displayColor;' >
+<tr style='background-color: $background; color:$nameColor;' >
<td>$i</td>
<td>
<div class='grid_td' style='width:35px; height:35px; background:$wallColor url(images/marks/$wallEmblem);'>
@@ -158,7 +157,7 @@ while (list($userID, $display, $displayColor, $moveCount, $moveCountWeek, $mazeC </div>
</div>
</td>
- <td><span title='UserID: $userID'><a href='achievements?id=$userID' style='color:$displayColor'>$display</a></span></td>
+ <td><span title='UserID: $userID'><a href='achievements?id=$userID' style='color:$nameColor'>$display</a></span></td>
<td>$mazeCount</td>
<td>$moveCount</td>
|