hi und zwar möchte ich bei diesen script ein background.png bild setzten und keine weiße farbe und zu zweitens wie krieg ich es hin das er den befehl
$cs_user_pic = '<img src="' . $place = 'uploads/users/' . $cs_user['users_picture'] . '">';
nicht rein schreibt sondern so ausfueht damit das bild angezeigt wird?!
hilfe wäre echt super nett
$cs_user_pic = '<img src="' . $place = 'uploads/users/' . $cs_user['users_picture'] . '">';
nicht rein schreibt sondern so ausfueht damit das bild angezeigt wird?!
hilfe wäre echt super nett
$users_id = (int) $_GET['id'];
$cs_user = array();
$cs_user = cs_sql_select(__FILE__,'users','*',"users_id = '" . $users_id . "'");
$cs_user_pic = '<img src="' . $place = 'uploads/users/' . $cs_user['users_picture'] . '">';
$cs_user_nick = cs_secure($cs_user['users_nick']);
$cs_user_name = cs_secure($cs_user['users_name']);
$cs_user_surname = cs_secure($cs_user['users_surname']);
$height = 150;
$width = 450;
$img = imagecreatetruecolor($width, $height) or die('Cannot Initialize new GD image stream');
$col_bg = imagecolorallocate($img, 250, 250, 250);
$col_csp_red = imagecolorallocate ($img, 186, 22, 22);
$col_csp_grey = imagecolorallocate ($img, 137, 137, 137);
$col_users_headline = imagecolorallocate ($img, 0, 0, 0);
$font_csp = 4;
$font_csp_width = imagefontwidth($font_csp);
$font_users_headline = 2;
imagefilledrectangle($img, 0,0, $width, $height, $col_bg);
imagestring($img, $font_users_headline, $font_csp_width * 0 + 15, 15, $cs_user_pic , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 40 + 17, 17, $cs_user_nick , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 39 + 27, 27, $cs_user_name , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 38 + 37, 37, $cs_user_surname , $col_users_headline);
header ('Content-type: image/png');
imagepng($img);
imagedestroy($img);
}
$cs_user = array();
$cs_user = cs_sql_select(__FILE__,'users','*',"users_id = '" . $users_id . "'");
$cs_user_pic = '<img src="' . $place = 'uploads/users/' . $cs_user['users_picture'] . '">';
$cs_user_nick = cs_secure($cs_user['users_nick']);
$cs_user_name = cs_secure($cs_user['users_name']);
$cs_user_surname = cs_secure($cs_user['users_surname']);
$height = 150;
$width = 450;
$img = imagecreatetruecolor($width, $height) or die('Cannot Initialize new GD image stream');
$col_bg = imagecolorallocate($img, 250, 250, 250);
$col_csp_red = imagecolorallocate ($img, 186, 22, 22);
$col_csp_grey = imagecolorallocate ($img, 137, 137, 137);
$col_users_headline = imagecolorallocate ($img, 0, 0, 0);
$font_csp = 4;
$font_csp_width = imagefontwidth($font_csp);
$font_users_headline = 2;
imagefilledrectangle($img, 0,0, $width, $height, $col_bg);
imagestring($img, $font_users_headline, $font_csp_width * 0 + 15, 15, $cs_user_pic , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 40 + 17, 17, $cs_user_nick , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 39 + 27, 27, $cs_user_name , $col_users_headline);
imagestring($img, $font_users_headline, $font_csp_width * 38 + 37, 37, $cs_user_surname , $col_users_headline);
header ('Content-type: image/png');
imagepng($img);
imagedestroy($img);
}
Kommentar