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