diff options
-rw-r--r-- | php/definitions.php | 1 | ||||
-rw-r--r-- | php/rd-procedures.php | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/php/definitions.php b/php/definitions.php index 4787535..f1909ed 100644 --- a/php/definitions.php +++ b/php/definitions.php @@ -3,5 +3,4 @@ $dpath = 'data/'; $common = 'common.mvms'; # common header/footer contents $channel = 'channel'; # Channel index $cpath = 'mvms/'; # Path of the contents -$vid = 0; # default video ?> diff --git a/php/rd-procedures.php b/php/rd-procedures.php index 496287d..d2bfe11 100644 --- a/php/rd-procedures.php +++ b/php/rd-procedures.php @@ -1,6 +1,9 @@ <?php $vindex = file($dpath.$wsdata[3].'/toc.mvms', FILE_IGNORE_NEW_LINES); +# default video +$vid = $vindex[0]; + /* 1 parse the URL */ $vdata = explode('/', $_SERVER['REQUEST_URI']); |