Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 585 Bytes
<?php
// Log entire incoming request to see what we have in it.
$fp = fopen('/var/tmp/request.log', 'w');
fwrite($fp, $HTTP_RAW_POST_DATA);
fclose($fp);
// Use this object for accessing each viewer's ID, IP and stream name.
$sync_data = json_decode($HTTP_RAW_POST_DATA);
// Return IDs of clients which needs to be denied. Their IDs are 1 and 2 here.
// Those viewers will be disconnected immediatelly and will not be allowed to connect anymore.
header('Content-Type: application/json');
$arr = array('DenyList' => array('ID' => array(1, 2)));
echo json_encode($arr);
?>