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 = 'ProjectInfo.xml'; |
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 |
?> |
30 |
<table border=0> |
31 |
<table border=0> |
31 |
<tr><td><?php echo $soubor; ?></td></tr> |
32 |
<tr><td><?php echo $soubor; ?></td></tr> |
- |
|
33 |
<?php |
- |
|
34 |
|
- |
|
35 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
- |
|
36 |
?> |
- |
|
37 |
|
32 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>"></td></tr> |
38 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$img; ?>"></td></tr> |
33 |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr> |
39 |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$info; ?></td></tr> |
- |
|
40 |
|
- |
|
41 |
|
- |
|
42 |
<?php |
- |
|
43 |
} else { |
- |
|
44 |
?> |
- |
|
45 |
<tr><td> |
- |
|
46 |
<?php |
- |
|
47 |
|
- |
|
48 |
|
- |
|
49 |
$adresar1 = opendir($path.$folder."/".$soubor); |
- |
|
50 |
while ($soubor1 = readdir($adresar1)){ |
- |
|
51 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".")) { |
- |
|
52 |
|
- |
|
53 |
$img = $soubor1."_Small.jpg"; |
- |
|
54 |
?> |
- |
|
55 |
<table border=0> |
- |
|
56 |
<tr><td><?php echo $soubor1; ?></td></tr> |
- |
|
57 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>"></td></tr> |
- |
|
58 |
<tr><td><?php include $path.$folder.'/'.$soubor."/".$soubor1."/".$info; ?></td></tr> |
34 |
</table> |
59 |
</table> |
- |
|
60 |
</td></tr> |
- |
|
61 |
<?php |
- |
|
62 |
} |
- |
|
63 |
|
- |
|
64 |
?> |
- |
|
65 |
</table> |
35 |
|
66 |
|
36 |
<?php |
67 |
<?php |
37 |
|
68 |
|
38 |
|
69 |
|
39 |
} |
70 |
} |
40 |
} |
71 |
} |
41 |
|
72 |
|
42 |
|
73 |
|
43 |
|
74 |
|
44 |
?> |
75 |
?> |
45 |
|
76 |
|
46 |
</body> |
77 |
</body> |
47 |
</html> |
78 |
</html> |