|
Variables |
|
| $link = getdb() |
|
global | $config |
|
| $config [thumbnail_width] = "140" |
|
| $shrinkage = 1 |
|
| $fp = fopen("$temp/$imagename", "r") |
|
| $image = fread($fp, filesize("$temp/$imagename")) |
|
| $imagedata = getimagesize("$temp/$imagename") |
|
| $imagewidth = $imagedata[0] |
|
| $imageheight = $imagedata[1] |
|
| $imagetype = $imagedata[2] |
|
| $dst_img = imagecreate($dest_width,$dest_height) |
|
| $dst_img = imagecreate($dest_width, $dest_height) |
|
| $fp = fopen("$temp/$thumbname" , "r") |
|
| $thumb_size = filesize("$temp/$thumbname") |
|
| $thumb = addslashes(fread($fp, $thumb_size)) |
|
| $query = "UPDATE ".$table_prefix."tbl_Files set thumb='$thumb', thumb_size='$thumb_size', thumb_filetype='$image_row[filetype]' where id_files = '$image_row[id_files]'" |