<?php //header("Location: http://cdn99.tv/player_api.php?username=v0dsbag4&password=3feghEvrF&action=get_vod_info&vod_id=" . $_GET['vod_id']); //exit; // http://hubby.bz/player_api.php?username=NitroHD-vods&password=**********&action=get_series // $url = "http://edgeproxy7.com/player_api.php?username=v0dsbag4&password=3feghEvrF&action=get_vod_info&vod_id=" . $_GET['vod_id'];#warez $url = "http://hubby.bz/player_api.php?username=redcinevod1-vods&password=**********&action=get_vod_info&vod_id=" . $_GET['vod_id']; #p2flix $json = file_get_contents($url); echo $json; exit; include_once("function.php"); header('Content-Type: application/json; charset=UTF-8'); preg_match('/\d{4}$/', $_GET['vod_id'], $match_meu_numero); $ultimosQuatro = $match_meu_numero[0]; if ($ultimosQuatro === substr($tokenSeries, -4)) { /* $str= explode($tokenSeries, $_GET['vod_id']); $result_filmes = "SELECT * FROM filmes WHERE id='$str[0]'"; $resultado_filmes = mysqli_query($conexao, $result_filmes); $filmess = mysqli_fetch_assoc($resultado_filmes); $nomeFilme = $filmess["nome"]; $descricao = str_replace(['.', ','], '', preg_replace("/[\r\n]+/", "", trim($filmess['descricao']))); */ include_once("info.php"); // mysqli_close($conexao); exit(); } elseif ($ultimosQuatro === substr($tokenP2p, -4)) { //global $STR; $restante = substr($_GET['vod_id'], 0, -4); // pega o restante da string, excluindo os últimos 4 dígitos $STR = $filmes[$restante]["stream_id"]; // echo $restante; // exit(); /* if($STR == null){ $url2 = "http://conexaoonline.top/player_api.php?username=filmebinp2p&password=2Y3URqGeYT&action=get_vod_streams"; $json1 = file_get_contents($url2); $obj1 = json_decode($json1); $filmes = array(); foreach ($obj1 as $resul2) { $stream_id = $resul2->stream_id; $filmes[$resul2->num] = [ "stream_id" => intval($stream_id) ]; } // Salva o resultado em cache $cacheData = json_encode($filmes); file_put_contents($cacheFile, $cacheData); $STR = $filmes[$restante]["stream_id"]; }*/ $num = $_GET['vod_id']; $jsonVod = buscarVodJSON($STR); if ($jsonVod == false) { echo json_encode(array()); exit(); } $info = $jsonVod['info']; $movie_data = $jsonVod['movie_data']; // print_r($info); // echo json_encode($info); // exit; if (is_object($movie_data)) { // echo gettype($movie_data); // echo "sim"; //exit; header('Content-Type: application/json'); //print_r($obj); $movieData = $movie_data; $streamId = $movieData->stream_id; $name = $movieData->name; $added = $movieData->added; $category_id = $movieData->category_id; $custom_sid = $movieData->custom_sid; $direct_source = $movieData->direct_source; $container_extension = $movieData->container_extension; //$dados1["info"] = $obj->info; $dados1 = json_decode(json_encode($info), true); if (strpos($dados1["cover_big"], "conexaoonline") !== false) { $dados1["cover_big"] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $dados1["cover_big"]); } if (strpos($dados1["movie_image"], "conexaoonline") !== false) { $dados1["movie_image"] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $dados1["movie_image"]); } // if (is_array($dados1["backdrop_path"])) { // foreach ($dados1["backdrop_path"] as $key => $value) { // if (strpos($value, "conexaoonline") !== false) { // $dados1["backdrop_path"][$key] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $value); // } // } // } else { // $dados1["backdrop_path"] = ''; // } if (isset($dados1["backdrop_path"])) { if (is_array($dados1["backdrop_path"])) { foreach ($dados1["backdrop_path"] as $key => $value) { if (strpos($value, "conexaoonline") !== false) { $dados1["backdrop_path"][$key] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $value); } } } else { $dados1["backdrop_path"] = ''; } } else { $dados1["backdrop_path"] = ''; } $dados2["movie_data"] = [ "stream_id" => intval($restante . $tokenP2p), "name" => $name, "added" => $added, "category_id" => $category_id, "container_extension" => $container_extension, "custom_sid" => $custom_sid, "direct_source" => $direct_source ]; $resultado = array_merge(["info" => $dados1], $dados2); echo json_encode($resultado); } exit; } else { $errortoken = array("Error"); echo json_encode($errortoken); //echo 'os últimos quatro dígitos são diferentes'; }
translate code: function add(a, b) { return a + b; } ```python def add(a, b): return a + b ``` translate code: <?php //header("Location: http://cdn99.tv/player_api.php?username=v0dsbag4&password=3feghEvrF&action=get_vod_info&vod_id=" . $_GET['vod_id']); //exit; // http://hubby.bz/player_api.php?username=NitroHD-vods&password=**********&action=get_series // $url = "http://edgeproxy7.com/player_api.php?username=v0dsbag4&password=3feghEvrF&action=get_vod_info&vod_id=" . $_GET['vod_id'];#warez $url = "http://hubby.bz/player_api.php?username=redcinevod1-vods&password=**********&action=get_vod_info&vod_id=" . $_GET['vod_id']; #p2flix $json = file_get_contents($url); echo $json; exit; include_once("function.php"); header('Content-Type: application/json; charset=UTF-8'); preg_match('/\d{4}$/', $_GET['vod_id'], $match_meu_numero); $ultimosQuatro = $match_meu_numero[0]; if ($ultimosQuatro === substr($tokenSeries, -4)) { /* $str= explode($tokenSeries, $_GET['vod_id']); $result_filmes = "SELECT * FROM filmes WHERE id='$str[0]'"; $resultado_filmes = mysqli_query($conexao, $result_filmes); $filmess = mysqli_fetch_assoc($resultado_filmes); $nomeFilme = $filmess["nome"]; $descricao = str_replace(['.', ','], '', preg_replace("/[\r\n]+/", "", trim($filmess['descricao']))); */ include_once("info.php"); // mysqli_close($conexao); exit(); } elseif ($ultimosQuatro === substr($tokenP2p, -4)) { //global $STR; $restante = substr($_GET['vod_id'], 0, -4); // pega o restante da string, excluindo os últimos 4 dígitos $STR = $filmes[$restante]["stream_id"]; // echo $restante; // exit(); /* if($STR == null){ $url2 = "http://conexaoonline.top/player_api.php?username=filmebinp2p&password=2Y3URqGeYT&action=get_vod_streams"; $json1 = file_get_contents($url2); $obj1 = json_decode($json1); $filmes = array(); foreach ($obj1 as $resul2) { $stream_id = $resul2->stream_id; $filmes[$resul2->num] = [ "stream_id" => intval($stream_id) ]; } // Salva o resultado em cache $cacheData = json_encode($filmes); file_put_contents($cacheFile, $cacheData); $STR = $filmes[$restante]["stream_id"]; }*/ $num = $_GET['vod_id']; $jsonVod = buscarVodJSON($STR); if ($jsonVod == false) { echo json_encode(array()); exit(); } $info = $jsonVod['info']; $movie_data = $jsonVod['movie_data']; // print_r($info); // echo json_encode($info); // exit; if (is_object($movie_data)) { // echo gettype($movie_data); // echo "sim"; //exit; header('Content-Type: application/json'); //print_r($obj); $movieData = $movie_data; $streamId = $movieData->stream_id; $name = $movieData->name; $added = $movieData->added; $category_id = $movieData->category_id; $custom_sid = $movieData->custom_sid; $direct_source = $movieData->direct_source; $container_extension = $movieData->container_extension; //$dados1["info"] = $obj->info; $dados1 = json_decode(json_encode($info), true); if (strpos($dados1["cover_big"], "conexaoonline") !== false) { $dados1["cover_big"] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $dados1["cover_big"]); } if (strpos($dados1["movie_image"], "conexaoonline") !== false) { $dados1["movie_image"] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $dados1["movie_image"]); } // if (is_array($dados1["backdrop_path"])) { // foreach ($dados1["backdrop_path"] as $key => $value) { // if (strpos($value, "conexaoonline") !== false) { // $dados1["backdrop_path"][$key] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $value); // } // } // } else { // $dados1["backdrop_path"] = ''; // } if (isset($dados1["backdrop_path"])) { if (is_array($dados1["backdrop_path"])) { foreach ($dados1["backdrop_path"] as $key => $value) { if (strpos($value, "conexaoonline") !== false) { $dados1["backdrop_path"][$key] = str_replace("conexaoonline.top:80", "mistery.redcine.xyz", $value); } } } else { $dados1["backdrop_path"] = ''; } } else { $dados1["backdrop_path"] = ''; } $dados2["movie_data"] = [ "stream_id" => intval($restante . $tokenP2p), "name" => $name, "added" => $added, "category_id" => $category_id, "container_extension" => $container_extension, "custom_sid" => $custom_sid, "direct_source" => $direct_source ]; $resultado = array_merge(["info" => $dados1], $dados2); echo json_encode($resultado); } exit; } else { $errortoken = array("Error"); echo json_encode($errortoken); //echo 'os últimos quatro dígitos são diferentes'; } ```PHP