summary refs log tree commit diff stats
path: root/php/rd-procedures.php
blob: da53160493511b7b7a0f3b9f551656b041a3ca4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
$vindex = file($dpath.$wsdata[4].'/toc.mvms', FILE_IGNORE_NEW_LINES); 

# default video
$vid = $vindex[0];

/* 1 parse the URL */
$vdata = explode('/', $_SERVER['REQUEST_URI']);

/* 2 security check */
if(!empty($vdata[1]))
  foreach($vindex as $i => $value)
    if($vdata[1] == $value)
      $vid = $value;

$vdata = file($dpath.$wsdata[4].'/toc/'.$vid, FILE_IGNORE_NEW_LINES);
$cindex = file($dpath.$wsdata[4].'/'.$channel, FILE_IGNORE_NEW_LINES);
?>