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.
28 lines
559 B
28 lines
559 B
4 weeks ago
|
<?php
|
||
|
|
||
|
use App\Wrappers\DatabaseInteractions;
|
||
|
use App\Wrappers\SQLQueryBuilderWrapper;
|
||
|
|
||
|
$tuneDir = __DIR__ . '/../../../LocalStorage/Tunes';
|
||
|
$targetTuneID = $_GET['tune-id'];
|
||
|
|
||
|
|
||
|
$data = (new DatabaseInteractions())->RunOneSelect(
|
||
|
queryBuilder: SQLQueryBuilderWrapper::SELECT_ONE(
|
||
|
table: 'Tunes',
|
||
|
id: $targetTuneID
|
||
|
)
|
||
|
->cols(cols: [
|
||
|
'T.ABC',
|
||
|
])
|
||
|
);
|
||
|
|
||
|
/*
|
||
|
$filePath = "$tuneDir/$targetTuneID/primary.abc";
|
||
|
$temp = file_get_contents(filename: $filePath);
|
||
|
*/
|
||
|
|
||
|
header(header: "Content-type: text/xml");
|
||
|
echo $data['ABC'];
|
||
|
die();
|