Commit 25d696a5 authored by Jonas Haraldsson's avatar Jonas Haraldsson

Delete files

1.x/AUTHORS: all names can be found in gnu-fm/AUTHORS
parent 00fc869e
GNUkebox Authors
================
Michael Sheldon
Brandon Kyle McCalip
Jørgen Bøhnsdalen
Nicholas Reynolds
Toby Inkster
Marius Orcsik
Clint Adams
Matt Lee
GNUkebox name
=============
John Sullivan
---
(c) 2009 Free Software Foundation Inc
This is the GNU FM server, compatible with the last.fm API.
To install visit http://yourserver.com/install.php
As things stand you'll need the ADODB module installed.
Web services API:
To test the authentication API once the server is set up:
1. Navigate to /2.0/?method=auth.gettoken&api_key=01234567890123456789012345678901&api_sig=01234567890123456789012345678901
(The api_key and api_sig are only checked to be 32 characters long since Last.FM shared secrets cannot be checked)
2. Copy the key that is returned by the auth.gettoken method
3. Navigate to /api/auth/?api_key=01234567890123456789012345678901&token=<copied token>
(Inserting the copied token into the noted place)
4. Login as testuser/password (this user is hard-coded upon database setup)
5. Close the browser when requested
6. Navigate to /2.0/?method=auth.getsession&api_key=01234567890123456789012345678901&api_sig=01234567890123456789012345678901&token=<copied token>
(Once again substituting the old copied token into the noted place)
7. The 32-byte key returned between the <key> tags in this response will be used in the Submissions protocol handshake
Submissions API:
The submissions API (http://www.last.fm/api/submissions) is used by clients for scrobbling tracks, authentication can either be carried out with a token from the web services API or via a token created by "md5(md5(password) + timestamp)"
To test standard authentication:
1. Visit /?hs=true&p=1.2&u=testuser&t=1238855138&a=a40dfdc5aa3012c64425a5953267b232&c=tst
2. You should receive "OK" (followed by a session id, and the URL for the now playing and submissions servers).
<?php
/* GNUkebox -- a free software server for recording your listening habits
Copyright (C) 2009, 2011 Free Software Foundation, Inc
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
header('Content-type: text/html; charset=utf-8');
require_once('../config.php');
require_once($install_path . 'database.php');
require_once($install_path . 'utils/human-time.php');
require_once($install_path . 'temp-utils.php');
require_once($install_path . 'version.php');
?>
<!DOCTYPE html>
<html>
<head>
<title>GNUkebox</title>
</head>
<body>
<h2>Recent tracks</h2>
<?php
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
try {
$res = $adodb->CacheGetAll(300, 'SELECT artist, track, time FROM Scrobbles ORDER BY time DESC LIMIT 500');
} catch (Exception $e) {
die($e->getMessage());
}
echo "<ul>\n";
foreach ($res as &$row){
echo "<li>" . $row['artist'] . "&mdash;" . $row['track'] . "</li>\n";
}
?>
</ul>
<p>This server is powered by <a href="https://gitorious.org/foocorp/gnu-fm">GNU FM</a> version <?php echo $version; ?></p>
</body>
</html>
<?php
/* GNUkebox -- a free software server for recording your listening habits
Copyright (C) 2009, 2011 Free Software Foundation, Inc
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
?>
<!DOCTYPE html>
<html>
<head>
<title>Please point your music player here!</title>
<style type="text/css">
html, body {background-color: #ccc; color: #111; font-family: sans-serif; font-size: 24px; text-align: center;}
</style>
</head>
<body>
<h1>Please point your music player here.</h1>
<p><img src="data:image/gif;base64,R0lGODlhtwF5AcQQAICAgEBAQL+/v+/v7xAQEDAwMM/Pz5+fn2BgYN/f3yAgIK+vr1BQUHBwcI+P
jwAAAP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5B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u6acu4sku6dFu7rUu7uKu6t7u7s2sDvsu7hPC5m+u6wWsGnbsCxIu5xnu8C9G7zrsHzRu9yQS9
1OsG0xu9yasCy1u52eu825sC3Su533u84YsC49u45Ru853sC6au46+u77WsC73u48bu781sC9Uu4
94u7+UsC//sbuP1bu/87AgHstwMsuwUsAgectwn8ugsMAQ1stw/MuhE8wXJbwal7wdd7t7rbweJp
vSCsBhpsuhw8wmxQwqN7wihMwh/cwmLAwjB8BioMuhEsr7I7RTP8vIQgp2irwzscw4bwqUFcBluZ
AkVcvYVgtL5bsfIUxBGsr0k8Bi+axFEMrpULSTRgxYdAxEl8xEhcxFEsxUnspFx8CD7cTqZ0xofA
pa/rxKQExZW5w6vExocQs43brXY8xBlbuXexx4bwrJWbUYBsCFj8tpMaA4VsyB2cyIosxg/ax3br
PT+wyF3sxnlLADr6ApYcCQvAxHJLyUHQySqJx5+kAABArRU6QMrASTlYQ7gFsDVdowWsjLStEQIA
Ow==" alt="" />
<p>The Libre.fm wiki has a <a
href="http://bugs.foocorp.net/projects/librefm/wiki/Clients">good list
of players</a> that can be configured to support GNU FM servers, such
as this one.</p>
<p><small>Adding this information to your computer's hosts file often helps if you're totally stuck:</small></p>
<p><tt><?php echo $_SERVER['SERVER_ADDR'];?> post.audioscrobbler.com</tt></p>
<p><small>(We are not <a
href="http://audioscrobbler.com">Audioscrobbler</a>, but we can do
most of the same server functions.</small>)</p>
<p><a href="http://en.wikipedia.org/wiki/Hosts_%28file%29#Location_in_the_file_system">Where's my hosts file?</a></small>.</p>
</body>
</html>
\ No newline at end of file
<?php
/* GNUkebox -- a free software server for recording your listening habits
Copyright (C) 2009 Free Software Foundation, Inc
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
header('Content-type: text/html; charset=utf-8');
require_once('../config.php');
require_once($install_path . 'database.php');
require_once($install_path . 'utils/human-time.php');
require_once($install_path . 'temp-utils.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Statistics</title>
</head>
<body>
<h1><a href="/">GNUkebox</a> Statistics</h1>
<p>Please note, results are cached for approximately 9 minutes.</p>
<?php
$adodb->SetFetchMode(ADODB_FETCH_ASSOC);
$total = $adodb->CacheGetOne(500, 'SELECT SUM(scrobble_count) as total from User_Stats');
if (!$total) {
die('sql error');
}
echo '<p>' . stripslashes($total) . ' listens.</p>';
$total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Track');
if (!$total) {
die('sql error');
}
echo '<p>' . stripslashes($total) . ' unique tracks.</p>';
$total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Users');
if (!$total) {
die('sql error');
}
echo '<p>' . stripslashes($total) . ' users.</p>';
?>
</body>
</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