diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:44:11 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-04-21 13:44:11 -0700 |
commit | f03c9a928b9019c4b7947a9b087134ead88e7655 (patch) | |
tree | 87385a5e7b01ff0c913bf96c089d143ab452f79c | |
parent | 6210d67f7caff9fcf9d4d171430c1a4170000a83 (diff) | |
download | pathery-f03c9a928b9019c4b7947a9b087134ead88e7655.tar.xz |
Scoreboard colors. & Blank Emblem fix
-rw-r--r-- | includes/datas.php | 14 | ||||
-rw-r--r-- | pages/achievements.php | 3 |
2 files changed, 13 insertions, 4 deletions
diff --git a/includes/datas.php b/includes/datas.php index 9062ae0..81184cd 100644 --- a/includes/datas.php +++ b/includes/datas.php @@ -46,16 +46,22 @@ function topScores($mapid, $top = 5) { $wallColor = '#666666'; $wallEmblem = 'blank.png'; } + if ($wallEmblem == '') + $wallEmblem = 'blank.png'; $cdate = date("g:i A (T)", strtotime($cdate)); + $background = '#262631'; + if ($i % 2 == 1) + $background = '#20202a'; + if ($_SESSION['userID'] == $userID) - $output .= "<tr style='background-color: #356;' "; - else - $output .= "<tr "; + $background = '#343c57'; + //$background = '#356'; + + $output .= "<tr style='background-color: $background; color:$displayColor;' "; $output .= "title='Scored $cdate'>"; - $output .= "<td>$i</td> <td> <div class='grid_td' style='width:35px; height:35px; background:$wallColor url(images/marks/$wallEmblem);'> diff --git a/pages/achievements.php b/pages/achievements.php index ab17521..881e798 100644 --- a/pages/achievements.php +++ b/pages/achievements.php @@ -327,6 +327,9 @@ if (!$result OR mysql_num_rows($result) <= 0) { }
list($UDisplay, $UAdmin, $UTotalMoves, $UTotalSolutions, $wallColor, $nameColor, $wallEmblem) = mysql_fetch_row($result);
+if ($wallEmblem == '')
+ $wallEmblem = 'blank.png';
+
$DUTotalMoves = number_format($UTotalMoves);
$UTotalSolutions = number_format($UTotalSolutions);
|