|
From: Florin C B. <ory...@us...> - 2013-03-19 02:01:51
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/includes In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv31576/includes Modified Files: album_image_class.php Log Message: Album Image Class Update to partialy support the other type of images Index: album_image_class.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/includes/album_image_class.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** album_image_class.php 18 Mar 2013 21:38:44 -0000 1.7 --- album_image_class.php 19 Mar 2013 02:01:49 -0000 1.8 *************** *** 67,71 **** case IMG_PNG: $read_function = 'imagecreatefrompng'; ! break; default: return false; --- 67,80 ---- case IMG_PNG: $read_function = 'imagecreatefrompng'; ! break; ! case IMG_XBM: [...1028 lines suppressed...] ! $b = ord($str[1]); ! $c = ord($str[2]); ! return $c*256*256 + $b*256 + $a; ! } ! function byte3($n) ! { ! return chr($n & 255) . chr(($n >> 8) & 255) . chr(($n >> 16) & 255); ! } ! function dword($n) ! { ! return pack("V", $n); } + function word($n) + { + return pack("v", $n); + } + ?> \ No newline at end of file |