Files
Testing/popup_vidchat.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

50 lines
959 B
PHP

<?php
$page = "popup_vidchat";
include "header.php";
$json = json_encode(array('username'=>$user->user_info["user_username"], 'password'=>'reiki123', 'gender'=>'male', 'role'=>'user', 'profile'=>base64_encode('https://www.bateworld.com/profile.php?user='.$user->user_info["user_username"]), 'image'=>"https://www.bateworld.com".$user->user_photo("/images/nophoto.png")));
$ch = curl_init();
// set url
curl_setopt($ch, CURLOPT_URL, "https://jwt.html5-chat.com/protect/".base64_encode($json));
//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// $output contains the output string
$output = curl_exec($ch);
//$encoded = file_get_contents("https://jwt.html5-chat.com/protect/".base64_encode($json));//, 'startRoom'=>5);
curl_close($ch);
$smarty->assign('json', $json);
$smarty->assign('output', $output);
include "footer.php";
?>