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

/* 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 = $i;

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