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> |
685 |
Dawon |
56 |
<tr><td colspan="2"><?php echo $soubor1; ?></td></tr> |
674 |
Dawon |
57 |
<?php |
677 |
Dawon |
58 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { |
674 |
Dawon |
59 |
?> |
685 |
Dawon |
60 |
<tr><td><img src="<?php echo $www.$folder.'/'.$soubor."/".$soubor1."/".$img; ?>" width="150"></td> |
674 |
Dawon |
61 |
<?php |
677 |
Dawon |
62 |
} |
|
|
63 |
if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { |
685 |
Dawon |
64 |
echo "<td><iframe src=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info." name=hlavni scrolling=AUTO align=middle frameborder=0> |
681 |
Dawon |
65 |
Chce to novej prohlíeè...</iframe>\n"; |
677 |
Dawon |
66 |
echo "\n</td></tr>\n"; |
|
|
67 |
} |
674 |
Dawon |
68 |
?> |
668 |
Dawon |
69 |
</table> |
|
|
70 |
</td></tr> |
|
|
71 |
<?php |
677 |
Dawon |
72 |
} |
|
|
73 |
} |
|
|
74 |
} |
668 |
Dawon |
75 |
|
|
|
76 |
?> |
|
|
77 |
</table> |
|
|
78 |
<?php |
663 |
Dawon |
79 |
} |
|
|
80 |
} |
|
|
81 |
?> |
|
|
82 |
|
683 |
Dawon |
83 |
</center> |
|
|
84 |
|
663 |
Dawon |
85 |
</body> |
|
|
86 |
</html> |