diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-24 14:16:31 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-24 14:16:31 +0100 |
commit | 6d2af1fac7bd066b75ebd237cc538e29fd21b729 (patch) | |
tree | d9e047923576b6c99cffc3dc66de5e4b77aa8789 /includes/inc_streaminfo.php | |
parent | 626bd613fd2909cb83fe5b03a19f67a8a9f97d66 (diff) | |
download | istreamdev-6d2af1fac7bd066b75ebd237cc538e29fd21b729.tar.gz istreamdev-6d2af1fac7bd066b75ebd237cc538e29fd21b729.tar.bz2 |
Now support media sources instead of only one media path (see the $mediasources config variable)
Changed the way we browse dirs (with a mediapath and a subdir)
Diffstat (limited to 'includes/inc_streaminfo.php')
-rwxr-xr-x | includes/inc_streaminfo.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/inc_streaminfo.php b/includes/inc_streaminfo.php index a45920c..5342573 100755 --- a/includes/inc_streaminfo.php +++ b/includes/inc_streaminfo.php @@ -8,7 +8,7 @@ 3 : Media */ -function writeinfostream($type=0, $name="", $title="", $desc="", $mode="", $category="", $url="") +function writeinfostream($type=0, $name="", $title="", $desc="", $mode="", $category="", $url="", $mediapath="", $subdir="") { $infofile = fopen("ram/streaminfo", 'w'); @@ -19,6 +19,8 @@ function writeinfostream($type=0, $name="", $title="", $desc="", $mode="", $cate fwrite($infofile, "mode=" .$mode ."\n"); fwrite($infofile, "category=" .$category ."\n"); fwrite($infofile, "url=" .$url ."\n"); + fwrite($infofile, "mediapath=" .$mediapath ."\n"); + fwrite($infofile, "subdir=" .$subdir ."\n"); fclose($infofile); } @@ -46,11 +48,15 @@ function readinfostream() $category = substr($line, strlen("category="), -1); else if (!strncmp($line, "url=", strlen("url="))) $url = substr($line, strlen("url="), -1); + else if (!strncmp($line, "mediapath=", strlen("mediapath="))) + $mediapath = substr($line, strlen("mediapath="), -1); + else if (!strncmp($line, "subdir=", strlen("subdir="))) + $subdir = substr($line, strlen("subdir="), -1); } fclose($infofile); - return array($type, $name, $title, $desc, $mode, $category, $url); + return array($type, $name, $title, $desc, $mode, $category, $url, $mediapath, $subdir); } function infostreamexist() |