Initial commit
[2ch-be.git] / dev-test / artist / a_list.php
bloba24fc0b696dc5ad424256fd1b04f0e6a084ce990
1 <?php
2 function listFolderFiles($dir){
3 $ffs = scandir($dir);
4 /*echo '<ol>';*/
5 foreach($ffs as $ff){
6 if($ff != '.' && $ff != '..' && $ff != 'del'){
7 /*echo '<li>'.$ff;*/
8 if (filter_var($ff, FILTER_VALIDATE_EMAIL)) {
9 /*echo $ff."/info.txt";
10 if (file_exists($ff."/info.txt")) {*/
11 $f = substr($ff, 0, 1);
12 $s = substr($ff, 1, 1);
13 $__tmp = file(ADBD_PATH.$f."/".$s."/".$ff."/"."info.txt");
14 /*$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";*/
15 /*echo $actual_link."<br>";*/
16 if ($ff != "xerxes01@me.com") {
17 echo "<li><a href=\"http://be.2ch.net/artist/artist.php?alist&v=".$__tmp[0]."\">".$ff."</a></li>";
19 /*}*/
21 if(is_dir($dir.'/'.$ff)) listFolderFiles($dir.'/'.$ff);
22 /*echo '</li>';*/
25 /* echo '</ol>';*/
28 $listdir = "/home/adb";
29 listFolderFiles($listdir);