$password, "name" => $channel, "ip" => $_SERVER["REMOTE_ADDR"], "salt" => bin2hex(openssl_random_pseudo_bytes(16)), "starttime" => time() - 1*3600, "endtime" => time() + 1*3600)); function file_get_contents_curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set cURL to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); return $data; } //error_reporting(~0); //ini_set('display_errors', 1); $token = file_get_contents_curl("$flussonic/securetoken/sign?$query"); $embed = "$flussonic/$channel/embed.html?dvr=false&token=$token&version=2"; ?>