Ejemplo n.º 1
0
 if ($_GET['ds']) {
     if (isset($_GET['filename']) && isset($_GET["owner"])) {
         $song = new Song();
         $song->download();
     }
 } else {
     if ($_GET['csmd']) {
         if (isset($_GET['sid']) && (isset($_POST['name']) || isset($_POST['artist']) || isset($_POST['year']) || isset($_POST['album']) || isset($_POST['genre']) || isset($_POST['lyrics']))) {
             $song = new Song();
             $song->changemetadata();
         }
     } else {
         if ($_GET['rs']) {
             if (isset($_GET['sid']) && isset($_GET['uid'])) {
                 $song = new Song();
                 $song->removeSong();
             }
         } else {
             if ($_GET['sus']) {
                 if (isset($_GET['uid'])) {
                     $song = new Song();
                     $song->showUserSongs();
                 }
             } else {
                 if ($_GET['sch']) {
                     if (isset($_GET['uid']) && isset($_POST['val'])) {
                         $song = new Song();
                         $song->showUserSongs();
                     }
                 } else {
                     if ($_GET['e']) {