summaryrefslogtreecommitdiff
path: root/genplaylist.php
blob: e19cc7afbf527db5b53f98600b96db8312e77d93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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('ln -s ' .addcslashes(quotemeta($path), " &'") .'* playlist');

	echo "<m3u>ok</m3u>\n";

	echo "</status>\n";

?>