Files

24 lines
623 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?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')
));
}
}
?>