Vergleich inc/functions_upload.php - 1.2.1 - 1.2.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id: functions_upload.php 2163 2006-08-30 05:53:05Z chris $

 * $Id: functions_upload.php 2423 2006-11-20 00:16:03Z CraKteR $

 */



 */



Zeile 152Zeile 152
			$img_type =  1;
break;
case "image/jpeg":

			$img_type =  1;
break;
case "image/jpeg":

 
		case "image/x-jpg":

		case "image/x-jpeg":
case "image/pjpeg":
$img_type = 2;

		case "image/x-jpeg":
case "image/pjpeg":
$img_type = 2;

Zeile 326Zeile 327
				$img_type =  1;
break;
case "image/jpeg":

				$img_type =  1;
break;
case "image/jpeg":

 
			case "image/x-jpg":

			case "image/x-jpeg":
case "image/pjpeg":
$img_type = 2;

			case "image/x-jpeg":
case "image/pjpeg":
$img_type = 2;

Zeile 345Zeile 347
			@unlink($mybb->settings['uploadspath']."/".$filename);
$ret['error'] = $lang->error_uploadfailed;
return $ret;

			@unlink($mybb->settings['uploadspath']."/".$filename);
$ret['error'] = $lang->error_uploadfailed;
return $ret;

		}	

		}		

		require_once MYBB_ROOT."inc/functions_image.php";
$thumbname = str_replace(".attach", "_thumb.$ext", $filename);
$thumbnail = generate_thumbnail($mybb->settings['uploadspath']."/".$filename, $mybb->settings['uploadspath'], $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);

		require_once MYBB_ROOT."inc/functions_image.php";
$thumbname = str_replace(".attach", "_thumb.$ext", $filename);
$thumbnail = generate_thumbnail($mybb->settings['uploadspath']."/".$filename, $mybb->settings['uploadspath'], $thumbname, $mybb->settings['attachthumbh'], $mybb->settings['attachthumbw']);