Vergleich inc/functions_image.php - 1.6.4 - 1.6.9

  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 5297 2010-12-28 22:01:14Z Tomm $

 * $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 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";

			}
}


			}
}