diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-10 06:08:33 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-10 06:08:33 +0000 |
commit | 32349846fbd66e4ebc44e63d37fbcd8cff5a8a73 (patch) | |
tree | 6aa1acd81fcf798150ba2c702116aa5f4dcde63b /lib | |
parent | 8045c0121ca3e22af2945faa072c5de4b329d7d8 (diff) | |
download | ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.tar.gz ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.tar.bz2 ampache-32349846fbd66e4ebc44e63d37fbcd8cff5a8a73.zip |
fixed two MPD issues, can now disable localplay modules, added check for PHP5
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/localplay.class.php | 19 | ||||
-rw-r--r-- | lib/init.php | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/lib/class/localplay.class.php b/lib/class/localplay.class.php index 2b0d6b12..6e01bfe0 100644 --- a/lib/class/localplay.class.php +++ b/lib/class/localplay.class.php @@ -218,6 +218,25 @@ class Localplay { } // install /** + * uninstall + * This runs the uninstall for the localplay controller we've + * currently pimped out + */ + public function uninstall() { + + // Run the players uninstaller + $this->_player->uninstall(); + + // If its our current player, reset player to nothing + if ($GLOBALS['user']->prefs['localplay_controller'] == $this->type) { + Preference::update('localplay_controller',$GLOBALS['user']->id,''); + } + + return true; + + } // uninstall + + /** * connect * This function attempts to connect to the localplay * player that we are using diff --git a/lib/init.php b/lib/init.php index 2f76a005..bf6c69c4 100644 --- a/lib/init.php +++ b/lib/init.php @@ -27,6 +27,12 @@ // fixes some CSS issues ob_start(); +// Do a check for PHP5 because nothing will work without it +if (strcmp('5.0.0',phpversion()) > 0) { + echo "ERROR: Ampache requires PHP5"; + exit; +} + // Set the Error level manualy... I'm to lazy to fix notices error_reporting(E_ALL ^ E_NOTICE); |