user_info["user_id"]>0){ if($user->user_info["user_level_id"]!=2&&$user->user_info["user_level_id"]!=7){ header("Location: /premium.php?premiumonly=1"); exit; } } else{header("Location:/login.php"); exit;} if(SE_DEBUG){echo $user->user_photo1();} $json = json_encode(array('username'=>"BatWorldHelp", 'password'=>'reiki123', 'gender'=>'male', 'role'=>'user', 'profile'=>'https://www.bateworld.com/profile.php?user=BateWorldHelp', 'image'=>"https://www.bateworld.com/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('noanalytics', "1"); $smarty->assign('json', $json); $smarty->assign('output', $output); include "footer.php"; ?>