Upcoming Schedule | Past Streaming
include "common.php"; /*if (!$_SESSION['logged'] ){ header("location: login.php?require=true"); exit; }*/ $id = $_GET['id']; $id = str_replace("'","", $id); $id = str_replace(",","", $id); $id = str_replace("==","", $id); if (isset($_GET['action']) && is_numeric($id)){ $ip_address = $_SERVER['REMOTE_ADDR']; $type = $_GET['method']; if ($type == 'vlc') $type = 'vlc'; else $type = 'dvts'; $sql = "INSERT INTO statistics (ip_address, user_id, schedule_id, type,client_details ) VALUES ('$ip_address', '{$_SESSION['id']}', '$id', '$type', '". addslashes($_SERVER['HTTP_USER_AGENT'])."' )"; $rs = mysql_query($sql) or die("error in sql". mysql_error()); $stat_id = mysql_insert_id(); $sql = "SELECT * FROM channel_schedules WHERE channel_schedule_id = '". $id ." '"; $rs = mysql_query($sql) or die("error in sql". mysql_error()); $rows = mysql_fetch_assoc($rs); $passError = false; if( strlen($rows['password']) > 0 ){ if ($_GET['password'] != $rows['password']) { $passError = true; $sql = "UPDATE statistics SET valid_password = 'N' WHERE id = '$stat_id'"; $rs2 = mysql_query($sql) or die("error in sql". mysql_error()); //update password is error } } if (!$passError){ if ($_GET['method'] == 'vlc'){ // We'll be outputting a PDF header('Content-type: application/m3u'); header('Content-Disposition: attachment; filename="play-'. $id .'.xspf"'); $ip = $rows['groups']; if ($rows['ipv46'] == '6' ) $ip = '['.$ip .']'; $link = 'udp://@'. $ip .':'. $rows['vlc_port']; echo ''; ?>Sorry We cannot find this Broadcast Schedule }else{ $sql = "SELECT * FROM channel_schedules t1 INNER JOIN channel_sched_reservations t2 ON t1.channel_sched_reservation_id = t2.channel_sched_reservation_id WHERE t1.channel_schedule_id = '$id'"; //echo $sql; $res = mysql_query($sql) or die(mysql_error()); if (mysql_num_rows($res) == 1 ){ $rows = mysql_fetch_assoc($res); //print_r($rows); ?>
![]() |
if ($rows['status'] == 2 || $rows['status'] == -1 ){
?>
Status : Brodcasting Date/Time Started: |

