We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit b23a495b authored by P. J. McDermott's avatar P. J. McDermott

Clean up gnukebox/stats.php.

parent 705ad689
......@@ -39,23 +39,23 @@ require_once('temp-utils.php');
<?php
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Scrobbles');
if(!$total) {
die("sql error");
if (!$total) {
die('sql error');
}
echo "<p>" . stripslashes($total) . " listens.</p>";
echo '<p>' . stripslashes($total) . ' listens.</p>';
$total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Track');
if(!$total) {
die("sql error");
if (!$total) {
die('sql error');
}
echo "<p>" . stripslashes($total) . " unique tracks.</p>";
echo '<p>' . stripslashes($total) . ' unique tracks.</p>';
$total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Users');
if(!$total) {
die("sql error");
if (!$total) {
die('sql error');
}
echo "<p>" . stripslashes($total) . " users.</p>";
echo '<p>' . stripslashes($total) . ' users.</p>';
?>
</body>
</html>
\ No newline at end of file
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment