Esempio n. 1
0
			<tr>
				<td width="25%">XP:</td>
				<td width="25%"><?php 
echo formatInt($user->xp);
?>
</td>
				
				<td width="25%"></td>
				<td width="25%"></td>
			</tr>
			<tr>
				<td>Level:</td>
				<td><?php 
echo $user->level();
?>
 <a href="index.php?page=help_levels">(?)</a></td>
				
				<td></td>
				<td></td>
			</tr>
		</table>
	</div>
</div>
<div class="block">
	<div class="blocktitle">Last played songs</div>
	<div class="blockcontent">
		<?php 
echoStatsTable($stats);
?>
	</div>
</div>
Esempio n. 2
0
<?php

if (!isset($_GET['sid'])) {
    header("Location: index.php");
    exit;
}
$song = new Song(intval($_GET['sid']));
if ($song->id == 0) {
    header("Location: index.php");
    exit;
}
$page = 1;
if (isset($_GET['p'])) {
    $page = intval($_GET['p']);
}
$stats = getBestStatsFromSong($song, 10, $page);
?>
<div class="title"><?php 
echo makeSafeHTML($song->name);
?>
</div>
<div class="block">
	<div class="blocktitle">Best statistics</div>
	<div class="blockcontent">
		<?php 
echoStatsTable($stats, true);
?>
	</div>
</div>