mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
67 lines
1.8 KiB
PHP
67 lines
1.8 KiB
PHP
<?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() {
|
|
|
|
Preference::insert('mystrands_user','MyStrands Login',' ','25','string','options');
|
|
Preference::insert('mystrands_pass','MyStrands Password',' ','25','string','options');
|
|
|
|
} // 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
|
|
?>
|