Current time: 11-24-2024, 10:38 AM Hello There, Guest! (LoginRegister)


Thread Closed 
Schriftart Captcha
Author Message
Martin758 Offline
Junior Member
*

Posts: 69
Joined: Oct 2007
Reputation: 0
Post: #6
RE: Schriftart Captcha
<?php
$DatabaseHost = "xxx";
$DatabaseUser = "xxx";
$DatabasePassword = "xxx";
$Database = "xxx";
$TableCode = "Code";

$DatabasePointer = mysql_connect($DatabaseHost, $DatabaseUser, $DatabasePassword);
mysql_select_db($Database, $DatabasePointer);

$ResultPointer=mysql_query("SELECT AngezeigterCode FROM $TableCode WHERE ID='".$_GET['ID']."'", $DatabasePointer);
$Result=mysql_fetch_object($ResultPointer);
//header("Content-type: image/png");

$Grafik=imagecreatefrompng("http://www.pafact.de/img/Kontaktformular-code.png");
//$Rahmenmass=imagettfbbox(25, 0, "http://www.pafact.de/mistral.ttf", $Result->AngezeigterCode);
//$Rahmenmass[5]*=-1;
//$TextBreite=(200-$Rahmenmass[2])/2;
//$TextHoehe=((32-$Rahmenmass[5])+($Rahmenmass[5]*2))/2;


//$Textfarbe = imagecolorallocate($Grafik, 0, 0, 0);
//imagettftext($Grafik, 25, 0, $TextBreite, $TextHoehe, $Textfarbe, "http://www.pafact.de/mistral.ttf", $Result->AngezeigterCode);
//imagepng($Grafik);






//$DatumUhrzeit = date("d.m.Y H:i");
$DatumUhrzeit = $Result->AngezeigterCode;

//$Grafik = imagecreate(200, 32);
//$Grafik = "http://www.pafact.de/Kontaktformular-code.png";
$Hintergrundfarbe = imagecolorallocate($Grafik, 0, 0, 0);
$Textfarbe = imagecolorallocate($Grafik, 255, 255, 255);
ImageTTFText ($Grafik, 20, 0, 10, 20, $Textfarbe, "/mistral.ttf", $DatumUhrzeit);
//imagestring($Grafik, "http://www.pafact.de/mistral.ttf", 5, 5, $DatumUhrzeit, $Textfarbe);
imagepng($Grafik);

?>



ich schreib dir etz einfach mal den php befehl rein^^
10-31-2007 12:57 AM
Find all posts by this user
Thread Closed 


Messages In This Thread
Schriftart Captcha - Martin758 - 10-31-2007, 12:29 AM
RE: SChriftart Captcha - BeNe - 10-31-2007, 12:35 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 12:45 AM
RE: Schriftart Captcha - Martin758 - 10-31-2007, 12:47 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 12:54 AM
RE: Schriftart Captcha - Martin758 - 10-31-2007 12:57 AM
RE: Schriftart Captcha - rbtux - 10-31-2007, 01:00 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 01:07 AM
RE: Schriftart Captcha - rbtux - 10-31-2007, 01:01 AM
RE: Schriftart Captcha - Martin758 - 10-31-2007, 01:05 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 01:07 AM
RE: Schriftart Captcha - BeNe - 10-31-2007, 01:07 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 01:08 AM
RE: Schriftart Captcha - Martin758 - 10-31-2007, 01:20 AM
RE: Schriftart Captcha - BeNe - 10-31-2007, 01:29 AM
RE: Schriftart Captcha - joximu - 10-31-2007, 01:34 AM

Forum Jump:


User(s) browsing this thread: 9 Guest(s)