o: ActiveSupport::Cache::Entry :@compressedF: @value"Ñ:"Ë:
Web/modules.inc.php
11 11
            echo "<td><img src=\"".$www.$folder.'/'.$HTTP_GET_VARS["file"]."/".$soubor1."/".$img."\"></td>\n";
12 12
          } else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }*/
13 13

  
14
          echo "<td><img src=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\"></td>\n";
14
          if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><A HREF=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\" TARGET=\"_blank\"><img src=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\" border=\"0\"></a></td>\n";
15
          } else { echo "<td><img src=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\"></td>\n"; }
15 16

  
17
//          echo "<td><img src=\"thumb.php?pth=".$HTTP_GET_VARS["file"]."/".$soubor1."&fname=".$soubor1."\"></td>\n";
18

  
16 19
          if (file_exists($path.$folder."/".$HTTP_GET_VARS["file"]."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html")) {
17 20
            echo "<td><a href=\"".$www.$folder."/".$HTTP_GET_VARS["file"]."/".$soubor1."/DOC/HTML/".$soubor1.".".$lang.".html\">".$soubor1."</a></td>\n";
18 21
          } else { echo "<td>".$soubor."<b>".$soubor1."</b></td>\n"; }
Web/image.php
1
<?php
2
header("Content-type: image/jpeg");    
3

  
4
        function file_type($file){
5
                $path_chunks = explode("/", $file);
6
                $thefile     = $path_chunks[count($path_chunks) - 1];
7
                $dotpos      = strrpos($thefile, ".");
8
                return strtolower(substr($thefile, $dotpos + 1));
9
        }
10

  
11
                $path         = "/var/www/Modules/".$HTTP_GET_VARS["pth"]."/";
12
                $filename     = $HTTP_GET_VARS["fname"]."_Small.jpg";
13
        //      $thumbnail    = thumbnail_name($filename);
14
                $extension    = file_type($filename);
15
                $remove_thumb = false;
16

  
17

  
18
                if(in_array($extension, array('png', 'gif', 'jpg', 'jpeg'))){
19
                        if(!$img_size = getimagesize($path.$filename)){
20
                                $remove_thumb = true;
21
                        }
22
                        if($extension == 'gif'){
23
                                if(!$image = imagecreatefromgif($path.$filename)){
24
                                        $remove_thumb = true;
25
                                }
26
                        }elseif($extension == 'png'){
27
                                if(!$image = imagecreatefrompng($path.$filename)){
28
                                        $remove_thumb = true;
29
                                }
30
                        }elseif($extension == 'jpg' || $extension == 'jpeg'){
31
                                if(!$image = imagecreatefromjpeg($path.$filename)){
32
                                        $remove_thumb = true;
33
                                }
34
                        }
35
                        if($remove_thumb == false){
36

  
37
                                $black = ImageColorAllocate($thumb, 0, 0, 0);
38
                                ImageString ($thumb, 3, $thumb_width-80, $thumb_height-15, "www.mlab.cz", $black);
39
                                imagejpeg($image);
40

  
41
                        }       
42
                }else{
43
                        $remove_thumb = true;
44
                }
45

  
46
  }
47

  
48
?>
Web/modules.php
119 119
        echo "<tr>";
120 120
/*        if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><img src=\"".$www.$folder.'/'.$soubor."/".$img."\"></td>\n"; }
121 121
         else { echo "<td><img src=\"http://www.mlab.cz/Web/PIC/nopicture2.jpg\"></td>\n"; }*/
122
        echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n";
122
        if (file_exists($path.$folder.'/'.$soubor."/".$img)) { echo "<td><A HREF=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" TARGET=\"_blank\"><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\" border=\"0\"></a></td>\n";
123
        } else { echo "<td><img src=\"thumb.php?pth=".$soubor."&fname=".$soubor."\"></td>\n"; }
123 124
        if (file_exists($path.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html")) {
124 125
          echo "<td><b><a href=\"".$www.$folder."/".$soubor."/DOC/HTML/".$soubor.".".$lang.".html\">".$soubor."</a></b></td>\n";
125 126
        } else { echo "<td><b>".$soubor."</b></td>\n"; }
:@created_atf1424817214.003777=â:@expires_in0