Version 2.2.2

This commit is contained in:
Neo committed 2025-12-19 00:24:35 -08:00
1 parent 22f1b963ee
commit a3bb603c96
858 files changed
+479463 -188140

No files matched your search

+40 -22
View File
@@ -2,14 +2,22 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board
| Invision Power Board 2.2.2
| =============================================
| by Matthew Mecham
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Monday 05th of March 2007 10:10:55 PM
| Release: e3790216629e5a2aaf37070b32237f06
| Licence Info: http://www.invisionboard.com/?license
| http://www.ibresource.ru/license
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2005-10-10 14:03:20 +0100 (Mon, 10 Oct 2005) $
| > $Revision: 22 $
@@ -398,7 +406,17 @@ class class_image
else
{
$thumb = @imagecreatetruecolor( $im['img_width'], $im['img_height'] );
@imagecopyresampled($thumb, $image, 0, 0, 0, 0, $im['img_width'], $im['img_height'], $img_size[0], $img_size[1] );
if( $this->image_type == 'png' )
{
@imagealphablending( $thumb, FALSE );
@imagesavealpha( $thumb, TRUE );
$transparent = @imagecolorallocatealpha($thumb, 255, 255, 255, 127);
@imagefilledrectangle($thumb, 0, 0, $im['img_width'], $im['img_height'], $transparent);
}
@imagecopyresampled($thumb, $image, 0, 0, 0, 0, $im['img_width'], $im['img_height'], $img_size[0], $img_size[1] );
}
//-----------------------------------------------
@@ -416,26 +434,26 @@ class class_image
$this->out_file_name = preg_replace( "/^(.*)\..+?$/", "\\1", $this->in_file_name ) . '_thumb';
}
if ( function_exists( 'imagejpeg' ) )
{
$this->file_extension = 'jpg';
@imagejpeg( $thumb, $this->out_file_dir."/".$this->out_file_name.'.jpg' );
@chmod( $this->out_file_dir."/".$this->out_file_name.'.jpg', 0777 );
@imagedestroy( $thumb );
@imagedestroy( $image );
$return['thumb_location'] = $this->out_file_name.'.jpg';
return $return;
}
else if ( function_exists( 'imagepng' ) )
{
$this->file_extension = 'png';
@imagepng( $thumb, $this->out_file_dir."/".$this->out_file_name.'.png' );
@chmod( $this->out_file_dir."/".$this->out_file_name.'.png', 0777 );
@imagedestroy( $thumb );
@imagedestroy( $image );
$return['thumb_location'] = $this->out_file_name.'.png';
return $return;
}
if ( function_exists( 'imagepng' ) AND $this->image_type == 'png' )
{
$this->file_extension = 'png';
@imagepng( $thumb, $this->out_file_dir."/".$this->out_file_name.'.png' );
@chmod( $this->out_file_dir."/".$this->out_file_name.'.png', 0777 );
@imagedestroy( $thumb );
@imagedestroy( $image );
$return['thumb_location'] = $this->out_file_name.'.png';
return $return;
}
else if ( function_exists( 'imagejpeg' ) )
{
$this->file_extension = 'jpg';
@imagejpeg( $thumb, $this->out_file_dir."/".$this->out_file_name.'.jpg' );
@chmod( $this->out_file_dir."/".$this->out_file_name.'.jpg', 0777 );
@imagedestroy( $thumb );
@imagedestroy( $image );
$return['thumb_location'] = $this->out_file_name.'.jpg';
return $return;
}
else
{
//--------------------------------------