diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-25 00:47:43 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-25 00:47:43 +0100 |
commit | ddb8a06c277c789dc83a9e90388353092f47ebc1 (patch) | |
tree | 6f6ea87053a61ac8a1c1f12c6e9d9fd0480816ab /genplaylist.php | |
parent | 0f2b4641c3c8f4fbb9f4d48d34a6cd06fc64e13b (diff) | |
download | istreamdev-ddb8a06c277c789dc83a9e90388353092f47ebc1.tar.gz istreamdev-ddb8a06c277c789dc83a9e90388353092f47ebc1.tar.bz2 |
Fixed pl generation
Diffstat (limited to 'genplaylist.php')
-rwxr-xr-x | genplaylist.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/genplaylist.php b/genplaylist.php index 7886ecb..2df6270 100755 --- a/genplaylist.php +++ b/genplaylist.php @@ -1,4 +1,11 @@ <?php + + if (file_exists('config.php')) + include ('config.php'); + else + include ('config_default.php'); + include ('includes/inc_files.php'); + header('Content-Type: text/xml'); echo "<?xml version=\"1.0\"?>\n"; echo "<status>\n"; @@ -14,14 +21,12 @@ echo "<m3u>error</m3u>"; else { - $found = 0; while ($medianame = readdir($dir_handle)) if (mediagettype($path .$medianame) == 2) $medianame_array[] = $medianame; if ($medianame_array[0]) { - // Alphabetical sorting sort($medianame_array); |