summaryrefslogtreecommitdiffstats
path: root/login.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-21 04:35:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-21 04:35:01 +0000
commit88d968dfaa1cd93185db0e92ed20af0f250aa62a (patch)
tree5dd249eb340c13e0f38e28713b406a47cdaa845b /login.php
parent97f2382bc127d66613e6ce7e45eaff548a288b14 (diff)
downloadampache-88d968dfaa1cd93185db0e92ed20af0f250aa62a.tar.gz
ampache-88d968dfaa1cd93185db0e92ed20af0f250aa62a.tar.bz2
ampache-88d968dfaa1cd93185db0e92ed20af0f250aa62a.zip
updated lastfm protocol to 1.2, improved the logic behind it does not require a logout, also fixed duplicate stats collection of greedy players
Diffstat (limited to 'login.php')
-rw-r--r--login.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/login.php b/login.php
index dc86d477..7c15ab65 100644
--- a/login.php
+++ b/login.php
@@ -126,25 +126,6 @@ if ($auth['success']) {
// Reload the Preferences from the database
init_preferences();
- // Do the handshake with LastFM if they are configured as such to let it know we might submit some stuff soon
- if ($user->prefs['lastfm_user'] AND $user->prefs['lastfm_pass']) {
- $lastfm = new scrobbler($user->prefs['lastfm_user'],$user->prefs['lastfm_pass']);
-
- /* Attempt handshake */
- $handshake = $lastfm->handshake();
- if (!$handshake) {
- debug_event('LastFM','Handshake Failed: ' . $lastfm->error_msg,'3');
- }
-
- // Update the preferences
- Preference::update('lastfm_port',$user->id,$handshake['submit_port']);
- Preference::update('lastfm_host',$user->id,$handshake['submit_host']);
- Preference::update('lastfm_url',$user->id,$handshake['submit_url']);
- Preference::update('lastfm_challenge',$user->id,$handshake['challenge']);
-
- } // if LastFM
-
-
/* Make sure they are actually trying to get to this site and don't try to redirect them back into
* an admin section
**/