663 |
Dawon |
1 |
<html> |
|
|
2 |
<head> |
|
|
3 |
|
|
|
4 |
<title></title> |
|
|
5 |
</head> |
|
|
6 |
<body> |
|
|
7 |
|
683 |
Dawon |
8 |
<center> |
|
|
9 |
|
663 |
Dawon |
10 |
<?php |
|
|
11 |
/* KONFIGURACE */ |
665 |
Dawon |
12 |
$path = '/var/www/Web'; |
664 |
Dawon |
13 |
$www = 'http://www.mlab.cz'; |
666 |
Dawon |
14 |
$folder = '/../Modules'; |
667 |
Dawon |
15 |
/*$img = 'preview.jpg';*/ |
678 |
Dawon |
16 |
$info = 'ProjectInfo.xml'; |
663 |
Dawon |
17 |
|
|
|
18 |
/* KONEC KONFIGURACE */ |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
$adresar = opendir($path.$folder); |
|
|
26 |
while ($soubor = readdir($adresar)){ |
671 |
Dawon |
27 |
if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { |
677 |
Dawon |
28 |
$img = $soubor."_Small.jpg"; |
663 |
Dawon |
29 |
|
|
|
30 |
?> |
|
|
31 |
<table border=0> |
673 |
Dawon |
32 |
<tr><td><b><?php echo $soubor; ?></b></td></tr> |
668 |
Dawon |
33 |
<?php |
|
|
34 |
|
677 |
Dawon |
35 |
if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { |
|
|
36 |
if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<tr><td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\" width=\"150\"></td></tr>\n"; } |
|
|
37 |
if (file_exists($path.$folder.'/'.$soubor."/".$info)) { |
|
|
38 |
echo "<tr><td>\n"; |
|
|
39 |
xml_parse ($path.$folder.'/'.$soubor."/".$info); |
|
|
40 |
echo "\n</td></tr>\n"; |
|
|
41 |
} |
668 |
Dawon |
42 |
|
677 |
Dawon |
43 |
} else { |
663 |
Dawon |
44 |
|
668 |
Dawon |
45 |
?> |
|
|
46 |
<tr><td> |
|
|
47 |
<?php |
663 |
Dawon |
48 |
|
677 |
Dawon |
49 |
$adresar1 = opendir($path.$folder."/".$soubor); |
|
|
50 |
while ($soubor1 = readdir($adresar1)){ |
|
|
51 |
if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { |
|
|
52 |
$img = $soubor1."_Small.jpg"; |
663 |
Dawon |
53 |
|
668 |
Dawon |
54 |
?> |
684 |
Dawon |
55 |
<table style="border: 1px solid #000;" color="EEFFEE" border=0> |
674 |
Dawon |
56 |
<?php |
687 |
Dawon |
57 |
/*<tr><td colspan="2"><center><?php echo $soubor1; ?></center></td></tr>*/ |
|
|
58 |
|
677 |
Dawon |
59 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
674 |
Dawon |
60 |
?> |
685 |
Dawon |
61 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> |
674 |
Dawon |
62 |
<?php |
677 |
Dawon |
63 |
} |
|
|
64 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
688 |
Dawon |
65 |
echo "<td><center>".$soubor1."</center><br><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0> |
681 |
Dawon |
66 |
Chce to novej prohlíeè...</iframe>\n"; |
677 |
Dawon |
67 |
echo "\n</td></tr>\n"; |
|
|
68 |
} |
674 |
Dawon |
69 |
?> |
668 |
Dawon |
70 |
</table> |
|
|
71 |
</td></tr> |
|
|
72 |
<?php |
677 |
Dawon |
73 |
} |
|
|
74 |
} |
|
|
75 |
} |
668 |
Dawon |
76 |
|
|
|
77 |
?> |
|
|
78 |
</table> |
|
|
79 |
<?php |
663 |
Dawon |
80 |
} |
|
|
81 |
} |
|
|
82 |
?> |
|
|
83 |
|
683 |
Dawon |
84 |
</center> |
|
|
85 |
|
663 |
Dawon |
86 |
</body> |
|
|
87 |
</html> |