MOON
Server: Apache
System: Linux e2e-78-16.ssdcloudindia.net 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
User: imensosw (1005)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/imensosw/www/imenso.co/dev/spotilicious/sources/video.php
<?php
if ($wo['loggedin'] == false) {
  header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
  exit();
}
if (empty($_GET['call_id'])) {
  header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
  exit();
}
if ($wo['config']['video_chat'] == 0) {
  header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
  exit();
}
$id = Wo_Secure($_GET['call_id']);
$data2 = Wo_GetAllDataFromCallID($id);
if (!$data2) {
	header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
    exit();
}

$wo['video_call'] = $data2;
if ($wo['video_call']['to_id'] == $wo['user']['user_id']) {
	$wo['video_call']['user'] = 1;
	$wo['video_call']['access_token'] = $wo['video_call']['access_token'];
	$wo['video_call']['call_id'] = $wo['video_call']['call_id_2'];
} else if ($wo['video_call']['from_id'] == $wo['user']['user_id']) {
	$wo['video_call']['user'] = 2;
	$wo['video_call']['access_token'] = $wo['video_call']['access_token_2'];
	$wo['video_call']['call_id'] = $wo['video_call']['call_id'];
} else {
	header("Location: " . Wo_SeoLink('index.php?link1=welcome'));
    exit();
}
$user_1 = Wo_UserData($wo['video_call']['from_id']);
$user_2 = Wo_UserData($wo['video_call']['to_id']);
$wo['video_call']['room'] = $wo['video_call']['room_name'];
$wo['description'] = $wo['config']['siteDesc'];
$wo['keywords']    = $wo['config']['siteKeywords'];
$wo['page']        = 'video';
$wo['title']       = $wo['config']['siteTitle'];
$wo['content']     = Wo_LoadPage('video/content');

if ($wo['video_call']['from_id'] == $wo['user']['user_id']) {
	$user_id = Wo_Secure($wo['user']['user_id']);
	//$query1 = mysqli_query($sqlConnect, "DELETE FROM " .  T_VIDEOS_CALLES . " WHERE `from_id` = $user_id OR `to_id` = $user_id");
}
?>