37,42c37,42 < var $ERR = array( < "ERR00" => "Does not supported function for only one image!", < "ERR01" => "Source is not a GIF image!", < "ERR02" => "Unintelligible flag ", < "ERR03" => "Does not make animation from animated GIF source" < ); --- > var $ERR = Array ( > ERR00=>"Does not supported function for only one image!", > ERR01=>"Source is not a GIF image!", > ERR02=>"Unintelligible flag ", > ERR03=>"Does not make animation from animated GIF source", > ); 50c50 < public function __construct ( --- > function GIFEncoder ( 78,79c78,79 < for ( $j = ( 13 + 3 * ( 2 << ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) { < switch ( substr($this->BUF [ $i ],$j,1 ) ) { --- > for ( $j = ( 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) ), $k = TRUE; $k; $j++ ) { > switch ( $this->BUF [ $i ] { $j } ) { 107,108c107,108 < if ( ord ( substr($this->BUF [ 0 ],10,1) ) & 0x80 ) { < $cmap = 3 * ( 2 << ( ord ( substr($this->BUF [ 0 ],10,1) ) & 0x07 ) ); --- > if ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x80 ) { > $cmap = 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) ); 123c123 < $Locals_str = 13 + 3 * ( 2 << ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ) ); --- > $Locals_str = 13 + 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ); 128,129c128,129 < $Global_len = 2 << ( ord ( substr($this->BUF [ 0 ],10,1) ) & 0x07 ); < $Locals_len = 2 << ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ); --- > $Global_len = 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ); > $Locals_len = 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ); 132c132 < 3 * ( 2 << ( ord ( substr($this->BUF [ 0 ],10,1) ) & 0x07 ) ) ); --- > 3 * ( 2 << ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ) ) ); 134c134 < 3 * ( 2 << ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ) ) ); --- > 3 * ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ) ); 139,140c139,140 < if ( $this->COL > -1 && ord ( substr($this->BUF [ $i ],10,1) ) & 0x80 ) { < for ( $j = 0; $j < ( 2 << ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ) ); $j++ ) { --- > if ( $this->COL > -1 && ord ( $this->BUF [ $i ] { 10 } ) & 0x80 ) { > for ( $j = 0; $j < ( 2 << ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ) ); $j++ ) { 142,144c142,144 < ord ( substr($Locals_rgb, 3 * $j + 0,1) ) == ( ( $this->COL >> 16 ) & 0xFF ) && < ord ( substr($Locals_rgb, 3 * $j + 1,1) ) == ( ( $this->COL >> 8 ) & 0xFF ) && < ord ( substr($Locals_rgb, 3 * $j + 2,1) ) == ( ( $this->COL >> 0 ) & 0xFF ) --- > ord ( $Locals_rgb { 3 * $j + 0 } ) == ( ( $this->COL >> 16 ) & 0xFF ) && > ord ( $Locals_rgb { 3 * $j + 1 } ) == ( ( $this->COL >> 8 ) & 0xFF ) && > ord ( $Locals_rgb { 3 * $j + 2 } ) == ( ( $this->COL >> 0 ) & 0xFF ) 152c152 < switch ( $Locals_tmp[ 0 ] ) { --- > switch ( $Locals_tmp { 0 } ) { 162c162 < if ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x80 && $this->IMG > -1 ) { --- > if ( ord ( $this->BUF [ $i ] { 10 } ) & 0x80 && $this->IMG > -1 ) { 168c168 < $byte = ord ( substr($Locals_img,9,1) ); --- > $byte = ord ( $Locals_img { 9 } ); 171,172c171,172 < $byte |= ( ord ( substr($this->BUF [ 0 ],19,1) ) & 0x07 ); < $Locals_img[9] = chr ( $byte ); --- > $byte |= ( ord ( $this->BUF [ 0 ] { 10 } ) & 0x07 ); > $Locals_img { 9 } = chr ( $byte ); 177c177 < $byte = ord ( substr($Locals_img,9,1) ); --- > $byte = ord ( $Locals_img { 9 } ); 180,181c180,181 < $byte |= ( ord ( substr($this->BUF [ $i ],10,1) ) & 0x07 ); < $Locals_img[9] = chr ( $byte ); --- > $byte |= ( ord ( $this->BUF [ $i ] { 10 } ) & 0x07 ); > $Locals_img { 9 } = chr ( $byte ); 209,211c209,211 < substr($GlobalBlock, 3 * $i + 0,1) != substr($LocalBlock, 3 * $i + 0,1) || < substr($GlobalBlock, 3 * $i + 1,1) != substr($LocalBlock, 3 * $i + 1,1) || < substr($GlobalBlock, 3 * $i + 2,1) != substr($LocalBlock, 3 * $i + 2,1) --- > $GlobalBlock { 3 * $i + 0 } != $LocalBlock { 3 * $i + 0 } || > $GlobalBlock { 3 * $i + 1 } != $LocalBlock { 3 * $i + 1 } || > $GlobalBlock { 3 * $i + 2 } != $LocalBlock { 3 * $i + 2 }