1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

- Added modules section to sidebar, conforming to new layout from r1127

- Re-enabled plugins, added openstrands plugin
This commit is contained in:
Karl 'vollmerk' Vollmer 2007-08-06 00:39:54 +00:00
parent 00bcfdca5f
commit bf6e9f88d8
12 changed files with 248 additions and 206 deletions

View file

@ -0,0 +1,73 @@
<?php
/*
Copyright (c) 2001 - 2007 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License v2
as published by the Free Software Foundation.
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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
class AmpacheOpenStrands {
public $name ='OpenStrands';
public $description ='Interface with MyStrands, recommendations etc';
public $url ='http://www.mystrands.com/openstrands/overview.vm';
public $version ='000001';
public $min_ampache ='340007';
public $max_ampache ='340008';
/**
* Constructor
* This function does nothing...
*/
public function __construct() {
return true;
} // PluginLastfm
/**
* install
* This is a required plugin function it inserts the required preferences
* into Ampache
*/
public function install() {
/* We need to insert the new preferences */
$sql = "INSERT INTO preference (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
"VALUES ('mystrands_user',' ','MyStrands Username','25','string','options')";
$db_results = Dba::query($sql);
$sql = "INSERT INTO preference (`name`,`value`,`description`,`level`,`type`,`catagory`) " .
"VALUES ('mystrands_pass',' ','MyStrands Password','25','string','options')";
$db_results = Dba::query($sql);
} // install
/**
* uninstall
* This is a required plugin function it removes the required preferences from
* the database returning it to its origional form
*/
function uninstall() {
/* We need to remove the preivously added preferences */
$sql = "DELETE FROM `preference` WHERE `name`='mystrands_pass' OR `name`='mystrands_user'";
$db_results = Dba::query($sql);
} // uninstall
} // end AmpacheLastfm
?>