diff --git a/nixtape/1.x/AUTHORS b/nixtape/1.x/AUTHORS deleted file mode 100644 index 022299a22940c360dc2865d8cf4692a44969766c..0000000000000000000000000000000000000000 --- a/nixtape/1.x/AUTHORS +++ /dev/null @@ -1,20 +0,0 @@ -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 diff --git a/nixtape/1.x/README b/nixtape/1.x/README deleted file mode 100644 index 41e6f883fee9ef57a2f07c1146aa7e4bb140f7d6..0000000000000000000000000000000000000000 --- a/nixtape/1.x/README +++ /dev/null @@ -1,36 +0,0 @@ -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= - (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= - (Once again substituting the old copied token into the noted place) - - 7. The 32-byte key returned between the 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). diff --git a/nixtape/1.x/display.php b/nixtape/1.x/display.php deleted file mode 100644 index 59d5479d32ffe82d76588c248684d457b0dce560..0000000000000000000000000000000000000000 --- a/nixtape/1.x/display.php +++ /dev/null @@ -1,63 +0,0 @@ -. - -*/ - -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'); - -?> - - - - GNUkebox - - -

Recent tracks

- - 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 "
    \n"; - - foreach ($res as &$row){ - - echo "
  • " . $row['artist'] . "—" . $row['track'] . "
  • \n"; - - } - ?> - -
- -

This server is powered by GNU FM version

- - - diff --git a/nixtape/1.x/help.php b/nixtape/1.x/help.php deleted file mode 100644 index 2f93941f94bf5de416b84543a2892cbd422befc8..0000000000000000000000000000000000000000 --- a/nixtape/1.x/help.php +++ /dev/null @@ -1,132 +0,0 @@ -. - -*/ - -?> - - - - -Please point your music player here! - - - -

Please point your music player here.

- -

- -

The Libre.fm wiki has a good list -of players that can be configured to support GNU FM servers, such -as this one.

- -

Adding this information to your computer's hosts file often helps if you're totally stuck:

- -

post.audioscrobbler.com

- -

(We are not Audioscrobbler, but we can do -most of the same server functions.)

- -

Where's my hosts file?.

- - - \ No newline at end of file diff --git a/nixtape/1.x/stats.php b/nixtape/1.x/stats.php deleted file mode 100644 index 7f241f7fb9180697b2f41715567e5823cefab703..0000000000000000000000000000000000000000 --- a/nixtape/1.x/stats.php +++ /dev/null @@ -1,62 +0,0 @@ -. - -*/ - -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'); - -?> - - - -Statistics - - -

GNUkebox Statistics

- -

Please note, results are cached for approximately 9 minutes.

- - SetFetchMode(ADODB_FETCH_ASSOC); - $total = $adodb->CacheGetOne(500, 'SELECT SUM(scrobble_count) as total from User_Stats'); - if (!$total) { - die('sql error'); - } - echo '

' . stripslashes($total) . ' listens.

'; - - $total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Track'); - if (!$total) { - die('sql error'); - } - echo '

' . stripslashes($total) . ' unique tracks.

'; - - $total = $adodb->CacheGetOne(500, 'SELECT COUNT(*) as total from Users'); - if (!$total) { - die('sql error'); - } - echo '

' . stripslashes($total) . ' users.

'; - - ?> - -