summaryrefslogtreecommitdiff
path: root/genplaylist.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-25 00:47:43 +0100
committerTheTroll <trolldev@gmail.com>2010-02-25 00:47:43 +0100
commitddb8a06c277c789dc83a9e90388353092f47ebc1 (patch)
tree6f6ea87053a61ac8a1c1f12c6e9d9fd0480816ab /genplaylist.php
parent0f2b4641c3c8f4fbb9f4d48d34a6cd06fc64e13b (diff)
downloadistreamdev-ddb8a06c277c789dc83a9e90388353092f47ebc1.tar.gz
istreamdev-ddb8a06c277c789dc83a9e90388353092f47ebc1.tar.bz2
Fixed pl generation
Diffstat (limited to 'genplaylist.php')
-rwxr-xr-xgenplaylist.php9
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);