diff options
-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);
|