summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 01:57:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-08-06 01:57:29 +0000
commitfb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d (patch)
tree86cee2ea4acaaf51dae5f4732d13e54213f12137 /modules
parent573c3014b982bd52f0b6959f51d65dfc86ae35c0 (diff)
downloadampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.tar.gz
ampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.tar.bz2
ampache-fb5c43b2df8a190fecfe4bf04bcd64aa1bad9c2d.zip
proof of concept, nothing one should actually use
Diffstat (limited to 'modules')
-rw-r--r--modules/infotools/openstrands.class.php16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/infotools/openstrands.class.php b/modules/infotools/openstrands.class.php
index e445e90f..51b4dee0 100644
--- a/modules/infotools/openstrands.class.php
+++ b/modules/infotools/openstrands.class.php
@@ -440,7 +440,6 @@ class openStrands {
} // recommend_tracks
-
/**
* set_filter
* This builds out the filter for this object, it's a per instance filter
@@ -494,6 +493,21 @@ class openStrands {
} // set_filter
/**
+ * set_auth_token
+ * This function should be called on load to set the auth_token, if you don't
+ * just hardcode it, also allows realtime switching between auth tokens
+ * so that users can use their own limits when querying
+ */
+ public static function set_auth_token($token) {
+
+ // Set it
+ self::$auth_token = $token;
+
+ //FIXME: We should log this event?
+
+ } // set_auth_token
+
+ /**
* run_query
* This builds a URL, runs it and then returns whatever we found
*/