summaryrefslogtreecommitdiffstats
path: root/lib/localplay.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 05:41:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 05:41:26 +0000
commitf4ad61dccfd3b92760659f0382ca51a14e92a8b8 (patch)
tree3b7b5743a7d75e14c28fcccf96391c42b674e00c /lib/localplay.lib.php
parent83815169ceb211d4449928b21c02539795f81624 (diff)
downloadampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.tar.gz
ampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.tar.bz2
ampache-f4ad61dccfd3b92760659f0382ca51a14e92a8b8.zip
- Fixed missing web_path on catalog functions
- New Localplay Controller Abstract class, required for controllers - Tweaked preferences as needed for localplay mojo
Diffstat (limited to 'lib/localplay.lib.php')
-rw-r--r--lib/localplay.lib.php65
1 files changed, 0 insertions, 65 deletions
diff --git a/lib/localplay.lib.php b/lib/localplay.lib.php
index 99b13932..1795fc41 100644
--- a/lib/localplay.lib.php
+++ b/lib/localplay.lib.php
@@ -20,35 +20,6 @@
*/
/**
- * verify_localplay_prefrences
- * This takes a type of localplay and then
- * Verifys that the preferences have all been
- * inserted into the database if they haven't been
- * Then it returns false
- */
-function verify_localplay_preferences($type) {
-
- /* Load the locaplay module of said type */
- $localplay = new Localplay($type);
-
- $preferences = $localplay->get_preferences();
-
- foreach ($preferences as $preference) {
- $name = 'localplay_' . $type . '_' . $preference['name'];
- /* check for an existing record */
- $sql = "SELECT id FROM preferences WHERE name = '" . Dba::escape($name) . "'";
- $db_results = Dba::query($sql);
-
- if (!Dba::num_rows($db_results)) { return false; }
-
- } // end foreach preferences
-
- return true;
-
-} // verify_localplay_preferences
-
-
-/**
* insert_locaplay_preferences
* This takes a controller type and inserts the preferences
* Into the database, it is able to handle existing preferences
@@ -135,42 +106,6 @@ function remove_localplay_preferences($type=0) {
} // remove_localplay_preferences
-/**
- * get_localplay_controllers
- * This returns an array of the localplay controllers filenames
- * as well as a 'semi-cleaned' name
- */
-function get_localplay_controllers($disabled='') {
-
- /* First get a list of the files */
- $handle = opendir(Config::get('prefix') . '/modules/localplay');
-
- if (!is_resource($handle)) {
- debug_event('localplay','Error: Unable to read localplay controller directory','1');
- }
-
- $results = array();
-
- while ($file = readdir($handle)) {
-
- if (substr($file,-14,14) != 'controller.php') { continue; }
-
- /* Make sure it isn't a subdir */
- if (!is_dir($file)) {
- /* Get the base name, then get everything before .controller.php */
- $filename = basename($file,'.controller.php');
- /* Make sure that it's currently enabled */
- if (verify_localplay_preferences($filename) || $disabled) {
- $results[] = $filename;
- }
- }
- } // end while
-
- return $results;
-
-} // get_localplay_controllers
-
-
/**
* This function stores the Localplay object
* It checks to see what access level you have