You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
691 B

<?php
use App\Wrappers\DatabaseInteractions;
use App\Wrappers\SQLQueryBuilderWrapper;
$tuneDir = __DIR__ . '/../../../LocalStorage/Tunes';
$targetTuneID = $_GET['tune-id'];
$result = (new DatabaseInteractions())->RunOneSelect(
queryBuilder: SQLQueryBuilderWrapper::SELECT_ONE(
table: 'Tunes',
id: $targetTuneID
)
->cols(cols: [
'T.*',
])
);
$temp = new \App\Dataclasses\ABCWrapper($result);
/*
header(header: "Content-type: text/text");
echo($temp->Build());
die();
*/
/*
$filePath = "$tuneDir/$targetTuneID/primary.abc";
$temp = file_get_contents(filename: $filePath);
*/
header(header: "Content-type: text/xml");
echo $temp->Build();
die();