663 |
Dawon |
1 |
<html> |
|
|
2 |
<head> |
|
|
3 |
|
|
|
4 |
<title></title> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
|
|
|
8 |
<?php |
|
|
9 |
/* KONFIGURACE */ |
665 |
Dawon |
10 |
$path = '/var/www/Web'; |
664 |
Dawon |
11 |
$www = 'http://www.mlab.cz'; |
666 |
Dawon |
12 |
$folder = '/../Modules'; |
667 |
Dawon |
13 |
/*$img = 'preview.jpg';*/ |
670 |
Dawon |
14 |
$info = 'ProjectInfo.xml1'; |
663 |
Dawon |
15 |
|
|
|
16 |
/* KONEC KONFIGURACE */ |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
$adresar = opendir($path.$folder); |
|
|
24 |
while ($soubor = readdir($adresar)){ |
671 |
Dawon |
25 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
663 |
Dawon |
26 |
|
|
|
27 |
$img = $soubor."_Small.jpg"; |
|
|
28 |
|
668 |
Dawon |
29 |
|
663 |
Dawon |
30 |
?> |
|
|
31 |
<table border=0> |
673 |
Dawon |
32 |
<tr><td><b><?php echo $soubor; ?></b></td></tr> |
668 |
Dawon |
33 |
<?php |
|
|
34 |
|
|
|
35 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
|
|
36 |
|
675 |
Dawon |
37 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; } |
674 |
Dawon |
38 |
if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
676 |
Dawon |
39 |
echo "<tr><td>\n"; |
674 |
Dawon |
40 |
include $path.$folder.'/'.$soubor."/".$info; |
|
|
41 |
echo "\n</td></tr>\n"; |
|
|
42 |
} |
663 |
Dawon |
43 |
|
668 |
Dawon |
44 |
} else { |
|
|
45 |
?> |
|
|
46 |
<tr><td> |
|
|
47 |
<?php |
663 |
Dawon |
48 |
|
|
|
49 |
|
668 |
Dawon |
50 |
$adresar1 = opendir($path.$folder."/".$soubor); |
|
|
51 |
while ($soubor1 = readdir($adresar1)){ |
671 |
Dawon |
52 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
668 |
Dawon |
53 |
|
|
|
54 |
$img = $soubor1."_Small.jpg"; |
|
|
55 |
?> |
|
|
56 |
<table border=0> |
|
|
57 |
<tr><td><?php echo $soubor1; ?></td></tr> |
674 |
Dawon |
58 |
<?php |
|
|
59 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
|
|
60 |
?> |
672 |
Dawon |
61 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr> |
674 |
Dawon |
62 |
<?php |
|
|
63 |
} |
|
|
64 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
|
|
65 |
echo "<tr><td>\n"; |
|
|
66 |
include $path.$folder.'/'.$soubor."/".$soubor1."/".$info; |
|
|
67 |
echo "\n</td></tr>\n"; |
675 |
Dawon |
68 |
} |
674 |
Dawon |
69 |
?> |
668 |
Dawon |
70 |
</table> |
|
|
71 |
</td></tr> |
|
|
72 |
<?php |
669 |
Dawon |
73 |
}} |
668 |
Dawon |
74 |
} |
|
|
75 |
|
|
|
76 |
?> |
|
|
77 |
</table> |
|
|
78 |
|
|
|
79 |
<?php |
|
|
80 |
|
|
|
81 |
|
663 |
Dawon |
82 |
} |
|
|
83 |
} |
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
?> |
|
|
88 |
|
|
|
89 |
</body> |
|
|
90 |
</html> |