1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00
ampache/upnp/event-reply.php
2014-07-01 07:50:57 +02:00

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;
?>