Files
Testing/videocall/demos/SSEConnection/checkPresence.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

24 lines
623 B
PHP

<?php
// Muaz Khan - www.MuazKhan.com
// MIT License - https://www.webrtc-experiment.com/licence/
// Documentation - https://github.com/muaz-khan/RTCMultiConnection
require('get-param.php');
require('enableCORS.php');
if (getParam('roomid')) {
$filename = getcwd().'/rooms/'.getParam('roomid').'.json';
if (file_exists($filename)) {
echo json_encode(array(
'isRoomExist' => true,
'roomid' => getParam('roomid')
));
} else {
echo json_encode(array(
'isRoomExist' => false,
'roomid' => getParam('roomid')
));
}
}
?>