diff options
author | Naglfar <naglfar@tilde.institute> | 2021-01-11 00:51:23 +0100 |
---|---|---|
committer | Naglfar <naglfar@tilde.institute> | 2021-01-11 00:51:23 +0100 |
commit | 052ea1501ffb841862c340124f1799035c58afc4 (patch) | |
tree | 424c919a30db3094ed4e67c0e92b1e3b2024cc41 | |
parent | f82a64e24221853176fc1625b1fdba688627e13a (diff) | |
download | MightyWVMS-052ea1501ffb841862c340124f1799035c58afc4.tar.gz |
Set default content from video index
-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']); |