查看文件: user_logo.php
大小: 1.11 KB
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); ?> <?php if (!isset($_SESSION)){ session_start(); } $colname_Rtd = "-1"; if (isset($_POST['w'])) { $colname_Rtd = $_POST['w']; } mysql_select_db($database_BE2, $BE2); $query_Rtd = sprintf("SELECT * FROM member WHERE mem_auto = %s", $_SESSION['login_memid']); $Rtd = mysql_query($query_Rtd, $BE2) or die(mysql_error()); $row_Rtd = mysql_fetch_assoc($Rtd); $totalRows_Rtd = mysql_num_rows($Rtd); $word=$row_Rtd['company_title'] ; $im = imagecreatetruecolor(125, 24); ;//imagecreate(125,24); imagesavealpha($im, true); $scolor = imagecolorallocatealpha($im, 0, 0, 0, 127); imagefill($im, 0, 0, $scolor); $wcolor = ImageColorAllocate($im, 28,22,225); $fontsize=16; $myfont="/www2/skybni/fonts/kaiu.ttf"; $fontBox = imagettfbbox($fontsize,5, $myfont,$word); imagettftext($im,$fontsize,0,ceil((125-$fontBox[2])/ 2),18, $wcolor,$myfont,$word); $img=sprintf('%07d',$_SESSION['login_memid']).".png"; imagepng($im,'/www2/skybni/logo_img/'.$img); imagedestroy($im); mysql_free_result($Rtd); ?>
保存
取消
返回文件列表