Rev 767 Rev 769
Line 6... Line 6...
6 $dotpos = strrpos($thefile, "."); 6 $dotpos = strrpos($thefile, ".");
7 return strtolower(substr($thefile, $dotpos + 1)); 7 return strtolower(substr($thefile, $dotpos + 1));
8 } 8 }
9   9  
10 $path = "/var/www/Modules/".$HTTP_GET_VARS["pth"]."/"; 10 $path = "/var/www/Modules/".$HTTP_GET_VARS["pth"]."/";
-   11  
-   12 if (file_exists($path.$HTTP_GET_VARS["fname"]."_Small.jpg")) {
11 $filename = $HTTP_GET_VARS["fname"]."_Small.jpg"; 13 $filename = $HTTP_GET_VARS["fname"]."_Small.jpg";
-   14 } else {
-   15 $filename = "nopicture2.jpg";
-   16 $path = "/var/www/Web/PIC/";
-   17 }
12 // $thumbnail = thumbnail_name($filename); 18 // $thumbnail = thumbnail_name($filename);
13 $extension = file_type($filename); 19 $extension = file_type($filename);
14 $remove_thumb = false; 20 $remove_thumb = false;
15 $img_size = array(); 21 $img_size = array();
16 $width = "150"; 22 $width = "150";