/Web/modules.inc.php
11,7 → 11,7
echo "<td><img src=\"".$www.$folder.'/'.$HTTP_GET_VARS["file"]."/".$soubor1."/".$img."\"></td>\n";
} else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }*/
 
echo "<td><img src=\"thumb.php?pth=".$soubor."/".$soubor1."&fname=".$soubor1."\"></td>\n";
echo "<td><img src=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\"></td>\n";
 
if (file_exists($path.$folder."/".$HTTP_GET_VARS["file"]."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) {
echo "<td><a href=\"".$www.$folder."/".$HTTP_GET_VARS["file"]."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor1."</a></td>\n";
/Web/thumb.php
8,7 → 8,13
}
 
$path = "/var/www/Modules/".$HTTP_GET_VARS["pth"]."/";
$filename = $HTTP_GET_VARS["fname"]."_Small.jpg";
 
if (file_exists($path.$HTTP_GET_VARS["fname"]."_Small.jpg")) {
$filename = $HTTP_GET_VARS["fname"]."_Small.jpg";
} else {
$filename = "nopicture2.jpg";
$path = "/var/www/Web/PIC/";
}
// $thumbnail = thumbnail_name($filename);
$extension = file_type($filename);
$remove_thumb = false;