select_alls("member",$table,"a.`uid`=b.`uid` and a.`uid`='".$uid."'"); }else{ $p = $paramer[number]; } if(is_array($Info) || $p){ if(!$p) { $p=$Info[0][$action]; } if($p==""){ return "用户未填写"; } if($action=="idcard"){ $p=substr($p,0,strlen($p)-8).'******'; } $nwidth=$width?$width:130; $nheight=$height?$height:23; $im=@imagecreate($nwidth,$nheight) or die("Can't initialize new GD image stream"); //建立图象 //图片色彩设置 $background_color=imagecolorallocate($im,255,255,255); //匹配颜色 $text_color=imagecolorallocate($im,255,0,0); //绘制图片边框 imagefilledrectangle($im,0,0,$nwidth-1,$nheight-1,$background); //矩形区域着色 imagerectangle($im,0,0,$nwidth-1,$nheight-1,$background_color); //绘制矩形 $randval=$p; //5位数 imagestring($im,8,10,2,$randval,$text_color); //绘制横式字串 @imagegif($im,$dir.$dir2.$name); //建立png图型 @imagedestroy($im); //结束图型 }else{ return "用户未填写"; } } $strrand=mt_rand(00,99); return ""; } ?>