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

Commit 9f29184f authored by clint's avatar clint

some silly statistics to increase the load

parent 8a3ea43b
......@@ -63,6 +63,23 @@ require_once('database.php');
}
?>
<h2>Statistics</h2>
<?php
$res = $mdb2->query("SELECT COUNT(*) as total from Scrobbles");
if(PEAR::isError($res)) {
die($res->getMessage());
}
$row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)
echo "<p>" . stripslashes($row["total"]) . " gobbles."</p>";
$res = $mdb2->query("SELECT COUNT(*) as total from Track");
if(PEAR::isError($res)) {
die($res->getMessage());
}
$row = $res->fetchRow(MDB2_FETCHMODE_ASSOC)
echo "<p>" . stripslashes($row["total"]) . " tracks."</p>";
?>
<p>
<a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-html401"
......
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