Commit | Line | Data |
---|---|---|
8de51304 H |
1 | <?php\r |
2 | \r | |
3 | function dir_m3u($dir) {\r | |
4 | $files=opendir ($dir); \r | |
5 | while (false!==($file = readdir($files))) \r | |
6 | { \r | |
7 | if ($file != "." && $file != "..") \r | |
8 | {\r | |
9 | echo "$dir$file\">$file</a><br />\n"; \r | |
10 | $num = ($num + 1);\r | |
11 | }\r | |
12 | }\r | |
13 | closedir($files); \r | |
14 | }\r | |
15 | \r | |
16 | $dir = ".";\r | |
17 | if(isset($_GET["dir"])) $dir = $_GET["dir"];\r | |
18 | \r |