Code Duplication    Length = 14-14 lines in 3 locations

admin/upload.php 1 location

@@ 108-121 (lines=14) @@
105
// Use a output buffering to load the image into a variable
106
ob_start();
107
// Get the image and create a thumbnail
108
switch ($FileType) {
109
    case "jpg":
110
        imagejpeg($new_img);
111
        break;
112
    case "png":
113
        imagepng($new_img);
114
        break;
115
    case "gif":
116
        imagegif($new_img);
117
        break;
118
    case "bmp":
119
        imagewbmp($new_img);
120
        break;
121
}
122
$imagevariable = ob_get_contents();
123
ob_end_clean();
124

i.php 1 location

@@ 64-77 (lines=14) @@
61
62
ob_start();
63
// Get the image and create a thumbnail
64
switch ($FileType) {
65
    case "jpg":
66
        imagejpeg($new_img);
67
        break;
68
    case "png":
69
        imagepng($new_img);
70
        break;
71
    case "gif":
72
        imagegif($new_img);
73
        break;
74
    case "bmp":
75
        imagewbmp($new_img);
76
        break;
77
}
78
$imagevariable = ob_get_contents();
79
ob_end_clean();
80

img.php 1 location

@@ 76-89 (lines=14) @@
73
74
ob_start();
75
// Get the image and create a thumbnail
76
switch ($FileType) {
77
    case "jpg":
78
        imagejpeg($new_img);
79
        break;
80
    case "png":
81
        imagepng($new_img);
82
        break;
83
    case "gif":
84
        imagegif($new_img);
85
        break;
86
    case "bmp":
87
        imagewbmp($new_img);
88
        break;
89
}
90
$imagevariable = ob_get_contents();
91
ob_end_clean();
92