$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"; ?>