0]; if (isset($_POST['a']) and isset($_GET['l'])) { $get_file_key = $class_filter->clr_str($_GET['l']); $post_file_key= secured_decrypt($class_filter->clr_str($_POST['a'])); if ($post_file_key and $post_file_key == $get_file_key) { $rs = $db->execute(sprintf("SELECT `stream_live` FROM `db_livefiles` WHERE `file_key`='%s' LIMIT 1;", $post_file_key)); if ($rs->fields["stream_live"] == 1) { $data = ['ls' => 1]; } } } $json = json_encode($data); echo $json; return $json;