Rev 784 | Rev 786 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <?php |
1 | <?php |
2 | header("Content-type: image/jpeg"); |
2 | header("Content-type: image/jpeg"); |
3 | |
3 | |
4 | function file_type($file){ |
4 | function file_type($file){ |
5 | $path_chunks = explode("/", $file); |
5 | $path_chunks = explode("/", $file); |
6 | $thefile = $path_chunks[count($path_chunks) - 1]; |
6 | $thefile = $path_chunks[count($path_chunks) - 1]; |
7 | $dotpos = strrpos($thefile, "."); |
7 | $dotpos = strrpos($thefile, "."); |
Line 41... | Line 41... | ||
41 | } |
41 | } |
42 | }else{ |
42 | }else{ |
43 | $remove_thumb = true; |
43 | $remove_thumb = true; |
44 | } |
44 | } |
45 | |
45 | |
46 | } |
46 | |
47 | |
47 | |
48 | ?> |
48 | ?> |