22 if(is_dir($sPluginsPath)) {
24 while(
false !== ($sPlugin = readdir($rDirHandle)))
25 if(strpos($sPlugin,
".swf") === strlen($sPlugin)-4)
27 closedir($rDirHandle);
76 $rHandle = fopen($sFileName,
"rt");
77 $sContents = fread($rHandle, filesize($sFileName)) ;
87 $aImageData = explode(
',', $sData);
88 $iLength = count($aImageData);
89 for($i=0; $i<$iLength; $i++)
90 $aImageData[$i] = base_convert($aImageData[$i], 36, 10);
91 if($iLength != $iWidth * $iHeight) {
95 if(!function_exists(
"imagecreatetruecolor")) {
101 $rImage = @imagecreatetruecolor($iWidth, $iHeight);
102 for($i=0, $y=0; $y<$iHeight; $y++ )
103 for($x=0; $x<$iWidth; $x++, $i++)
104 @imagesetpixel($rImage, $x, $y, $aImageData[$i]);
109 if(!is_numeric($iQuality)) $iQuality = 75;
110 if(!@imagejpeg($rImage, $sFileName, $iQuality))
124 if(
$aResult[
'status'] == SUCCESS_VAL)
129 case 'removeTempFiles':