663 |
Dawon |
1 |
<html> |
|
|
2 |
<head> |
|
|
3 |
|
|
|
4 |
<title></title> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
|
|
|
8 |
<?php |
|
|
9 |
/* KONFIGURACE */ |
|
|
10 |
$path = '/var/www/html'; |
|
|
11 |
$www = 'http://dawon.eu'; |
|
|
12 |
$folder = '/mlab'; |
|
|
13 |
$img = 'preview.jpg'; |
|
|
14 |
$info = 'info.html'; |
|
|
15 |
|
|
|
16 |
/* KONEC KONFIGURACE */ |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
$adresar = opendir($path.$folder); |
|
|
24 |
while ($soubor = readdir($adresar)){ |
|
|
25 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".")) { |
|
|
26 |
|
|
|
27 |
$img = $soubor."_Small.jpg"; |
|
|
28 |
|
|
|
29 |
?> |
|
|
30 |
<table border=0> |
|
|
31 |
<tr><td><?php echo $soubor; ?></td></tr> |
|
|
32 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>"></td></tr> |
|
|
33 |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr> |
|
|
34 |
</table> |
|
|
35 |
|
|
|
36 |
<?php |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
} |
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
?> |
|
|
45 |
|
|
|
46 |
</body> |
|
|
47 |
</html> |