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';*/ |
678 |
Dawon |
14 |
$info = 'ProjectInfo.xml'; |
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) <> "!")) { |
677 |
Dawon |
26 |
$img = $soubor."_Small.jpg"; |
663 |
Dawon |
27 |
|
|
|
28 |
?> |
|
|
29 |
<table border=0> |
673 |
Dawon |
30 |
<tr><td><b><?php echo $soubor; ?></b></td></tr> |
668 |
Dawon |
31 |
<?php |
|
|
32 |
|
677 |
Dawon |
33 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
|
|
34 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; } |
|
|
35 |
if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
|
|
36 |
echo "<tr><td>\n"; |
|
|
37 |
xml_parse ($path.$folder.'/'.$soubor."/".$info); |
|
|
38 |
echo "\n</td></tr>\n"; |
|
|
39 |
} |
668 |
Dawon |
40 |
|
677 |
Dawon |
41 |
} else { |
663 |
Dawon |
42 |
|
668 |
Dawon |
43 |
?> |
|
|
44 |
<tr><td> |
|
|
45 |
<?php |
663 |
Dawon |
46 |
|
677 |
Dawon |
47 |
$adresar1 = opendir($path.$folder."/".$soubor); |
|
|
48 |
while ($soubor1 = readdir($adresar1)){ |
|
|
49 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
|
|
50 |
$img = $soubor1."_Small.jpg"; |
663 |
Dawon |
51 |
|
668 |
Dawon |
52 |
?> |
|
|
53 |
<table border=0> |
|
|
54 |
<tr><td><?php echo $soubor1; ?></td></tr> |
674 |
Dawon |
55 |
<?php |
677 |
Dawon |
56 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
674 |
Dawon |
57 |
?> |
672 |
Dawon |
58 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td></tr> |
674 |
Dawon |
59 |
<?php |
677 |
Dawon |
60 |
} |
|
|
61 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
|
|
62 |
echo "<tr><td>\n"; |
680 |
Dawon |
63 |
echo ReadFile ($path.$folder.'/'.$soubor."/".$soubor1."/".$info); |
677 |
Dawon |
64 |
echo "\n</td></tr>\n"; |
|
|
65 |
} |
674 |
Dawon |
66 |
?> |
668 |
Dawon |
67 |
</table> |
|
|
68 |
</td></tr> |
|
|
69 |
<?php |
677 |
Dawon |
70 |
} |
|
|
71 |
} |
|
|
72 |
} |
668 |
Dawon |
73 |
|
|
|
74 |
?> |
|
|
75 |
</table> |
|
|
76 |
<?php |
663 |
Dawon |
77 |
} |
|
|
78 |
} |
|
|
79 |
?> |
|
|
80 |
|
|
|
81 |
</body> |
|
|
82 |
</html> |