Rev 755 Rev 756
Line 109... Line 109...
109 echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; 109 echo "<tr><td>Preview</td><td>Name</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n";
110 } else { 110 } else {
111 echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n"; 111 echo "<tr><td>Náhled</td><td>Název</td><td>PDF</td><td>WebSVN</td><td>Info</td></tr>\n";
112 } 112 }
113   113  
-   114 if (isset($HTTP_GET_VARS["file"]) {
-   115 include "modules.inc.php";
-   116 } else {
114 $adresar = opendir($path.$folder); 117 $adresar = opendir($path.$folder);
115 while ($soubor = readdir($adresar)){ 118 while ($soubor = readdir($adresar)){
116 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) { 119 if ((Is_Dir($path.$folder."/".$soubor)) && (substr($soubor,0,1) <> ".") && (substr($soubor,0,1) <> "!")) {
117 $img = $soubor."_Small.jpg"; 120 $img = $soubor."_Small.jpg";
118   121  
119 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) { 122 if (file_exists($path.$folder."/".$soubor."/CAM_AMA")) {
120 echo "<tr>"; 123 echo "<tr>";
121 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\"></td>\n"; } 124 if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\"></td>\n"; }
122 else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; } 125 else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }
123 if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) { 126 if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) {
124 echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n"; 127 echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n";
125 } else { echo "<td><b>".$soubor."</b></td>\n"; } 128 } else { echo "<td><b>".$soubor."</b></td>\n"; }
126 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { 129 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) {
127 echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n"; 130 echo "\n<td><a href=\"".$www.$folder."/".$soubor."/DOC/".$soubor.".".$lang.".pdf\">PDF</a></td>\n";
128 } else { echo "\n<td>-</td>\n"; } 131 } else { echo "\n<td>-</td>\n"; }
129 // if (file_exists($path.$folder.'/'.$soubor."/".$info)) { 132 // if (file_exists($path.$folder.'/'.$soubor."/".$info)) {
130 // echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n"; 133 // echo "<td><A HREF=".$www.$folder.'/'.$soubor."/".$info.">XML</A></td>\n";
131 // } else { echo "\n<td>-</td>\n"; } 134 // } else { echo "\n<td>-</td>\n"; }
132 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n"; 135 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n";
133 if (file_exists($path.$folder.'/'.$soubor."/".$info1)) { 136 if (file_exists($path.$folder.'/'.$soubor."/".$info1)) {
134 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r"); 137 $fp = FOpen ($path.$folder.'/'.$soubor."/".$info1, "r");
135 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1)); 138 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$info1));
136 FClose ($fp); 139 FClose ($fp);
137 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; 140 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n";
138 } else { echo "\n<td><i>No description available!!</i></td>\n"; } 141 } else { echo "\n<td><i>No description available!!</i></td>\n"; }
139 echo "</tr>\n\n"; 142 echo "</tr>\n\n";
140   -  
141   -  
142 } else { 143 } else {
143   -  
144   -  
145 echo "<tr>\n"; -  
146 $adresar1 = opendir($path.$folder."/".$soubor); -  
147 while ($soubor1 = readdir($adresar1)){ -  
148 if ((Is_Dir($path.$folder."/".$soubor."/".$soubor1)) && (substr($soubor1,0,1) <> ".") && (substr($soubor1,0,1) <> "!")) { -  
149 $img = $soubor1."_Small.jpg"; -  
150   -  
151   -  
152   -  
153 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$img)) { -  
154 echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$soubor1."/".$img."\"></td>\n"; -  
155 } else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; } -  
156   -  
157 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) { -  
158 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor."/<b>".$soubor1."</b></a></td>\n"; 144 echo "<tr>\n<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n<td><a href=\"modules.php?lang=".$lang."&file=".$soubor."\">".$soubor."</a></td>\n";
159 } else { echo "<td>".$soubor."/<b>".$soubor1."</b></td>\n"; } -  
160 if (file_exists($path.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf")) { -  
161 echo "<td><a href=\"".$www.$folder."/".$soubor."/".$soubor1."/DOC/".$soubor1.".".$lang.".pdf\">PDF</a></td>\n"; -  
162 } else { echo "\n<td>-</td>\n"; } -  
163 // if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info)) { -  
164 // echo "<td><a href=".$www.$folder.'/'.$soubor."/".$soubor1."/".$info.">XML</a></td>\n"; -  
165 // } else { echo "<td>-</td>\n"; } -  
166 echo "<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/".$soubor1."/\">WebSVN</a></td>\n"; 145 echo "<td>-</td>\n<td><a href=\"http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=/Modules/".$soubor."/\">WebSVN</a></td>\n<td><i>No description available!!</i></td></tr>\n\n";
167 if (file_exists($path.$folder.'/'.$soubor."/".$soubor1."/".$info1)) { -  
168 $fp = FOpen ($path.$folder.'/'.$soubor."/".$soubor1."/".$info1, "r"); -  
169 $data = FRead ($fp, FileSize ($path.$folder.'/'.$soubor."/".$soubor1."/".$info1)); -  
170 FClose ($fp); -  
171 echo "<td>".wordwrap($data, 50, "<br>")."</td>\n"; -  
172 } else { echo "\n<td><i>No description available!!</i></td>\n"; } -  
173 echo "</tr>\n\n"; -  
174 } -  
175 } 146 }
176 } 147 }
177 } 148 }
178 } 149 }
179 ?> 150 ?>