session_start(); if (($_SESSION["login"] != true) AND ($byakman->userInfo('username') == "" OR $byakman->userInfo('password') == "")) { header("Location: index.php?page=login"); exit(); } else { $id = $byakman->guvenlik($_GET["id"]); $get_cat_info = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_categories", ""); $get_cat = json_decode($get_cat_info, true); $key = array_search($id, array_column($get_cat, 'category_id')); $get_movies_cat = $byakman->player_api2($byakman->userInfo('username'), $byakman->userInfo('password'), "get_vod_streams&category_id=", $id); $get_movies = json_decode($get_movies_cat, true); ?>