Original geschrieben von miximaxi
PS Der Edit ist für mich nicht nachvollziehbar.
PS Der Edit ist für mich nicht nachvollziehbar.
<?php
header("Content-type: image/png");
$array = array ( 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'K',
'M', 'N', 'P', 'R', 'S', 'T', 'U', 'W', 'X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'k', 'm', 'n', 'p', 'r',
's', 't', 'u', 'w', 'x', 'y', 'z','1', '2', '3', '4', '5', '6', '7', '8', '9'
);
$explode = explode('u', $_GET['code']);
foreach($explode AS $key=>$element)
{
$summe = file_get_contents('pruefsummen/pruefsumme.txt');
$code = file_get_contents('pruefsummen/code.txt');
$encrypt = ($element-$summe)/$code;
$string = $string.$array[$encrypt];
}
$breite = 100; $hoehe = 20;
$bild = imagecreatefromjpeg('template/img/code.jpg');
$weiß = imagecolorallocate($bild, 255, 255, 255);
imagettftext($bild, 12, 0, 8, 20, $weiß, '/font/ITCKRIST.ttf', $string);
imagepng($bild); imagedestroy($bild);
?>
Einen Kommentar schreiben: