Files
Testing/vidchat/m/leaveRoom.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

28 lines
757 B
PHP

<?php
require "RtmpClient.class.php";
require "debug.php";
require "connectionDetails.php";
@session_start();
$host=HOST;
$appName=APPNAME;
$port=PORT;
if(empty($_SESSION["username"])){
echo "Username is mandatory. Connection Rejected";
return false;
}
$client = new RtmpClient();
$data = array($_SESSION["gender"],$_SESSION["username"],$_SESSION["AVC_siteId"],"","user",0,0,$_SESSION["thumbnailUrl"],$_SESSION["theToken"],$_SESSION["profileUrl"],$_SESSION["profileCountryFlag"],$_SESSION["clientUniqueIdentifier"],$revision,$_COOKIE["userId"],getRealIpAddr(),true);
$client->connect($host,$appName,$port,$data);
if(isset($_SESSION["roomId"])){
$client->leaveRoom($_SESSION["roomId"]);
}
//$client->close();
?>