require_once '../lib_ampache.php'; $arguments = $_POST; if (!isset($_POST['action']) and isset($_GET['action'])) { $arguments = $_GET; } foreach ($arguments as &$argument) { $argument = stripslashes($argument); } ob_clean(); if (isset($arguments['action'])) { if (defined("DEBUG") && DEBUG) { error_log($arguments['action']); } switch ($arguments['action']) { case 'url_to_song': OC_MEDIA_AMPACHE::url_to_song($arguments); break; case 'play': OC_MEDIA_AMPACHE::play($arguments); break; case 'handshake': OC_MEDIA_AMPACHE::handshake($arguments); break; case 'ping': OC_MEDIA_AMPACHE::ping($arguments); break; case 'artists': OC_MEDIA_AMPACHE::artists($arguments); break; case 'artist_songs': OC_MEDIA_AMPACHE::artist_songs($arguments);