Esempio n. 1
0
            echo "{exists:1}";
        } else {
            echo "{exists:0}";
        }
    }
}
if ($_GET['ups']) {
    if (isset($_GET['uid'])) {
        $song = new Song();
        $song->upload();
    }
} else {
    if ($_GET['gs']) {
        if (isset($_GET['filename']) && isset($_GET["owner"])) {
            $song = new Song();
            $song->getsong();
        }
    } else {
        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']) {