mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-03 17:59:21 +02:00
19 lines
431 B
PHP
19 lines
431 B
PHP
<?php
|
|
// No event subscribe support but avoid few players error (e.g. Windows Media Player).
|
|
|
|
define('NO_SESSION','1');
|
|
require_once '../lib/init.php';
|
|
|
|
$headers = getallheaders();
|
|
//$callback = $headers['Callback'];
|
|
//$nt = $headers['NT'];
|
|
$timeout = $headers['Timeout'];
|
|
if (empty($timeout)) {
|
|
$timeout = "Second-3600";
|
|
}
|
|
|
|
header("SID: uuid:" . uniqid());
|
|
header("TIMEOUT:" . $timeout);
|
|
header("Connection: close");
|
|
exit;
|
|
?>
|