summaryrefslogtreecommitdiffstats
path: root/includes/datas.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/datas.php')
-rw-r--r--includes/datas.php14
1 files changed, 10 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);'>