blob: c1c7135493e1d13bcddafe628255fd7070c7d57b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?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";
$path = $_REQUEST['path'];
$name = $_REQUEST['name'];
exec('rm playlist/*');
exec('echo > playlist/dummy.txt');
exec('ln -s ' .addcslashes(quotemeta($path), " &'") .'* playlist');
echo "<m3u>ok</m3u>\n";
echo "</status>\n";
?>
|