Commit 0019fc0f authored by mattl's avatar mattl

Added user friendly help page

parent d16b72f4
......@@ -28,7 +28,6 @@ require_once('temp-utils.php');
<html>
<head>
<title>GNUkebox</title>
<meta http-equiv="refresh" content="20" />
</head>
<body>
<h2>Recent tracks</h2>
......@@ -39,7 +38,7 @@ require_once('temp-utils.php');
try {
$res = $adodb->CacheGetAll(80, 'SELECT artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 5');
$res = $adodb->CacheGetAll(300, 'SELECT artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 500');
} catch (Exception $e) {
die($e->getMessage());
......
......@@ -39,7 +39,7 @@ if (isset($_GET['hs']) && isset($_GET['p'])) {
} else {
//If we're not handshaking then just display some nice stats
if ($displaythings) {
require_once('display.php');
require_once('help.php');
} else {
echo '<h1>GNUkebox!</h1><p>Please configure your system for ' . $_SERVER['SERVER_NAME'] . '</p>';
}
......
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