Błąd: Parse error: syntax error, unexpected '$image' (T_VARIABLE) on line 5
else if ( ini_get( "allow_url_fopen" ) == 1
) {
if ( !copy( $thumbnail_link, $upload_path.$thumb_name ) ) {
list( $img_width, $img_height, $img_type, $img_attr ) = image $image = "";
switch ( $img_type )
{
case 1 :
$image = imagecreatefromgif( $thumbnail_link );
$ext = ".gif";
break;
case 2 :
$image = imagecreatefromjpeg( $thumbnail_link );
$ext = ".jpg";
break;
case 3 :
$image = imagecreatefrompng( $thumbnail_link );
$ext = ".png";
}
$resource = @imagecreatetruecolor( $img_width, $img_height );
if ( function_exists( "imageantialias" ) )
{
@imageantialias( $resource, true );
}
@imagecopyresampled( $resource, $image, 0, 0, 0, 0, $img_width, $img_height, $img_width, $img_height );
@imagedestroy( $image );
}
$thumb_name = $video_uniq_id."-1".$ext;
$img_type = 2;
default :
switch ( $img_type )
{
case 1 :
@imagegif( $resource, $upload_path.$thumb_name );
break;
case 2 :
@imagejpeg( $resource, $upload_path.$thumb_name );
break;
case 3 :
}
@imagepng( $resource, $upload_path.$thumb_name );
break;
if ( $resource === "" )
{
$error = 1;
}
}
return $upload_path.$thumb_name;