64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
|
|
<?php
|
||
|
|
$page = "vidchat5";
|
||
|
|
|
||
|
|
header('Expires: Sun, 01 Jan 2014 00:00:00 GMT');
|
||
|
|
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||
|
|
header('Cache-Control: post-check=0, pre-check=0', FALSE);
|
||
|
|
header('Pragma: no-cache');
|
||
|
|
|
||
|
|
include "header.php";
|
||
|
|
if($user->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));
|
||
|
|
|
||
|
|
echo "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";
|
||
|
|
?>
|