Vergleich inc/functions_image.php - 1.6.0 - 1.6.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: functions_image.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

/**

 */

/**

Zeile 33Zeile 33
	$imgtype = $imgdesc[2];
$imgattr = $imgdesc[3];
$imgbits = $imgdesc['bits'];

	$imgtype = $imgdesc[2];
$imgattr = $imgdesc[3];
$imgbits = $imgdesc['bits'];

	$imgchan = $imdesc['channels'];

	$imgchan = $imgdesc['channels'];

	
if($imgwidth == 0 || $imgheight == 0)
{

	
if($imgwidth == 0 || $imgheight == 0)
{

Zeile 96Zeile 96
			// Save Alpha...
imagesavealpha($thumbim, true);
}

			// Save Alpha...
imagesavealpha($thumbim, true);
}

		elseif($imgtype == 2)

		elseif($imgtype == 1)

		{
// Transparent GIF?
$trans_color = imagecolortransparent($im);

		{
// Transparent GIF?
$trans_color = imagecolortransparent($im);

Zeile 141Zeile 141
				@imagepng($thumbim, $path."/".$filename);
break;
}

				@imagepng($thumbim, $path."/".$filename);
break;
}

		@my_chmod($path."/".$filename, '0666');

		@my_chmod($path."/".$filename, '0644');

		@imagedestroy($thumbim);
$thumb['code'] = 1;
$thumb['filename'] = $filename;

		@imagedestroy($thumbim);
$thumb['code'] = 1;
$thumb['filename'] = $filename;

Zeile 204Zeile 204
			switch($matches[2])
{
case "k":

			switch($matches[2])
{
case "k":

					$memory_limit = (($memory_limit+$thumbnail_memory) / 1024)."K";

					$memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1024))."K";

					break;
case "m":

					break;
case "m":

					$memory_limit = (($memory_limit+$thumbnail_memory) / 1048576)."M";

					$memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1048576))."M";

					break;
case "g":

					break;
case "g":

					$memory_limit = (($memory_limit+$thumbnail_memory) / 1073741824)."G";

					$memory_limit = ceil((($memory_limit+$thumbnail_memory) / 1073741824))."G";

			}
}


			}
}